home · contact · privacy
Enable hibernation on lid close.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 1 Apr 2019 00:59:48 +0000 (02:59 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 1 Apr 2019 00:59:48 +0000 (02:59 +0200)
buster/apt-mark/eeepc
buster/etc_files/eeepc/etc/systemd/logind.conf [new file with mode: 0644]

index 0eb813319f311dbd26991fa290eb9561a0e6d4a8..fc42862800c182e229d53b97504a370a39aa3082 100644 (file)
@@ -1 +1,5 @@
+# this provides setupcon which reads /etc/default/console-setup
 console-setup
+# without this, systemd-logind won't run, and so not detect lid close for hibernation
+dbus
+
diff --git a/buster/etc_files/eeepc/etc/systemd/logind.conf b/buster/etc_files/eeepc/etc/systemd/logind.conf
new file mode 100644 (file)
index 0000000..1098229
--- /dev/null
@@ -0,0 +1,6 @@
+#  This file is part of systemd.
+#
+# See logind.conf(5) for details.
+
+[Login]
+HandleLidSwitch=hibernate