[Bug 65791] Re: DPMS timeout restored incorrectly on login

Francisco frantas at brfree.com.br
Wed Dec 6 01:23:35 UTC 2006


Here is my patch.

--- energy.cpp~	2006-12-05 23:12:07.000000000 -0200
+++ energy.cpp	2006-12-05 23:15:14.000000000 -0200
@@ -77,8 +77,8 @@
 #endif
 
 static const int DFLT_STANDBY   = 0;
-static const int DFLT_SUSPEND   = 30;
-static const int DFLT_OFF   = 60;
+static const int DFLT_SUSPEND   = 1800;
+static const int DFLT_OFF   = 3600;
 
 
 /**** DLL Interface ****/
@@ -340,7 +340,7 @@
     if (hasDPMS) {
         if (enable) {
             DPMSEnable(dpy);
-            DPMSSetTimeouts(dpy, 60*standby, 60*suspend, 60*off);
+            DPMSSetTimeouts(dpy, standby, suspend, off);
         } else
             DPMSDisable(dpy);
     } else

-- 
DPMS timeout restored incorrectly on login
https://launchpad.net/bugs/65791




More information about the kubuntu-bugs mailing list