Laptop not suspending on lid close after external monitors disconnected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm3 (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
I have a Dell XPS 13 9380 laptop with Type-C dock. There are two external monitors (DisplayPort) and USB mouse attached to the doc.
Normally I disconnect the dock cable from the laptop, close the laptop lid and laptop suspends.
However, sometimes it doesn't suspend.
I can see the 'Lid closed.' message in systemd-logind log which is normally followed by a sleep.
Once this happens, laptop no longer suspends on lid close until I restart Gnome session.
Also, if I lock it, the screen goes black but the backlight does not turn off.
I can put computer to a sleep from Gnome menu.
I'm not sure if it's issue is specific to Type-C dock though. It happens rarely, maybe 1 of 20 times.
It appears like gsd does not detect monitors disconnect event in some cases:
abram@abram-
WHO UID USER PID COMM WHAT WHY MODE
gdm 123 gdm 1977595 gsd-power handle-lid-switch External monitor attached or configuration changed recently block
gdm 123 gdm 1977593 gsd-media-keys handle-
abram 1000 abram 779130 gsd-media-keys handle-
3 inhibitors listed.
I've also seen a similar issue mentioned at askubuntu: https:/
The accepted answer involves killing gsd-power but that's more like a workaround than a fix; the same presumably happens when Gnome session is restarted.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-settings-
ProcVersionSign
Uname: Linux 5.4.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: GNOME
Date: Fri Jun 12 19:19:35 2020
InstallationDate: Installed on 2019-04-17 (421 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
SourcePackage: gnome-settings-
UpgradeStatus: Upgraded to focal on 2020-04-02 (70 days ago)
Changed in gnome-settings-daemon (Ubuntu): | |
status: | Incomplete → New |
I'll try to keep my laptop in this state for few days in case I could provide any further info.