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

Reply via email to