From bd0fec952c3c3d922ff193f1e6600aeb9c4d1ae5 Mon Sep 17 00:00:00 2001 From: "lion.chan" Date: Fri, 12 Feb 2021 13:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20GDM=20=E8=AF=B4=E6=98=8E.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lion.chan --- Software/Applications/GDM/GDM.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Software/Applications/GDM/GDM.md diff --git a/Software/Applications/GDM/GDM.md b/Software/Applications/GDM/GDM.md new file mode 100644 index 0000000..4797bdc --- /dev/null +++ b/Software/Applications/GDM/GDM.md @@ -0,0 +1,25 @@ +# GDM + +From GDM - GNOME Display Manager: "The GNOME Display Manager (GDM) is a program that manages graphical display servers and handles graphical user logins." + +Display managers provide X Window System and Wayland users with a graphical login prompt. + +## 1.GDM auto-suspend (GNOME 3.28) + +GDM uses a separate dconf database to control power management. To apply your user's power settings, copy them to GDM's dconf database: + +```bash +IFS=$'\n'; for x in $(sudo -u username gsettings list-recursively org.gnome.settings-daemon.plugins.power); do eval "sudo -u gdm dbus-launch gsettings set $x"; done; unset IFS +``` + +where username is your username. + +To only disable auto-suspend on AC, run: + +```bash +sudo -u gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing' +``` + +(To also disable auto-suspend on battery, run the command with battery instead of ac.) + +Restart GDM to activate your changes.