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 676455 - screen lock on laptop lid close with external screen + keyboard/mouse attached shouldn't be done
screen lock on laptop lid close with external screen + keyboard/mouse attache...
Status: RESOLVED DUPLICATE of bug 692282
Product: gnome-settings-daemon
Classification: Core
Component: power
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-20 23:59 UTC by el
Modified: 2013-01-23 18:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description el 2012-05-20 23:59:56 UTC
Gnome shell logs me out when I close the laptop even when a (turned on) external screen (which shows the desktop perfectly fine up to that point) and external mouse/keyboard (usb) are attached - that is stupid and also annoying.
Comment 1 Owen Taylor 2012-05-21 00:43:59 UTC
Logs out or suspends?

 Logs out - this would be a bug with the X server crashing
 Suspends - this would be a question of gnome-power-manager policy and there's probably already a bug discussing it
Comment 2 el 2012-05-21 00:58:35 UTC
I am logged out in a sense of locking - password dialog is shown, session still runs in the background (no programs closed as would happen with an X server crash).

I disabled suspend because I find it annoying aswell. :-) (Changed the action to "Nothing" for laptop lid close action)
Comment 3 André Klapper 2012-05-21 09:12:17 UTC
> password dialog is shown

But only to enter a password, not to choose a user first, right? 
That would mean that you are not logged out, but that the system is locked.
Comment 4 el 2012-05-21 13:09:08 UTC
Yes. Sorry if I described it in odd ways
Comment 5 Owen Taylor 2012-05-21 14:31:48 UTC
GNOME Shell isn't handling the lid-close action, reassigning to gnome-power-manager.
Comment 6 Bastien Nocera 2012-05-21 17:15:05 UTC
(In reply to comment #5)
> GNOME Shell isn't handling the lid-close action, reassigning to
> gnome-power-manager.

gnome-power-manager? I doubt you'll find anything in gnome-power-manager that fits that description.
Comment 7 el 2012-05-21 23:55:54 UTC
I heard in Gnome 3.4, there will be no longer a suspend when the laptop lid is closed and an external screen is attached. Similarly (IMHO), there should also be no screen locking as seems to be happening now, since it's comparably counter-productive for the same reasons suspending isn't senseful in that situation.
Comment 8 connerleecml 2012-06-10 22:32:12 UTC
There are a couple of workarounds to this bug I have discovered. There is this extension: https://extensions.gnome.org/extension/241/yet-another-inhibit-suspend-extension-user-menu/. OR you can go into brightness and lock and turn lock off  for when screen turns off. I have done this and in gnome tweak tool I have set laptop lid close action to nothing. The gnome tweak tool thing alone does not work. I would not say the laptop lid close action is stupid but the way to get it disabled is too complicated without disabling gnome-screensaver or installing an inhibit extension. It seems the brightness and lock config does not respect laptop lid close action in gnome tweak tool / gsettings. That is the real bug here.
Comment 9 el 2012-06-11 02:51:24 UTC
Your suggestions are IMHO not very helpful because I don't want to turn screen lock off generally. Screen lock on laptop lid close is helpful for mobile use (without external screens).

No screen lock for lid action "Nothing" would be not a good idea because there is no lid close action "Lock screen". The screen lock is IMHO an independent option from the laptop lid action, since it can be used in various senseful combination with it (e.g. screen lock when blanking the screen), and that should stay.

But the screen lock should be limited to the useful case: I close my laptop in regular mobile use to finish my work and wander off

And it should be disabled in the senseless/"stupid" (my personal opinion) case: I have an external screen attached and just don't need the internal one -> instead of clicking myself through gnome 3 settings to disable the screen I am doing the natural thing: closing the laptop lid to deactivate it, sadly followed by a brainless screen lock on my external screen.
Comment 10 Bastien Nocera 2012-09-18 22:10:47 UTC
You can already work around that with the:
org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
GSetting.

Way to get yourself in the developer's good books with that subject line...

*** This bug has been marked as a duplicate of bug 657201 ***
Comment 11 el 2012-09-19 01:35:37 UTC
Hm. I'm honestly confused now: how does being able to force a suspend on lid close solve this:

Experienced behaviour:
- Closing lid with no external screen: suspend
- Closing lid with external screen: no suspend, but screen locked on external screen (which isn't very useful - sorry for using 'stupid' here, it was a really poor emotional choice of word)

Wanted behaviour:
- Closing lid with no external screen: suspend
- Closing lid with external screen: no suspend, no lock, no nothing

I don't see how the bug you duplicated against is related to this.
Comment 12 Paolo Bonzini 2012-09-19 07:31:35 UTC
This bug is not a duplicate indeed.  The wanted behavior for bug 657201 is:
- Closing lid with no external screen: suspend
- Closing lid with external screen: suspend

This is a bug in the lid-close action "Nothing", whose behavior (according to Jonas) really can be described as "Lock screen".

Unfortunately I don't have permission to reopen this bug.
Comment 13 el 2012-09-19 11:30:26 UTC
To emphasize this, there should continue to be a screen lock combined with the suspend. I don't want to activate the screen lock entirely. Also, with no external screen, the screen should be locked on lid close aswell. *ONLY* if an external screen is attached and I close the lid, there should be no screen lock since the external screen is still there and I want to use it.
Comment 14 Bastien Nocera 2013-01-23 18:28:32 UTC
(In reply to comment #11)
> Hm. I'm honestly confused now: how does being able to force a suspend on lid
> close solve this:
> 
> Experienced behaviour:
> - Closing lid with no external screen: suspend
> - Closing lid with external screen: no suspend, but screen locked on external
> screen (which isn't very useful - sorry for using 'stupid' here, it was a
> really poor emotional choice of word)

The patch in bug 692282 checks whether we would have suspended before blanking, or locking the screen, so if you have an external screen, as we wouldn't have suspended anyway, you won't get a screen lock, or blanking.

*** This bug has been marked as a duplicate of bug 692282 ***