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 on
Can you modify this script so that it works when an external monitor is
connected or the laptop is docked? gsd overrides logind, and prevents
the computer from suspending in these cases.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
** Changed in: gnome-settings-daemon
Status: Unknown => Confirmed
** Changed in: gnome-settings-daemon
Importance: Unknown => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1722286
Ti
** Bug watch added: GNOME Bug Tracker #790607
https://bugzilla.gnome.org/show_bug.cgi?id=790607
** Also affects: gnome-settings-daemon via
https://bugzilla.gnome.org/show_bug.cgi?id=790607
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a
I'm attaching a proof of concept python script that restores the
behaviour (in case it's useful to others).
The script should be launched as:
systemd-inhibit --who=me --why=because --mode=block --what=handle-lid-switch
/path/to/custom_suspend.py
from the session startup (gnome-session-properties
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: gnome-settings-daemon (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/172228