From f06e844a8736408b9edd5b0b46b21ea22fe97eb4 Mon Sep 17 00:00:00 2001 From: Vasilii <43271561+vasilky3@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:28:14 +0300 Subject: [PATCH] add stendby android 11 --- addon.xml | 5 ++++- resources/language/resource.language.en_gb/strings.po | 6 +++++- resources/settings.xml | 2 +- screensaver.py | 4 ++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index 85b958d..5a5233d 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -18,6 +18,9 @@ Next to managing your display, it can also manage your device power state, log y https://github.com/dagwieers/screensaver.turnoff https://forum.kodi.tv/showthread.php?tid=331076 +v0.11.0 (2024-01-11) +- add support for cec on android 11 + v0.10.3 (2020-08-01) - Workflow changes for Matrix diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 75edd1f..027b063 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -82,10 +82,14 @@ msgid "CEC on Android (kernel)" msgstr "" msgctxt "#32118" -msgid "Backlight on Raspberry Pi (kernel)" +msgid "CEC on Android 11 (kernel)" msgstr "" msgctxt "#32119" +msgid "Backlight on Raspberry Pi (kernel)" +msgstr "" + +msgctxt "#32120" msgid "Backlight on Odroid C2 (kernel)" msgstr "" diff --git a/resources/settings.xml b/resources/settings.xml index fc2d839..cbd792b 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -2,7 +2,7 @@ - + diff --git a/screensaver.py b/screensaver.py index ad89bac..a8540ff 100644 --- a/screensaver.py +++ b/screensaver.py @@ -45,6 +45,10 @@ function='run_command', args_off=['su', '-c', 'echo 0 >/sys/devices/virtual/graphics/fb0/cec'], args_on=['su', '-c', 'echo 1 >/sys/devices/virtual/graphics/fb0/cec']), + dict(name='cec-android11', title='CEC on Android11 (kernel)', + function='run_command', + args_off=['su', '-c', 'echo 0x40 0x36 > /sys/class/cec/cmd'], + args_on=['su', '-c', 'echo 0x40 0x04 > /sys/class/cec/cmd']), # NOTE: Contrary to what one might think, 1 means off and 0 means on dict(name='backlight-rpi', title='Backlight on Raspberry Pi (kernel)', function='run_command',