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

H Jalonen h.jalonen at phpoint.fi
Sat Nov 11 09:08:47 UTC 2006


Sorry, but the patch doesn't fix this problem. Although it fixes the bug
about not saving monitor power off setting (bug #46585
https://launchpad.net/bugs/46585 and KDE bug tracker bug #128696
https://bugs.kde.org/show_bug.cgi?id=128696 ).

I made a clean install of Kubuntu 6.10, applied the fix and this bug
still persists. The root of this problem is that KDE for some reason
uses wrong time units, it misinterprets seconds for minutes. After
applying the patch if I set monitor to go off after 2 minutes,
displayconfigrc had line "dpmsSeconds=120", command "xset q" returned
value 120 and monitor went off after 2 mins. However after logout&login
system settings showed monitor to go off after 2 hours and "xset q"
returned 7200.

However there is a workaround. I edited manually the dpmsSeconds value
in displayconfigrc to 2 and after new login system settings show that
monitor should go off after 2 mins, "xset q" returns 120 and my monitor
actually went off after 2 minutes. But there is a catch.

Before KDE is fully up and running it still seems to interpret the
dpmsSeconds value in displayconfigrc as seconds. So if the dpmsSeconds
value is small enough, monitor goes off after few seconds of inactivity.
Basically this means that your desktop starts with a blank screen. I was
able to reproduce this with dpmsSeconds values 5 and smaller. If the
value was bigger (for example 10) the seconds to minutes conversion
happened before monitor went off and it stayed on until as many minutes
had passed as was the value of dpmsSeconds.

How to fix this? Quick and dirty hack would be dividing the value stored
in displayconfigrc by 60 (this causes blank start screen problem with
small power off times), but the right way would be to find out where and
why this seconds=minutes misinterpretation happens and use only seconds
(or only minutes).

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




More information about the kubuntu-bugs mailing list