screensaver.turnoff icon indicating copy to clipboard operation
screensaver.turnoff copied to clipboard

ToggleDPMS does not de-activate

Open waynethomas69 opened this issue 1 year ago • 6 comments

With the latest version of libreelec (10.0.3) the vcgencmd command is no longer supported so I have instead switched to the DPMS built-in option. The screensaver seems to activate correctly, but it never deactivates. To recover I have to either reboot, or issue kodi-send --action=ToggleDPMS twice - the fact it requires it twice makes me curious.

I also modified the plugin to the below to see if that changed the behaviour - but it was completely the same

    dict(name='dpms-builtin', title='DPMS (built-in)',
         function='run_command',
         args_off=['kodi-send', '--action=ToggleDPMS'],
         args_on=['kodi-send', '--action=ToggleDPMS']),

I've turned on debugging on libreelec, and there was nothing relevant when trying to deactivate the screensaver. There was perhaps a hint when the screensaver was activated though: https://gist.github.com/waynethomas69/5fdc33803039c7dfb47fec036db134ee

waynethomas69 avatar Nov 12 '22 07:11 waynethomas69

May not be the answer you want, but if vcgencmd is still preferable, you could change your /boot/config.txt

[all]
dtoverlay=vc4-fkms-v3d,cma-512
dtparam=audio=on

This will go back to the older fake DKMS which does support vcgencmd.

The reason ToggleDPMS fails is because the screensaver resume is never run once DPMS has been toggled off.

trigg avatar Jan 26 '23 23:01 trigg

May not be the answer you want, but if vcgencmd is still preferable, you could change your /boot/config.txt

[all]
dtoverlay=vc4-fkms-v3d,cma-512
dtparam=audio=on

This will go back to the older fake DKMS which does support vcgencmd.

The reason ToggleDPMS fails is because the screensaver resume is never run once DPMS has been toggled off.

Thanks @trigg, it looks like that overlay isn't compatible with Libreelec; I tried it and it wouldn't boot anymore. Couldn't even ssh in to confirm what the issue was. Pulled the SD and removed that line from config.txt and everything returned to normal.

waynethomas69 avatar Jan 27 '23 02:01 waynethomas69

With the latest version of libreelec (10.0.3) the vcgencmd command is no longer supported so I have instead switched to the DPMS built-in option. The screensaver seems to activate correctly, but it never deactivates. To recover I have to either reboot, or issue kodi-send --action=ToggleDPMS twice - the fact it requires it twice makes me curious.

I also modified the plugin to the below to see if that changed the behaviour - but it was completely the same

    dict(name='dpms-builtin', title='DPMS (built-in)',
         function='run_command',
         args_off=['kodi-send', '--action=ToggleDPMS'],
         args_on=['kodi-send', '--action=ToggleDPMS']),

I've turned on debugging on libreelec, and there was nothing relevant when trying to deactivate the screensaver. There was perhaps a hint when the screensaver was activated though: https://gist.github.com/waynethomas69/5fdc33803039c7dfb47fec036db134ee

Having absolutely the same behavior on Orange Pi 3 LTS

innerspacepilot avatar Jan 27 '23 23:01 innerspacepilot

So is there no solution right now to Turn the HDMI Port off and on ?

th3gr33n avatar Feb 16 '23 15:02 th3gr33n

So is there no solution right now to Turn the HDMI Port off and on ?

None that I've found yet.

waynethomas69 avatar Mar 12 '23 21:03 waynethomas69

I've the same problem. With DPMS off HDMI CEC is still active, i.e. the TV sees kodi. However, neither a CEC event nor a USB keyboard keypress make Kodi activate the display again.

The reason ToggleDPMS fails is because the screensaver resume is never run once DPMS has been toggled off.

Isn't this the root bug then?

flyingflo avatar Oct 06 '23 06:10 flyingflo