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

Dim Backlight also on dpmsactive #24

Open
coolinger opened this Issue Aug 25, 2014 · 1 comment

Comments

2 participants
@coolinger

coolinger commented Aug 25, 2014

XBMC supports DPMS off, which seems to disable the screensaver.
Following is a patch which checks against the new system.dpmsactive infolabel in addition to system.screensaveractive.
if there is no such infolabel (current stable xbmc 13.2), xbmc should just return false but no error.

--- script.xbmc.lcdproc.old/resources/lib/infolabels.py 2014-08-25 23:56:58.270016010 +0200
+++ script.xbmc.lcdproc.new/resources/lib/infolabels.py 2014-08-25 23:56:34.269016566 +0200
@@ -196,7 +196,7 @@
   return InfoLabel_GetBool("System.HasMediaDVD")

 def InfoLabel_IsScreenSaverActive():
-  return InfoLabel_GetBool("System.ScreenSaverActive")
+  return (InfoLabel_GetBool("System.ScreenSaverActive") | InfoLabel_GetBool("System.dpmsactive") )

 def InfoLabel_GetVolumePercent():
   volumedb = float(string.replace(string.replace(InfoLabel_GetInfoLabel("Player.Volume"), ",", "."), " dB", ""))
@herrnst

This comment has been minimized.

Owner

herrnst commented Aug 26, 2014

Will be considered for a future version for Helix, but probably in a different way (using callbacks etc.).

@herrnst herrnst removed the Kodi-Helix label Jun 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment