Comment 26 for bug 65791

Revision history for this message
Francisco (frantas) wrote :

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