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 685918 - screen not locked on lid close
screen not locked on lid close
Status: RESOLVED INCOMPLETE
Product: gnome-shell
Classification: Core
Component: lock-screen
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 686132 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-10-10 21:34 UTC by Bill Nottingham
Modified: 2015-06-13 11:32 UTC
See Also:
GNOME target: ---
GNOME version: 3.5/3.6



Description Bill Nottingham 2012-10-10 21:34:49 UTC
(Unsure where in the g-s/g-s-d stack this lies. Feel free to move)

I have the following settings:
 Turn screen off after: 10 minutes
 Lock screen [on]
 Lock screeen after: screen turns off
 On lid close: nothing

When I close the lid, the screen turns off. But it's not locked. It should be.

Setting lid close to 'blank' doesn't appear to fix it either.

gnome-settings-daemon-3.6.1-2.fc18.x86_64
gnome-shell-3.6.0-1.fc18.x86_64
gnome-screensaver-3.6.0-1.fc18.x86_64
Comment 1 Florian Müllner 2012-10-16 22:14:00 UTC
*** Bug 686132 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Clasen 2012-10-17 10:21:52 UTC
Bill, are you still seeing this ? I'm pretty sure we've fixed this in 3.6.1
Comment 3 Bill Nottingham 2012-10-17 14:30:50 UTC
3.6.1 isn't pushed yet... when it is, I'll try.
Comment 4 Bill Nottingham 2012-10-18 17:56:30 UTC
Persists with 3.6.1.
Comment 5 Matthias Clasen 2012-10-29 03:24:46 UTC
Is this a multi-monitor situation ?
Or are you talking about the laptop panel ?
Is the machine not suspending on lid close ?
Comment 6 Ildar 2012-10-29 04:32:55 UTC
(In reply to comment #5)
> Is this a multi-monitor situation ?
> Or are you talking about the laptop panel ?

even with single laptop panel the problem persists.

> Is the machine not suspending on lid close ?

It _is_ suspending and I am not sure who is in charge for this. systemd manages PM on his own.
Comment 7 Bill Nottingham 2012-10-31 20:13:00 UTC
In my case, it's a single laptop panel. It's not suspending on lid close, because I have it configured not to.
Comment 8 Matthias Clasen 2012-10-31 20:32:31 UTC
> It's not suspending on lid close, because I have it configured not to.

The 'On lid close' settings should not have any effect anymore - the power plugin is not reading that setting at all, in 3.6.1-2. The only key that has an effect on lid close nowadays is lid-close-suspend-with-external-monitors, or whatever it is called. So, thats mysterious already.
Comment 9 Ildar 2012-11-08 18:50:46 UTC
What I've till now:
1. at times of 3.4 everything worked: closing lid suspended+locked
2. now Shell upgraded to 3.6 together with systemd and upower.

I guess that something bad happened with Shell or upower or with their interaction.

Another possibility is to hack systemd-sleep(8).
Comment 10 Samuel Sieb 2012-11-08 18:58:30 UTC
You have it set to do nothing or blank on lid close, so why would you expect it to lock?  Unless you mean it doesn't lock after 10 minutes?  That worked for me in 3.4 and still works with 3.6.

With 3.6, I had to change the systemd config to ignore the lid close so it doesn't suspend.  But the screen still locks after the expected idle time.
Comment 11 Bill Nottingham 2012-11-08 19:07:46 UTC
The checkbox is to lock screen "after screen turns off". The screen turns off when you close the lid, so it should lock.
Comment 12 Samuel Sieb 2012-11-08 19:13:20 UTC
That checkbox is related to the one above it regarding turning the screen off.  I don't know for sure, but I expect it's the laptop hardware that turns the backlight off when you close the lid, not the OS.
Comment 13 Bill Nottingham 2012-11-08 19:15:03 UTC
Which is an interesting bit of semantics that doesn't matter to the user using the system with the options presented.
Comment 14 Bastien Nocera 2013-01-14 12:57:24 UTC
In GNOME 3.7, we have:
- automatic screen lock
- lock screen after [screen turns off]

There's no "what to do on lid close" anymore, and it's not possible to get the screen to turn off without either 1) another screen being plugged in 2) idle being reached.

The shell will lock the screen when idle is reached with the above setting. I'm not sure there's anything left to do here. even if I agree that this should have worked in older versions where "on lid close" did something.
Comment 15 Bill Nottingham 2013-01-14 14:37:19 UTC
Can't it catch the 'screen turns off' event and lock the screen? Is there not a hotplug event in X when the lid close turns off the display?
Comment 16 Ildar 2013-01-15 03:50:35 UTC
Then is there a period of time when the screen is already dimmed down but isn't locked yet (2-5 sec): to have a last chance to prevent locking?
Comment 17 Samuel Sieb 2013-01-15 06:02:45 UTC
There is supposed to be an option to delay the locking, but it doesn't work any more. (Bug 654667)
Comment 18 Bastien Nocera 2013-01-15 07:18:53 UTC
(In reply to comment #15)
> Can't it catch the 'screen turns off' event and lock the screen? Is there not a
> hotplug event in X when the lid close turns off the display?

This isn't the problem. In which cases would we have a closed lid where no external display is in use, and where we'd want to have the whole session locked?

(In reply to comment #17)
> There is supposed to be an option to delay the locking, but it doesn't work any
> more. (Bug 654667)

gnome-screensaver isn't used anymore.
Comment 19 Bill Nottingham 2013-01-15 13:31:02 UTC
(In reply to comment #18)
> (In reply to comment #15)
> > Can't it catch the 'screen turns off' event and lock the screen? Is there not a
> > hotplug event in X when the lid close turns off the display?
> 
> This isn't the problem. In which cases would we have a closed lid where no
> external display is in use, and where we'd want to have the whole session
> locked?

All the cases where you're not suspending on lid close.
Comment 20 Bastien Nocera 2014-11-09 16:05:41 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > (In reply to comment #15)
> > > Can't it catch the 'screen turns off' event and lock the screen? Is there not a
> > > hotplug event in X when the lid close turns off the display?
> > 
> > This isn't the problem. In which cases would we have a closed lid where no
> > external display is in use, and where we'd want to have the whole session
> > locked?
> 
> All the cases where you're not suspending on lid close.

Except that there isn't such a case unless you're rolling your own settings (in which case, well, you get to lock your own screen too), or you have an external display. If you have an external display, you probably don't want to make the other display unusable by locking it.

Did I miss something?
Comment 21 Alexandre Franke 2015-06-13 11:32:09 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!