Bug 39864 - screensaver started when X session is not even active
Summary: screensaver started when X session is not even active
Status: RESOLVED FIXED
Alias: None
Product: kscreensaver
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: kscreensaver bugs tracking
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-27 12:18 UTC by pesarif
Modified: 2008-05-19 17:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kdebase/kdesktop/lock patch (4.22 KB, patch)
2003-04-30 12:24 UTC, Lubos Lunak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pesarif 2002-03-27 12:08:26 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kcmscreensaver
Version:           KDE 2.9.2 
Severity:          wishlist
Installed from:    Mandrake RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

Load up KDE then switch to a different VC (e.g. CTRL+ALT+F1).  Return say 10 minutes later and the screen saver's running.  What a waste of proccessing power (I have slow computer and this is noticeable)!  The screensaver should only be activated if the current VC is in X.

(Submitted via bugs.kde.org)
Comment 1 Lubos Lunak 2003-04-29 19:29:19 UTC
VisibilityNotify could help IIRC. 
 
Comment 2 Chris Howells 2003-04-29 19:46:06 UTC
As far as I can see, that only covers widgets being covered/uncovered, so I'm 
not too sure how it could be used. 
Comment 3 Lubos Lunak 2003-04-30 12:24:55 UTC
Created attachment 1462 [details]
kdebase/kdesktop/lock patch

But it works even for switching to another VT, somewhat surprisingly (DPMS
doesn't trigger it though). Please test, this one might be nice to backport.
Comment 4 Chris Howells 2003-04-30 13:00:47 UTC
Subject: Re:  screensaver started when X session is not even active

Hi,

On Wednesday 30 April 2003 11:24, Lubos Lunak wrote:
> But it works even for switching to another VT, somewhat surprisingly (DPMS
> doesn't trigger it though). Please test, this one might be nice to
> backport.

Absolutely superb! Thanks. I'll hopefully test sometime today.

I was dubious about how this would work considering network transparency etc, 
but thinking about it, I actually can't see any problems.

Comment 5 Chris Howells 2003-04-30 14:00:46 UTC
Subject: kdebase/kdesktop/lock

CVS commit by howells: 

Commit excellent patch by Lubos to fix #39864 "screensaver started when X session is not even active"

To do next: stop screensaver when DPMS has blanked the screen.

CCMAIL: 39864-done@bugs.kde.org


  M +46 -11    lockprocess.cc   1.19
  M +7 -0      lockprocess.h   1.7