Release Turn Off screensaver
#16
(2018-04-18, 23:14)dag- Wrote: Hi dag,
I have used Turn Off on my raspi3 for a long time without any problems. Now I needed to reinstall Libreelec, cause it didn't starts any more. But now, Turn Off only works in idle mode, when kodi has nothing to do. If music is played, it won't turn off the display. My raspi works only as a music player togeher with a dac and a NAS. I have tried everything in the configuration but nothing helps, any idea?
Thanks
Reply
#17
I'm using a Shield TV and none of the power options seem to work for me to power off the Shield TV when it turns of the screen.
I tries all the options but at my set timer the screen goes black but the Shield TV remains powered on forever.

I remember Kodi had some built in option before to power off because I remember using it but it's no longer available.
Reply
#18
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?
Reply
#19
Hi dag,

Your screensaver is exactly what I've been looking for. If I understood it correctly it could be used to cut off the video signal coming from a Raspi and so would not prevent devices such as AV receivers from turning off. The AV receiver would simply assume the Raspi no longer present as a source.

Unfortunately the screensaver doen't work in this way on my Raspi 2 and Kodi 18.9. If I select as method "No Signal from Raspberry Pi (using vgencmd)" Kodi displays the following error message: "Exception running 'vgencmd': [Error 2] No such file or directory". However I checked and vgencmd is present at its usual location (/opt/vc/bin) and /opt/vc/bin is included in the PATH variable.

Is this a knows issue? Do you have any hint how to fix it?

Thank you in advance for your help.

Kind regards,
Harald
Reply
#20
(2021-02-18, 16:20)harry72 Wrote: Hi dag,

Your screensaver is exactly what I've been looking for. If I understood it correctly it could be used to cut off the video signal coming from a Raspi and so would not prevent devices such as AV receivers from turning off. The AV receiver would simply assume the Raspi no longer present as a source.

Unfortunately the screensaver doen't work in this way on my Raspi 2 and Kodi 18.9. If I select as method "No Signal from Raspberry Pi (using vgencmd)" Kodi displays the following error message: "Exception running 'vgencmd': [Error 2] No such file or directory". However I checked and vgencmd is present at its usual location (/opt/vc/bin) and /opt/vc/bin is included in the PATH variable.

Is this a knows issue? Do you have any hint how to fix it?

Thank you in advance for your help.

Kind regards,
Harald
Does it work manually from ssh?

Code:
vcgencmd display_power 0
Code:
vcgencmd display_power 1
Reply
#21
(2021-02-18, 23:32)mariofenech Wrote:
(2021-02-18, 16:20)harry72 Wrote: Hi dag,

Your screensaver is exactly what I've been looking for. If I understood it correctly it could be used to cut off the video signal coming from a Raspi and so would not prevent devices such as AV receivers from turning off. The AV receiver would simply assume the Raspi no longer present as a source.

Unfortunately the screensaver doen't work in this way on my Raspi 2 and Kodi 18.9. If I select as method "No Signal from Raspberry Pi (using vgencmd)" Kodi displays the following error message: "Exception running 'vgencmd': [Error 2] No such file or directory". However I checked and vgencmd is present at its usual location (/opt/vc/bin) and /opt/vc/bin is included in the PATH variable.

Is this a knows issue? Do you have any hint how to fix it?

Thank you in advance for your help.

Kind regards,
Harald
Does it work manually from ssh?

Code:
vcgencmd display_power 0
Code:
vcgencmd display_power 1


Hi Mario,

Thanks for responding so quickly.

Yes, if I type the commands on the console via SSH they work (even without "sudo", etc.). On the console
Code:
display_power=0
and
Code:
display_power=1
is displayed then.

Perhaps it makes a difference that I am using OSMC?
Would it help to add the full path to vcgencmd in screensaver.py?

Thank you in advance for your help.

Harald
Reply
#22
(2021-02-19, 01:47)harry72 Wrote:
(2021-02-18, 23:32)mariofenech Wrote:
(2021-02-18, 16:20)harry72 Wrote: Hi dag,

Your screensaver is exactly what I've been looking for. If I understood it correctly it could be used to cut off the video signal coming from a Raspi and so would not prevent devices such as AV receivers from turning off. The AV receiver would simply assume the Raspi no longer present as a source.

Unfortunately the screensaver doen't work in this way on my Raspi 2 and Kodi 18.9. If I select as method "No Signal from Raspberry Pi (using vgencmd)" Kodi displays the following error message: "Exception running 'vgencmd': [Error 2] No such file or directory". However I checked and vgencmd is present at its usual location (/opt/vc/bin) and /opt/vc/bin is included in the PATH variable.

Is this a knows issue? Do you have any hint how to fix it?

Thank you in advance for your help.

Kind regards,
Harald
Does it work manually from ssh?

Code:
vcgencmd display_power 0
Code:
vcgencmd display_power 1


Hi Mario,

Thanks for responding so quickly.

Yes, if I type the commands on the console via SSH they work (even without "sudo", etc.). On the console
Code:
display_power=0
and
Code:
display_power=1
is displayed then.

Perhaps it makes a difference that I am using OSMC?
Would it help to add the full path to vcgencmd in screensaver.py?

Thank you in advance for your help.

Harald
I m not sure how OSMC works but it might be that you need to send the command as root user as you r saying but that might need a bit more fiddling then just changing command and adding path...but you can always try.
Saying that i use Turn Off all the time and it's incorporated in my power button script and works fine on LibreElec via CEC turn off and on..now i just tried screen power off and it also works without any errors..
I would open a ticket on Github perhaps Dev can help you..
Reply
#23
(2020-12-31, 19:23)tt4079 Wrote: 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?

I have tried 5 android boxes and I cannot get the Android Power Key Event to work. Has anyone had any luck getting this to work on an android box?
Reply
#24
(2021-02-19, 12:51)mariofenech Wrote:
(2021-02-19, 01:47)harry72 Wrote:
(2021-02-18, 23:32)mariofenech Wrote: Does it work manually from ssh?

Code:
vcgencmd display_power 0
Code:
vcgencmd display_power 1


Hi Mario,

Thanks for responding so quickly.

Yes, if I type the commands on the console via SSH they work (even without "sudo", etc.). On the console
Code:
display_power=0
and
Code:
display_power=1
is displayed then.

Perhaps it makes a difference that I am using OSMC?
Would it help to add the full path to vcgencmd in screensaver.py?

Thank you in advance for your help.

Harald
I m not sure how OSMC works but it might be that you need to send the command as root user as you r saying but that might need a bit more fiddling then just changing command and adding path...but you can always try.
Saying that i use Turn Off all the time and it's incorporated in my power button script and works fine on LibreElec via CEC turn off and on..now i just tried screen power off and it also works without any errors..
I would open a ticket on Github perhaps Dev can help you..

I see your point. In my setup changing
Code:
vcgencmd
to
Code:
/opt/vc/bin/vcgencmd
in 'args_off' and 'args_on' ultimately solved the issue. Now HDMI signal turns off as expected.

Thanks for your work.

Harry
Reply



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