2020-12-31, 19:23
I currently use Android Power Options screensaver add-on which turns my android box off after 10 minutes of inactivity. The add-on does not work with Kodi v19 so while looking for an alternative I came across Turn Off screensaver. Using Turn Off, I have set Display method to Do nothing and set Power method to Android Power key event (using input) but the kodi log shows an error when Turn Off runs and the box stays on.
The kodi log file shows :-
2020-12-31 17:13:22.079 T:17546 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/screensaver.turnoff/screensaver.py", line 259, in onInit
self.power = POWER_METHODS[power_method]
IndexError: list index out of range
-->End of Python script error report<--
Am I misunderstanding how the Android Power Key setting should work? Is there any way to use the Turn Off add-on to turn the box off?
The kodi log file shows :-
2020-12-31 17:13:22.079 T:17546 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/screensaver.turnoff/screensaver.py", line 259, in onInit
self.power = POWER_METHODS[power_method]
IndexError: list index out of range
-->End of Python script error report<--
Am I misunderstanding how the Android Power Key setting should work? Is there any way to use the Turn Off add-on to turn the box off?