GNOME Bugzilla – Bug 789418
Suspend on lid close broken
Last modified: 2019-03-20 11:48:29 UTC
Created attachment 362195 [details] Result of systemd-inhibit --list Using Gnome 3.26.1, Archlinux with linux 4.13.7 and systemd 235.8 When closing the lid of my laptop, the system is not going to suspend anymore. This worked before (2 months ago). There are duplicate inhibitors when running systemd-inhibit --list (see attachment). Maybe that's a hint. The list does not change when an external monitor is attached.
Just downgraded to gnome-settings-3.24.3-2 and now it's working again.
Can you edit your /etc/xdg/autostart/org.gnome.SettingsDaemon.Power.desktop and change the exec line to look like Exec=/usr/libexec/gsd-power -v log out and back in again (or reboot) and then reproduce this. After a failed attempt attach the full output of 'journalctl -b' to this report.
Created attachment 362895 [details] Complete output of journalctl -b Closed and opened the lid twice
Another ArchLinux user here, I see the problem when multiple monitors are attached. This seems to be because of https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=5db4d74 (in preparation for https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=cbf313e) which removes a setting that I had set on my system ("unlikely" :P). Suspend with only the laptop display works fine but I want to just close my laptop's lid when I have it docked, not disconnect the monitor first or click a button.
This is not the same for me. The laptop won't go to suspend, when no monitor is attached and I close the lid.
(In reply to Jonas Hahnfeld from comment #4) > Another ArchLinux user here, I see the problem when multiple monitors are > attached. This seems to be because of > https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=5db4d74 (in > preparation for > https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=cbf313e) which > removes a setting that I had set on my system ("unlikely" :P). That option was being (mis)used in the power plugin in a way that was completely different from its original semantics in the xrandr plugin and it was never exposed in the UI. It was a hack and we needed to remove the xrandr plugin so it needed to go with it. > Suspend with only the laptop display works fine but I want to just close my > laptop's lid when I have it docked, not disconnect the monitor first or > click a button. If you're arguing for adding a specific option open a new bug and make it clear what's the behavior you'd like to see configurable.
(In reply to benedikt from comment #5) > This is not the same for me. The laptop won't go to suspend, when no monitor > is attached and I close the lid. Please run this in a terminal: $ sleep 10 && gdbus call --session --dest org.gnome.Mutter.DisplayConfig --object-path /org/gnome/Mutter/DisplayConfig --method org.gnome.Mutter.DisplayConfig.GetResources then close the laptop lid and wait at least 10 seconds for the gdbus call to complete and paste its output here.
Created attachment 365751 [details] DisplayConfig Output of "sleep 10 && gdbus call --session --dest org.gnome.Mutter.DisplayConfig --object-path /org/gnome/Mutter/DisplayConfig --method org.gnome.Mutter.DisplayConfig.GetResources" when lid is closed and no external monitors are attached.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/363.