concerto / bandshell

A Local Management Utility for the Concerto Player
Other
7 stars 8 forks source link

Implement DPMS Screen Control #26

Closed mikldt closed 10 years ago

mikldt commented 10 years ago

Since DPMS is the simplest way to turn the screen on and off, and used fairly widely, it should probably be the first screen control method we implement.

The code would live in the background job callback, the background-job view in the Bandshell app. It can use the screen_scheduled_on? method to check the desired state.

From some initial research and testing, the following commands should work:

xset dpms force off
xset dpms force on
xset s reset

However this should be tested on the Player image with an actual HDMI-connected screen. It may be possible to get a little more sophisticated, such as checking DPMS availablility on monitor state, for example by parsing the output of xset q.

mikldt commented 10 years ago

Concerto v1 screen control is discussed here: https://groups.google.com/forum/#!msg/concerto-digital-signage/sgGQay36qP0/nAZ6YKmnURYJ

The schedule.pl referenced is here: https://github.com/asquared/concerto-player/blob/master/concerto-configurator/files/etc/tasks/schedule.pl

augustf commented 10 years ago

If @gabe283 or @khanh could do some field testing with this command, it would be good to know how widespread support for this is.

kench commented 10 years ago

Ping on field testing.

tyrantkhan commented 10 years ago

@mikldt I was able to do this, although i didn't need xset s reset, we should include it for posterity though.