View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Jan 16, 2006 10:56 pm 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
So far I have enabled dpms in the monitor section of my XF86Config and my XF86Config-4 file (what is the difference?) and the command still does not work (even after a reboot.) I am ultimately trying to make the power button on my remote toggle the vga monitor. I have looked up the model number for the monitor and it says it supports DPMS, so I don't know what the issue is. Does anyone have any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 17, 2006 12:23 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Didn't we just go over this a few days ago...
Hint:/home/mythtv/.fluxbox/apps
[startup] {xset -dpms s off}

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 17, 2006 9:39 am 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
sorry about that, I forgot to mention that line is removed as well.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 17, 2006 8:49 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Have you looked in the X log file to see if DPMS is getting enabled?
http://www.knoppmythwiki.org/index.php?page=CheckingLogFiles


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 18, 2006 2:44 pm 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
These were the only lines found in the log file (XFree86.0.log), it does't look like anything is amiss:

(II) Loading extension DPMS
(II) VESA(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
(**) Option "dpms" "true"
(**) VESA(0): DPMS enabled


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 2:58 pm 
Offline
Joined: Mon Jun 27, 2005 7:25 pm
Posts: 20
these are the steps that i've taken to get my hauppage remote working to power off a monitor... at least, these are the ones that i remember...

first, as cesman said, remove the dpms line in /home/mythtv/.fluxbox/apps

second, add a line to the same file to start irexec for your X session. my /home/mythtv/.fluxbox/apps now looks like this...
Code:
[startup] {KnoppMyth-run}
[startup] {launch_irx.sh}
[startup] {irexec}
[app] (SDL_App)
  [Layer]       {2}
  [Deco]        {NONE}
[end]


third, add a few lines to /home/mythtv/.lircrc (or /home/mythtv/.mythtv/lircrc since they're symlinked) to tell irexec what to do when you press the power button on the remote. i added mine to the beginning (location doesn't really matter, i don't think), and they look like this...
Code:
begin
    prog = irexec
    button = Power
    config = xset dpms s off
end

begin
    prog = irexec
    button = Blank
    config = xset dpms force off
end


this is telling irexec to turn off dpms (xset dpms s off) when the power button is pressed, and to turn off the monitor (xset dpms force off) when the blank button is pressed. in theory, if you set the same begin/end code block with two config lines, lirc will alternate which line it does, in other words, with code like this
Code:
begin
    prog = irexec
    button = Power
    config = xset dpms force off
    config = xset dpms s off
end

the first time you press the Power button, the monitor should power off, the second time, dpms should be turned off (so the monitor won't power down while you're using it).

the problem that i've run into (and what led me to search here today) is that 'xset dpms s off' will not tell the monitor to come back on. it just turns dpms off and leaves the monitor in its unpowered state. you actually have to press a key on the keyboard to get the monitor to wake up. this is unacceptable if i'm to use only a remote. once (if) i solve that problem, i'll try to remember to amend this post....


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 5:42 pm 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
thanks for the tips as to integrating it with lirc, but my main issue at this point is that just typing in:

xset dpms force off

Does nothing to the monitor. Did you have to do anything special to get that command to work?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 6:11 pm 
Offline
Joined: Mon Jun 27, 2005 7:25 pm
Posts: 20
oops. i read the "I am ultimately trying to make the power button on my remote toggle the vga monitor." and just jumped right on what i had done to get it working. i really don't know where to start other than complete basics (do you have xset installed (which xset), is there an error returned, are you using a video driver or just a framebuffer?).

on the other hand, i tested out using two configs and it works just fine, and stumbled onto a solution to a problem that i didn't want to run into by accident. when you 'xset dpms force on' (so the monitor comes on), you get a blank screen. well, luckily i still had another entry in my .lircrc that was using the power button...

among other things, the following is included in my .lircrc...
Code:
begin
    prog = irexec
    button = Power
    config = xset dpms force off
    config = xset dpms force on
    repeat = 0
end
begin
    prog = mythtv
    button = Power
    config = Esc
end


what this does is (on a power button press) the irexec block will force the monitor off (first config line) and mythtv will recieve an 'ESC' key sequence and attempt to back up one page (if you're at the main menu, it confirms (at least with my config) whether you want to exit mythtv or not) and will wait there until you press the power button again, at which point irexec will force the monitor back on and the 'ESC' sequence sent to mythtv will exit out of the exit confirmation screen, forcing X to redraw the screen and avoiding the blank-screen-until-another-button-is-pressed problem.

to quote mcdonalds, "i'm lovin' it." now if someone would just fix up a config for the samsung tuners on the newer PVR-500's, i'd be much obliged... would be nice to have my christmas present working without oddball problems that show up and go away when they feel like it...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 6:53 pm 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
copygod wrote:
oops. i read the "I am ultimately trying to make the power button on my remote toggle the vga monitor." and just jumped right on what i had done to get it working. i really don't know where to start other than complete basics (do you have xset installed (which xset), is there an error returned, are you using a video driver or just a framebuffer?).



I assume xset is installed as typing xset brings up a list of options for xset, as for version, how do I check this?

As for errors, no errors appear on xterm, it just waits for the next command. I'm also not sure about the video driver. I am just using the integrated graphics on the motherboard, and then whatever drivers knoppmyth used.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 28, 2006 11:03 pm 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
anyone?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 25, 2006 1:40 pm 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
Sorry to ressurect a dead thread, but for whatever reason xset dpms force off now works after updating to the newest knoppmyth. The only thing that I changed is I did a toggle between space and escape that way ill end up where it was no matter what menu. And as an added bonus it works great when watching a video, it resumes right where it left off.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 17, 2006 11:14 pm 
Offline
Joined: Sun Jun 18, 2006 8:14 pm
Posts: 25
tuckie wrote:
Sorry to ressurect a dead thread, but for whatever reason xset dpms force off now works after updating to the newest knoppmyth. The only thing that I changed is I did a toggle between space and escape that way ill end up where it was no matter what menu. And as an added bonus it works great when watching a video, it resumes right where it left off.




I just found this thread, and implemented it, and copygod's code works great. I made the suggested change by tuckie, to change from an escape to a space, which works if I'm in, say, TV mode, or watching a dvd, but...

If I'm on the main mythtv menu, and I turn the monitor off, then turn the monitor back on, it goes into Watch TV, because its pushing out a space, which triggers the menu option that is presently selected.

Is there another key we could use that would be more "safe"? One that wouldnt take us out of what we're in, or try to turn on/off/change something, or wouldnt go into something else?

Also, when making changes to the lircrc file, is there a way to get that file re-read by the Myth setup, so that I dont have to reboot to test the changes I've made to that file?

Thanks!
--Eric


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 15, 2007 12:08 am 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
well, its borked again with R5E50. Xorg.0.log shows that DPMS is enabled, the xset command is gone from startup, and xset dpms force off does nothing.

Anyone have any ideas?


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 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