Jonh, thanks for pushing this one forward. I think both of suggested patches are not really appropriate, as they just cure the side effect and not the root cause. The issue is that kdisplayrc contains values in minutes, therefore it does not make sense to change defaults to seconds as suggested by Francisco. I think the correct patch is that when kdisplayrc is read, proper defaults are used. Currently, they use DPMS values directly (in seconds) and this wrongly initializes the defaults.
Jonh, thanks for pushing this one forward. I think both of suggested patches are not really appropriate, as they just cure the side effect and not the root cause. The issue is that kdisplayrc contains values in minutes, therefore it does not make sense to change defaults to seconds as suggested by Francisco. I think the correct patch is that when kdisplayrc is read, proper defaults are used. Currently, they use DPMS values directly (in seconds) and this wrongly initializes the defaults.
I think the right patch is the following:
diff -Nur kdebase- 3.5.5a. dfsg.1/ kcontrol/ energy/ energy. cpp kdebase- 3.5.5a. dfsg.1. new/kcontrol/ energy/ energy. cpp 3.5.5a. dfsg.1/ kcontrol/ energy/ energy. cpp 2006-10-01 19:31:49.000000000 +0200 3.5.5a. dfsg.1. new/kcontrol/ energy/ energy. cpp 2006-12-09 13:05:07.000000000 +0100
DPMSInfo( dpy, &pre_configured _status, &pre_configured _enabled) ; try("displayEne rgySaving" , pre_configured_ enabled) ; ry("displayStan dby", pre_configured_ standby) ; ry("displaySusp end", pre_configured_ suspend) ; ry("displayPowe rOff", pre_configured_ off); ry("displayStan dby", pre_configured_ standby/ 60); ry("displaySusp end", pre_configured_ suspend/ 60); ry("displayPowe rOff", pre_configured_ off/60) ;
--- kdebase-
+++ kdebase-
@@ -111,9 +111,9 @@
/* let the user override the settings */
enabled = cfg->readBoolEn
- standby = cfg->readNumEnt
- suspend = cfg->readNumEnt
- off = cfg->readNumEnt
+ standby = cfg->readNumEnt
+ suspend = cfg->readNumEnt
+ off = cfg->readNumEnt
} else {
/* provide our defauts */
enabled = true;
I am building kdebase now to try this out.
I am still not sure why this is triggered only with KDE 3.5.5. There was only one change in 3.5.5 in this code: websvn. kde.org/ branches/ KDE/3.5/ kdebase/ kcontrol/ energy/ energy. cpp?rev= 575644& r1=438982& r2=575644
http://
I will discuss with the guy who committed this change about his view of this problem.