LinHES Forums http://forum.linhes.org/ |
|
Power on off monitor from keyboard/remote R6 http://forum.linhes.org/viewtopic.php?f=3&t=20191 |
Page 1 of 1 |
Author: | iscraigh [ Tue Jul 28, 2009 8:19 pm ] |
Post subject: | Power on off monitor from keyboard/remote R6 |
I have a cheap remote that actually sends keystroke commands so no lirc is involved, very responsive. I wanted to use the power button to turn the monitor off and on. After searching I found several scripts none that worked for me. Problem one dpms force off blanked the monitor but did not turn off the backlight Problem 2 no version of script seemed to toggle on although any button would unblank the screen solution xmodmap to map keys (plenty of info on setting this up) vbetool dpms off turned the monitor off sadly turning it on required a ctrl-alt-bksp Then reading about fluxbok keys I found the simple answer Open /home/mythtv/.fluxbox/keys add the following line (assuming you have used xmodmap to map the power key to XF86PowerOff XF86PowerOff :ToggleCmd {ExecCommand sudo vbetool dpms on} {ExecCommand sudo vbetool dpms off} Restart X and test. It has no logic it just toggles the commands but assuming after turning it on the next likely command it to turn it off it works great and is simple. Craig |
Author: | Greg Frost [ Tue Jul 28, 2009 9:32 pm ] |
Post subject: | |
I would love it if that worked with my tv. Do you know of many displayes/monitors support that method of turning off/on. |
Author: | iscraigh [ Tue Jul 28, 2009 10:24 pm ] |
Post subject: | |
Damn near any relatively new one. There are some posts for the lirc method just substitute the vbetool command if the dpms force off does not turn off the back-light obviously if you use a keyboard or a remote like mine that emulates one, my method would work great. This is like the remote I got http://cgi.ebay.ca/USB-PC-Remote-Contro ... 7C294%3A50 Craig |
Author: | Greg Frost [ Thu Jul 30, 2009 11:36 pm ] |
Post subject: | |
I gave it a go, but my TV (samsung la46m81) kept the backlight on and displayed HDMI2: No Signal. I was hoping the TV would actually turn off. |
Author: | iscraigh [ Fri Jul 31, 2009 12:18 am ] |
Post subject: | |
Ahh a tv not sure if any of them support those commands. Craig |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |