HyperHDR suspend not working

  • I have been using the beta builds of the HyperHDR addon for a while and was pleased to see that it officially has been moved into LibreELEC - thank you all!


    I tend to suspend my LE box and Awawa helped and sorted an issue where HyperH`DR wouldn’t shutdown on suspend.

    It’s now doing that again and I checked with Awawa and he said that the suspend script may have been left out from the addon build. I have checked and the script was missing. I have added it back in the systemd folder but it doesn’t seem to work.

    If I install version 11.0.0.201 of service.HyperHDR.zip then it works as expected, any of the 12.0.0.xxx versions it stops HyperHDR from turning off.


    Thanks

  • I’ve just replaced my gfx card for an Intel one rather than the Nvidia card I was using and this issue still persists on the latest version of the addon.


    Can anyone assist with helping me resolve this please 🙂

  • What exactly did you do with the suspend script and what do you mean by "it didn't work"?

    After adding the systemd service file to /storage/.config/system.d you have to adjust it (if you changed the webui port number in hyperhdr) and then use "systemctl enable NAME_OF_THE_SERVICE_FILE" to enable it.

    There are two reasons why I didn't include the suspend script in the addon:

    First of all the addon system doesn't support multiple systemd units/services per addon so only the main one (service.hyperhdr) would ever get enabled automatically.

    Second, the suspend systemd file contains hard-coded port numbers of 8090 which won't work anymore (and could upset any other service running on that port) if you change the port number in the hyperhdr configuration. That's quite a PITA, even if you change it it would get overwritten on every addon upgrade.

    Therefore, just use the manual approach, you only have to do it once after installing and it'll survive addon updates as well.

    PS: I can't help testing / verifying if the suspend systemd service works as I don't have any LE systems that support suspend/resume here.

    so long,

    Hias

  • Thank you for the reply

    I clearly missed a step by not enabling the service :S. I will try that and I am sure it will then work.

    Appreciate the explanation as to why it was not implemented too. Makes perfect sense :)


    Have a good day!

  • BTW: I did a quick test with LE on a PC and verified that the PrepareForSleep dbus events (which hyperhdr is supposed to listen on) are properly sent on suspend/resume:

    I also checked our hyperhdr build and verified power management is properly enabled.

    So I highly suspect this is some bug in hyperhdr code, you might want to bring that to the attention of the hyperhdr author's - it should work on LE just like on any other linux distro.

    so long,

    Hias