Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToggleDPMS does not de-activate #30

Open
waynethomas69 opened this issue Nov 12, 2022 · 6 comments
Open

ToggleDPMS does not de-activate #30

waynethomas69 opened this issue Nov 12, 2022 · 6 comments

Comments

@waynethomas69
Copy link

waynethomas69 commented Nov 12, 2022

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

@trigg
Copy link

trigg commented Jan 26, 2023

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.

@waynethomas69
Copy link
Author

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.

@innerspacepilot
Copy link

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

@th3gr33n
Copy link

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

@waynethomas69
Copy link
Author

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

None that I've found yet.

@flyingflo
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants