After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665701 - Gnome 3.2.1 locks screen after successful login
Gnome 3.2.1 locks screen after successful login
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 669515 671265 671692 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-12-06 22:30 UTC by Oleg
Modified: 2012-03-09 10:55 UTC
See Also:
GNOME target: 3.4
GNOME version: ---


Attachments
userMenu: Do not save/restore IDLE session status (1.97 KB, patch)
2012-03-03 09:21 UTC, Florian Müllner
committed Details | Review

Description Oleg 2011-12-06 22:30:15 UTC
Hi,

I'm experiencing issue that after successful login screen is locked and I have to input password again.

Steps:
1. Login correctly using GDM.
2. Desktop is displayed and after a few seconds the screen is fading and then locked.
3. Move mouse etc.
4. Screen locked dialog with password prompt is displayed.

Actual results: screen is locked immediately after successful login.
Expected results: screen is unlocked immediately after successful login.

I observe this issue on Gentoo (Gnome 3.2 recently in portage) and on Fedora 16.
This seems to be configuration related (if I login with the different user which has no Gnome configuration, I don't observe this issue).
But this seems common to several independent systems (arch linux https://bbs.archlinux.org/viewtopic.php?id=129749, my gentoo and fedora systems).

If you need any additional information, I'm ready to provide it.

Oleg
Comment 1 Oleg 2011-12-06 22:35:10 UTC
Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=393451
Comment 2 Dennis Cranston 2012-01-05 06:01:40 UTC
I have experienced the same issue several times on Fedora 16 (GNOME 3.2.1).  Immediately after login from gdm, the screen saver locks the screen again.
Comment 3 Ray Strode [halfline] 2012-02-13 20:56:33 UTC
*** Bug 669515 has been marked as a duplicate of this bug. ***
Comment 4 Ray Strode [halfline] 2012-02-13 20:57:54 UTC
I looked into this a bit today, and have a theory which I wrote on IRC and I'll paste here:

<halfline> airlied: i have a theory about the screenlock thing
<halfline> the IDLETIME sync counter only gives notifications when crossing a specific threshold
<halfline> it tells us after we've been idle foo seconds with a "positive transition" and tells us once we're active again with a "negative transition"
<halfline> so we'll never actually get a negative transition until we get a positive transition
<-- muelli has quit (Ping timeout: 600 seconds)
<halfline> now, gnome-session exports a dbus api to forcefully set its status to IDLE
<halfline> which gnome-shell gleefully uses based on what the status was at log out time
<halfline> so as soon as gnome-shell is started, it tells gnome-session "dconf says the user is idle!"
<halfline> gnome-session says "okay announcing that to the world"
<halfline> gnome-screensaver hears the announcement and says "time to lock!"
<halfline> and even though your moving the mouse around
<halfline> it doesn't do anything because the sync counter never hit its positive threshold
<halfline> so we'll never hit its negative threshold
<halfline> two fixes i can think of 1) don't save and restore idle status (why are we doing that?!) 2) make gnome-screensaver look at motion events itself during the fade out instead of relying exclusively on the IDLETIME counter
Comment 5 Nicolas Mailhot 2012-03-02 21:32:29 UTC
happens quite often there (fedora devel)

I usually quit GNOME via /sbin/init 6 in a term (since it was decided users didn't need to reboot from the shell menu, even though I do need to reboot regularly)
Comment 6 Matthias Clasen 2012-03-02 21:41:30 UTC
I think this analysis is correct. To verify, set

 gsettings set org.gnome.shell saved-session-presence 3

and then log out and back in again. You will notice that the screensaver kicks in right after login (because the shell 'restores' the session state of 3 = idle).

This seems clearly a gnome-shell bug. It should not do that.
Comment 7 Florian Müllner 2012-03-03 09:21:29 UTC
Created attachment 208897 [details] [review]
userMenu: Do not save/restore IDLE session status

When restoring the previous sesssion presence, we forcefully set
gnome-session's status. In the case of IDLE, this will trigger the
screensaver, which is clearly unwanted first thing after login. We
should only save and restore statuses that are explicitly set by the
user anyway, so limit presence saving to AVAILABLE and BUSY statuses.
Comment 8 drago01 2012-03-03 09:27:20 UTC
Review of attachment 208897 [details] [review]:

Makes sense.
Comment 9 Florian Müllner 2012-03-03 09:38:53 UTC
Attachment 208897 [details] pushed as a901f2d - userMenu: Do not save/restore IDLE session status
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-03-03 19:02:19 UTC
*** Bug 671265 has been marked as a duplicate of this bug. ***
Comment 11 André Klapper 2012-03-09 10:55:14 UTC
*** Bug 671692 has been marked as a duplicate of this bug. ***