LinHES Forums
http://forums.linhes.org/

Script to power down monitor?
http://forums.linhes.org/viewtopic.php?f=5&t=12377
Page 1 of 1

Author:  aa1979 [ Sun Oct 29, 2006 3:48 pm ]
Post subject:  Script to power down monitor?

I have a small frontend attached to an LCD monitor that we treat pretty much like a TV. The only thing missing is to be able to use the remote control to turn the monitor on and off. Is there a way to do this? I know how to make LIRC and irexec run a script - there must be some script that can toggle the monitor into and out of standby mode. Anybody have any ideas? Thanks!

Author:  sk6 [ Mon Oct 30, 2006 10:58 am ]
Post subject: 

insert the following into your lircrc file.

begin
prog = irexec
button = standby
repeat = 0
config = xset dpms force off
config = xset dpms force on
end

reload lircd and restart your frontend (or just reboot)
pressing standby will turn off your montior, press stanby again to turn back on.

on my system any button will turn the monitor on

sam

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/