Bug 183668

Summary: gnome-screensaver doesn't reset idle timers on user activity after system comes out of suspend
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: gnome-screensaverAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bjohnson, bojan, dbaron, jmccann, pebolle, ralston, richard, rvokal, sigge
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gnome-screensaver-2.14.0-1.fc5.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-09 08:12:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 182226    

Description Bill Nottingham 2006-03-02 16:27:12 UTC
gnome-power-manager-2.13.92-1

Occasionally, g-p-m gets into a state where it starts blanking the screen every
5 minutes or so. This happens a) regardless of keyboard/mouse/interrupt activity
b) regardless of the AC state.

Comment 1 Richard Hughes 2006-03-11 15:41:00 UTC
Does this still happen for 2.13.93?

Comment 2 Bill Nottingham 2006-03-11 17:14:05 UTC
Yes, still seeing this with 2.13.93-4. It *seems* to happen more after a resume
from suspend.

The very strange part is that it seems to be blanking roughly every 5 minutes,
yet I don't have a 5 minute timeout configured anywhere.


Comment 3 Richard Hughes 2006-03-11 17:38:59 UTC
What about gnome-screensaver-properties?

When it blanks the screen, what does cat /var/log/messages | grep gnome-power
display?

Comment 4 Bill Nottingham 2006-03-21 22:52:12 UTC
Nothing from g-p-m. This does appear to be gnome-screensaver.

Comment 5 Ray Strode [halfline] 2006-03-22 21:27:20 UTC
*** Bug 186314 has been marked as a duplicate of this bug. ***

Comment 6 Ray Strode [halfline] 2006-03-27 20:57:48 UTC
ignore the MODIFIED status change, i've got too many browser tabs open

Comment 7 Bojan Smojver 2006-03-27 22:35:35 UTC
I can confirm this with 2.14.0-1. Happens with both swsusp and suspend2 code.

Comment 8 Bojan Smojver 2006-03-27 22:46:27 UTC
Do you guys reckon it is worth referencing:

http://bugzilla.gnome.org/show_bug.cgi?id=335831

Looks like a slightly different issue, but related nontheless.

Comment 10 Ray Strode [halfline] 2006-04-04 05:18:34 UTC
This is actually upstream at:

http://bugzilla.gnome.org/show_bug.cgi?id=332576

I put an untested patch on the upstream report that I'm building into rawhide now.  

Would you guys mind testing it tomorrow after the sync?

Comment 11 Bojan Smojver 2006-04-04 09:12:33 UTC
As long as it runs on FC5 (I hope Rawhide didn't go to far yet with changes), it
should be OK.

Comment 12 Bojan Smojver 2006-04-04 09:47:58 UTC
Installed gnome-screensaver-2.14.0-4 from Rawhide on FC5. I'll be testing this
today and tomorrow.

Comment 13 Ray Strode [halfline] 2006-04-04 14:01:40 UTC
I'll push it into updates-testing, too (for those who run FC-5 and don't want to
use the rawhide package)

Comment 14 Sigge Kotliar 2006-04-04 22:59:56 UTC
Seems it was pushed into plain updates too.

Anyhow - it fixes the problem for me. Great work!

Comment 15 Bojan Smojver 2006-04-04 23:23:37 UTC
Plain updates has an older version (and its changelog doesn't show the change
either).

Comment 16 Sigge Kotliar 2006-04-05 00:05:12 UTC
Yeah, seems I accidentally lied about that one... It had in deed not been fixed
in updates. Updated to updates-testing, and now it seems to work better though.

However, there's still one bug: when resuming from suspend, if the time in
suspend has been longer than the screensaver interval, the screensaver is on
when leaving suspend. Which is kind of weird - the desktop should start up
directly. Perhaps that's a different bug though.

Comment 17 Bojan Smojver 2006-04-05 00:27:55 UTC
Actually, I think that's a desired feature. I definitely want the screensaver to
kick in and lock the desktop if the machine has been suspended for more than
screensaver interval.

In other words, if you walk away from your system and are relying on screensaver
to lock it (which is admittedly only a low level, limited time protection
measure against someone with physical access to your box), it shouldn't matter
if you left the system on or suspended. It should still get locked after exactly
the same amount of time of inactivity.

Comment 18 Sigge Kotliar 2006-04-05 09:27:32 UTC
Well, pressing the power button does in my book count as interacting with the
computer, and hence - a key-press event should be sent to the screensaver
turning it off.

HOWEVER: if the screen is actually locked, that same key press event should show
the unlock screen.

Am I not right?

Comment 19 Bojan Smojver 2006-04-05 10:15:37 UTC
Yeah, maybe. Then again, maybe not - if "interacting with the computer" is
defined as touching one of the input devices defined in X ;-)

Comment 20 Bojan Smojver 2006-04-05 23:34:30 UTC
The new RPM appears to be good. I had no screen locking happening while working
on the system after resume.

Comment 21 Fedora Update System 2006-04-06 15:24:03 UTC
gnome-screensaver-2.14.0-1.fc5.1 has been pushed for fc5, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.

Comment 22 Bojan Smojver 2006-05-09 05:51:01 UTC
This bug should be closed. Not a problem any more.

Comment 23 Richard Hughes 2006-05-09 08:12:09 UTC
Sweet, thanks.