It seems there is no issue filed upstream. The closest thing I'd found is: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/111 Nothing about lid-close-ac-action and lid-close-battery-action. I'm not sure if an upstream bug issue should be filed.
I read [this][1] and [this][2] on but only locks when lid-close. [1]: https://unix.stackexchange.com/a/307498/209677 [2]: https://help.gnome.org/users/gnome-help/stable/power-closelid.html.en -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/1722286 Title: Same action is forced for lid-close on AC and lid-close on battery Status in GNOME Settings Daemon: Confirmed Status in gnome-settings-daemon package in Ubuntu: Confirmed Bug description: Note: I'm flagging this as a bug in gnome-settings-daemon, but the program itself is not buggy. It's rather the usage of this program instead of unity-settings-daemon in ubuntu 17.10 that causes a system regression. --- Up to and including Ubuntu 17.04, unity-settings-daemon was used to managed suspend policy in the default graphic session (Unity). Unity-settings-daemon is a fork of (an old version of) gnome-settings-daemon. Now that gnome-shell is the default environment, session management is handled by gnome-settings-daemon. In particular, the action to perform when the lid is closed is handled by the gsd-power plugin of gnome-settings-daemon (as it was by unity-settings-daemon). With unity-settings-daemon, two dconf keys where honored (lid-close- ac-action and lid-close-battery-action, under org/gnome/settings- daemon/power ) to specify what action are performed when the user closes the laptop lid, depending on whether the laptop is plugged or on battery. In Ubuntu 17.10, gnome-settings-daemon ignore those settings (unless their value is 'ignore') and delegate actions to systemd-logind. The latter has no knowledge on whether the laptop is plugged or not and apply the same action regardless. This is a regression in a useful (and I believe popular) functionality. It is common to want the laptop to suspend when unplugged but expecting it to remain running when plugged (I believe this is the default on MacOS and windows and both system can be configured to distinguish between on-AC and on-Battery). The functionality can be restored with a bit of sweat with either hooks for acpid (or maybe a session script using the gnome framework to detect events and apply the correct policy, acpid-scripts run as root), but this is clearly not something the average user should have to tinker with. At the *very least* release note should advertise this regression (as a new feature ?) but ideally provide a compatibility layer to restore this functionality. ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: gnome-settings-daemon 3.26.1-0ubuntu1 ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1 Uname: Linux 4.13.0-11-generic x86_64 ApportVersion: 2.20.7-0ubuntu2 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Mon Oct 9 16:15:54 2017 InstallationDate: Installed on 2015-06-03 (859 days ago) InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422) SourcePackage: gnome-settings-daemon UpgradeStatus: Upgraded to artful on 2017-03-16 (207 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp