View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Jul 28, 2009 8:19 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 28, 2009 9:32 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I would love it if that worked with my tv. Do you know of many displayes/monitors support that method of turning off/on.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 28, 2009 10:24 pm 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 30, 2009 11:36 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
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.


Last edited by Greg Frost on Fri Jul 31, 2009 3:53 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 31, 2009 12:18 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
Ahh a tv not sure if any of them support those commands.

Craig


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu