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 680231 - Inconsistent screen lock behavior in gnome-shell and gnome-settings-deamon
Inconsistent screen lock behavior in gnome-shell and gnome-settings-deamon
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on: 681827
Blocks:
 
 
Reported: 2012-07-19 07:29 UTC by Gary Ching-Pang Lin
Modified: 2012-08-16 18:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gsd patch to always lock the screen on sleep (687 bytes, patch)
2012-08-08 07:46 UTC, Gary Ching-Pang Lin
none Details | Review
UserMenu: don't lock the screen if automatic lock disabled (2.78 KB, patch)
2012-08-13 23:53 UTC, Giovanni Campagna
committed Details | Review
Use GDM instead of libaccountsservice for fast user switching (1.40 KB, patch)
2012-08-14 15:58 UTC, Giovanni Campagna
committed Details | Review

Description Gary Ching-Pang Lin 2012-07-19 07:29:51 UTC
If the lid-close behavior is set to "Suspend", g-s-d checks whether gnome-screensaver is lock-enabled before suspending the system. However, the suspend button in gnome-shell always locks the screen before suspending.

So, if the user disables the screen lock in control-center, then the behavior will be inconsistent.
Comment 1 Gary Ching-Pang Lin 2012-08-08 07:46:28 UTC
Created attachment 220644 [details] [review]
gsd patch to always lock the screen on sleep

The quick hack simply removes the "lock-enabled" check in gnome-settings-daemon, so that gnome-shell and g-s-d always lock the screen before suspending.

I did a quick search and found no guideline about the screen-lock behavior (just about the UI design). Any opinion?
Comment 2 Colin Walters 2012-08-08 18:02:06 UTC
Hmm...isn't a bug in gnome-shell that we're not respecting lock-enabled before suspend?
Comment 3 Gary Ching-Pang Lin 2012-08-09 02:37:09 UTC
Because I don't know what is the expected behavior, either locking the screen always or depending on the screensaver settings.
Comment 4 Giovanni Campagna 2012-08-13 23:53:40 UTC
Created attachment 221076 [details] [review]
UserMenu: don't lock the screen if automatic lock disabled

If automatic lock is disabled in the control center, only lock
when explicitly using the Lock menu item, and not for Suspend or
Switch user/session.

A possible patch to address this, from the other point of view.
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-08-14 00:02:23 UTC
Review of attachment 221076 [details] [review]:

Sure.
Comment 6 Giovanni Campagna 2012-08-14 00:19:59 UTC
Comment on attachment 221076 [details] [review]
UserMenu: don't lock the screen if automatic lock disabled

Nope, it doesn't work...
Comment 7 Giovanni Campagna 2012-08-14 11:00:08 UTC
Ok, actually it almost works. Pushing as it solves the Suspend problem, see the dependent bug for Switch user.
Comment 8 Giovanni Campagna 2012-08-14 11:02:03 UTC
Comment on attachment 221076 [details] [review]
UserMenu: don't lock the screen if automatic lock disabled

Attachment 221076 [details] pushed as 06262a9 - UserMenu: don't lock the screen if automatic lock disabled
Comment 9 Giovanni Campagna 2012-08-14 15:58:18 UTC
Created attachment 221168 [details] [review]
Use GDM instead of libaccountsservice for fast user switching

libaccountsservice uses gdmflexiserver internally, which has been
removed from gdm. Instead, use libgdm directly.
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-08-14 16:08:08 UTC
Review of attachment 221168 [details] [review]:

Fix libaccountsservice?
Comment 11 Giovanni Campagna 2012-08-16 16:58:15 UTC
(In reply to comment #10)
> Review of attachment 221168 [details] [review]:
> 
> Fix libaccountsservice?

Is it right for libaccountsservice to depend on libgdm? The accountsservice is a freedesktop project, and is shared by different DMs (AFAIK)
Comment 12 Jasper St. Pierre (not reading bugmail) 2012-08-16 17:27:56 UTC
I'm going to be removing the session stuff in libaccountsservice, so this is correct.
Comment 13 Jasper St. Pierre (not reading bugmail) 2012-08-16 17:28:10 UTC
Review of attachment 221168 [details] [review]:

Good.
Comment 14 Jasper St. Pierre (not reading bugmail) 2012-08-16 17:28:11 UTC
Review of attachment 221168 [details] [review]:

Good.
Comment 15 Giovanni Campagna 2012-08-16 18:58:31 UTC
Attachment 221168 [details] pushed as 1dbbb4f - Use GDM instead of libaccountsservice for fast user switching
I'd say this is finally fixed now.