Public bug reported: I am using Ubuntu 18.04 (Bionic) 64-bit on a System76 Galaga UltraPro laptop. At work, I plug two displays into my laptop, one DisplayPort and one HDMI.
If, while both displays are plugged in and the laptop lid is closed and the laptop's built-in display is therefore disabled, I: 1. lock my screen; 2. unplug both displays at about the same time; 3. wait about ten seconds; and then 4. open my laptop lid, I find that I have been logged out. If I immediately log back in to the built-in display, a couple seconds after I log in, the screen locks. If I then immediately log out and log back in again, the screen does _not_ lock. It seems that this weird lock-right-after-login behavior is related to the fact that I get logged out as described above. It seems that the shell remembers that it is supposed to be locked despite the crash / logout, such that when I log back in, it realizes that it's supposed to be locked and locks itself. Note that I am filing this bug as instructed in https://bugs.launchpad.net/gnome-shell/+bug/1721428/comments/105: "BTW, we have fixed many gnome-shell bugs with these symptoms recently in Ubuntu 18.04. So please try 18.04 and log a new bug if you have any problems." ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: gnome-shell 3.28.1-0ubuntu2 ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17 Uname: Linux 4.15.0-20-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Mon May 7 14:26:22 2018 DisplayManager: gdm3 InstallationDate: Installed on 2016-08-09 (635 days ago) InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719) SourcePackage: gnome-shell UpgradeStatus: Upgraded to bionic on 2018-04-27 (10 days ago) ** Affects: gnome-shell (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug bionic third-party-packages -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1769720 Title: Logged out when unplugging external monitors with screen locked and lid closed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1769720/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs