[Bug 1793918] Re: Add/reintroduce setting to enable suspend on lid-close with external monitors attached
> (untested) patch I built gsd with this patch and it works for me - it suspends with external monitor connected. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1793918 Title: Add/reintroduce setting to enable suspend on lid-close with external monitors attached To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-desktop3/+bug/1793918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1793918] Re: Add/reintroduce setting to enable suspend on lid-close with external monitors attached
Comment from the new duplicate 'This most trivial (untested) patch to use this settings seems to be: diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c index c7a16e8d..9b7a99b5 100644 --- a/plugins/power/gsd-power-manager.c +++ b/plugins/power/gsd-power-manager.c @@ -1196,7 +1196,7 @@ upower_kbd_toggle (GsdPowerManager *manager, static gboolean suspend_on_lid_close (GsdPowerManager *manager) { - return !external_monitor_is_connected (manager->rr_screen); + return g_settings_get_boolean (manager->settings, "lid-close-suspend-with-external-monitor") || !external_monitor_is_connected (manager->rr_screen); } static gboolean' ** Changed in: gnome-desktop3 (Ubuntu) Importance: Undecided => Low ** Changed in: gnome-settings-daemon (Ubuntu) Importance: Undecided => Low ** Changed in: gnome-tweaks (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1793918 Title: Add/reintroduce setting to enable suspend on lid-close with external monitors attached To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-desktop3/+bug/1793918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1793918] Re: Add/reintroduce setting to enable suspend on lid-close with external monitors attached
** Tags added: bionic ** Package changed: gnome-desktop (Ubuntu) => gnome-desktop3 (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1793918 Title: Add/reintroduce setting to enable suspend on lid-close with external monitors attached To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-desktop3/+bug/1793918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1793918] Re: Add/reintroduce setting to enable suspend on lid-close with external monitors attached
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/1793918 Title: Add/reintroduce setting to enable suspend on lid-close with external monitors attached To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-desktop/+bug/1793918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1793918] Re: Add/reintroduce setting to enable suspend on lid-close with external monitors attached
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gnome-desktop (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/1793918 Title: Add/reintroduce setting to enable suspend on lid-close with external monitors attached To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-desktop/+bug/1793918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1793918] Re: Add/reintroduce setting to enable suspend on lid-close with external monitors attached
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gnome-tweaks (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/1793918 Title: Add/reintroduce setting to enable suspend on lid-close with external monitors attached To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-desktop/+bug/1793918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1793918] Re: Add/reintroduce setting to enable suspend on lid-close with external monitors attached
** Summary changed: - Setting to enable suspend on lid-close with external monitors attached + Add/reintroduce setting to enable suspend on lid-close with external monitors attached ** Also affects: gnome-tweaks (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1793918 Title: Add/reintroduce setting to enable suspend on lid-close with external monitors attached To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-desktop/+bug/1793918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs