Ticket #6193: initial_DPMS_fix.diff

File initial_DPMS_fix.diff, 852 bytes (added by mythtv@…, 12 years ago)

Patch to fix initial DPMS state if disabled

Line 
1*** mythtv/libs/libmythui/screensaver-x11.cpp.orig      Fri Jan 30 13:18:06 2009
2--- mythtv/libs/libmythui/screensaver-x11.cpp   Fri Jan 30 13:47:01 2009
3***************
4*** 74,81 ****
5 
6              if (m_dpmsenabled)
7                  VERBOSE(VB_GENERAL, "DPMS is active.");
8!             else
9                  VERBOSE(VB_GENERAL, "DPMS is disabled.");
10          }
11          else
12          {
13--- 74,87 ----
14 
15              if (m_dpmsenabled)
16                  VERBOSE(VB_GENERAL, "DPMS is active.");
17!             else
18!           {
19                  VERBOSE(VB_GENERAL, "DPMS is disabled.");
20+                 Status status = DPMSEnable(m_display);
21+                 XSync(m_display, FALSE);
22+                 VERBOSE(VB_GENERAL, LOC + QString("DPMS Reactivated %1").arg(status));
23+               m_dpmsenabled = true ;
24+           }
25          }
26          else
27          {