From 6f56fa04a39564acfdc5ba9f83f88cf97cf5476e Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 1 Apr 2019 02:59:48 +0200
Subject: [PATCH] Enable hibernation on lid close.

---
 buster/apt-mark/eeepc                          | 4 ++++
 buster/etc_files/eeepc/etc/systemd/logind.conf | 6 ++++++
 2 files changed, 10 insertions(+)
 create mode 100644 buster/etc_files/eeepc/etc/systemd/logind.conf

diff --git a/buster/apt-mark/eeepc b/buster/apt-mark/eeepc
index 0eb8133..fc42862 100644
--- a/buster/apt-mark/eeepc
+++ b/buster/apt-mark/eeepc
@@ -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
index 0000000..1098229
--- /dev/null
+++ b/buster/etc_files/eeepc/etc/systemd/logind.conf
@@ -0,0 +1,6 @@
+#  This file is part of systemd.
+#
+# See logind.conf(5) for details.
+
+[Login]
+HandleLidSwitch=hibernate
-- 
2.30.2