Opened 14 years ago

Closed 14 years ago

#195 closed enhancement (fixed)

DPMS remains in suspend mode even after hitting a remote button

Reported by: skamithi@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: 0.18.1
Severity: medium Keywords: dpms
Cc: Ticket locked: no

Description

Hi,

I run DPMS on my mythtv system. When DPMS kicks in and there is no signal to my TV and I hit a button on the remote. I get no response. The screen remains blank and the LCD TV reports no signal from the PC. Signal is restored if I hit a key on the keyboard..but no change if I do it from a remote.

With the following modification, I am able to restore the picture with a touch of any remote button. If there is a better way to do it let me know.

=======================================

--- libs/libmyth/screensaver-x11.cpp    (revision 6964)
+++ libs/libmyth/screensaver-x11.cpp    (working copy)
@@ -88,6 +88,14 @@

 void ScreenSaverX11::Reset(void)
 {
+    BOOL on;
+    CARD16 power_level;
     XResetScreenSaver(qt_xdisplay());
+    if ( ! d->state.dpmsdisabled ){
+           DPMSInfo(qt_xdisplay(), &power_level,&on);
+           if ( power_level != DPMSModeOn ){
+              DPMSForceLevel(qt_xdisplay(),DPMSModeOn);
+           }
+    }
 }

Attachments (2)

dpms_reset.patch (547 bytes) - added by skamithi@… 14 years ago.
dpms reset enhancement patch
dpms_reset.2.patch (641 bytes) - added by skamithi@… 14 years ago.
updated dpms reset patch

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by skamithi@…

Attachment: dpms_reset.patch added

dpms reset enhancement patch

comment:1 Changed 14 years ago by Isaac Richards

Resolution: invalid
Status: newclosed

Patch needs to test if dpms is available. Please reopen this bug when an updated patch is attached.

comment:2 Changed 14 years ago by anonymous

Resolution: invalid
Status: closedreopened

Changed 14 years ago by skamithi@…

Attachment: dpms_reset.2.patch added

updated dpms reset patch

comment:3 Changed 14 years ago by Isaac Richards

Resolution: fixed
Status: reopenedclosed

(In [7069]) Patch from skamithi at gmail d com to reset DPMS on remote presses.

Closes #195.

Note: See TracTickets for help on using tickets.