Summary: | After "Lock screen" has been used the screensaver gets started automatically/enabled | ||
---|---|---|---|
Product: | [Unmaintained] kscreensaver | Reporter: | Daniel Hahler <kde-bugzilla> |
Component: | general | Assignee: | kscreensaver bugs tracking <kscreensaver-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Fixes X screensaver being turned on |
Description
Daniel Hahler
2006-10-25 21:45:40 UTC
I can confirm this - screensaver starts whether 'start automatically' is checked or not. It is the X screensaver starts with the 'white X' also. 'xset s off' has to be applied to stop it each time - sometimes it gets set to start again without doing anything, so I guess something else sets screensaver to be on. Nick Edit: I have never seen this behaviour in KDE 3.5.1, .2, .3 or .4 Nick OK, this is a kde 'lock session' bug. xset s off xset q Screen Saver: prefer blanking: no allow exposures: yes timeout: 0 cycle: 600 Now I lock session... ... Now unlock session xset q Screen Saver: prefer blanking: no allow exposures: yes timeout: 3610 cycle: 600 It has reset timeout to 3610. I guess this is in kdebase-3.5.5/kdesktop/lockeng.cc Nick OK, a bit more on this. The 'automatically start' value in kde screensaver settings can never be 0. Therefore, even if 'start automatically' is unchecked (i.e. OFF), there is still a value. Now, in kdebase-3.5.5/kdesktop/lockeng.cc 204: mTimeout = KDesktopSettings::timeout(); but what happens is Xscreensaver settings are saved: 41: // Save X screensaver parameters XGetScreenSaver(qt_xdisplay(), &mXTimeout, &mXInterval, &mXBlanking, &mXExposures); and later on, when xscreensaver settings are restored, the timeout value is restored from KDE timeout value, which as explained, will always be 1 or greater EVEN if 'start automatically' is OFF. 308.323: XSetScreenSaver(qt_xdisplay(), mTimeout + 10, mXInterval, DontPreferBlanking, mXExposures); etc. etc. So, I dunno if the should be mxTimeout restored here, or whether the value in the KDE screensaver section should allow a 0 factor; but then I don't undersatnd why + 10 gets added. either? Still, just remembering to 'set s off' after unlocking fixes this for the minute. Nick Created attachment 18416 [details]
Fixes X screensaver being turned on
Here's a patch that fixes this problem - this assumes that if a user uses KDE
screensaver with 'lock session' then they do not use X screensaver.
Nick
Can someone check this for 3.5.7, please? |