[Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery
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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1722286 Title: Same action is forced for lid-close on AC and lid-close on battery To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery
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. https://bugs.launchpad.net/bugs/1722286 Title: Same action is forced for lid-close on AC and lid-close on battery To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery
** 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 Title: Same action is forced for lid-close on AC and lid-close on battery To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery
** 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 member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1722286 Title: Same action is forced for lid-close on AC and lid-close on battery To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1722286/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery
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) This is public domain and only lightly tested. It relies on existing gnome/systemd commands to perform the underlying action ** Attachment added: "custom_suspend.py" https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1722286/+attachment/4970889/+files/custom_suspend.py -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1722286 Title: Same action is forced for lid-close on AC and lid-close on battery To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1722286/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1722286] Re: Same action is forced for lid-close on AC and lid-close on battery
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/1722286 Title: Same action is forced for lid-close on AC and lid-close on battery To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1722286/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs