Skip to content

Dim Backlight also on dpmsactive #24

Open

Description

@coolinger

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", ""))

Activity

  1. herrnst commented on Aug 26, 2014

    @herrnst
    Owner

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

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions