This weekend our forum will be unavailable for a few hours due to maintenance.

Release Turn Off screensaver
#10
Hi dagwieers, thanks you for your nice add-on.
I have a problem with "Power off system" function on my Android device. It's rooted but KODI failed to invoke su.
I read the code and make it work again, here is what I modified.
Code:

screensaver.turnoff/screensaver.py

...
            run_builtin('Reboot')
        elif power_method == '6':  # PowerDown (built-in)
            run_builtin('PowerDown')
        elif power_method == '7':  # Android POWER key event (using input)
            # run_command(['su', '-c', 'input keyevent KEYCODE_POWER'], shell=True)
            # This is the way that invokes Magisk su
            run_command(['su', '-c', 'input keyevent KEYCODE_POWER'])

    def onAction(self, action):
...
I don't know if you still maintain this add-on or not. If yes, please add a option like "Android POWER key event (using input)(alternative)"
Thanks again for this useful add-on.
Reply


Messages In This Thread
Turn Off screensaver - by dag- - 2018-04-18, 23:14
RE: Turn Off screensaver - by fracti0n - 2018-04-30, 14:17
RE: Turn Off screensaver - by dag- - 2018-04-30, 15:07
RE: Turn Off screensaver - by c_g_f - 2018-05-28, 15:06
RE: Turn Off screensaver - by c_g_f - 2018-05-28, 15:35
RE: Turn Off screensaver - by Atreyu - 2018-12-02, 14:02
RE: Turn Off screensaver - by STEPHANVS - 2019-02-07, 00:49
RE: Turn Off screensaver - by STEPHANVS - 2019-02-07, 01:14
RE: Turn Off screensaver - by Arokhaerr - 2019-06-16, 22:28
RE: Turn Off screensaver - by Aerotinge - 2019-09-07, 17:50
RE: Turn Off screensaver - by dag- - 2019-09-18, 21:23
RE: Turn Off screensaver - by tuna8311 - 2020-05-09, 04:57
RE: Turn Off screensaver - by dag- - 2020-05-09, 15:11
RE: Turn Off screensaver - by mariofenech - 2020-05-09, 21:16
RE: Turn Off screensaver - by dag- - 2020-05-11, 20:40
RE: Turn Off screensaver - by ppeterson - 2020-06-02, 02:31
RE: Turn Off screensaver - by LeVvE - 2020-07-11, 01:00
RE: Turn Off screensaver - by tt4079 - 2020-12-31, 19:23
RE: Turn Off screensaver - by tt4079 - 2021-02-20, 00:11


Logout Mark Read Team Forum Stats Members Help
Turn Off screensaver0
This forum uses Lukasz Tkacz MyBB addons.