From: Christian Heller Date: Mon, 1 Apr 2019 00:59:48 +0000 (+0200) Subject: Enable hibernation on lid close. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_id%7D%7D?a=commitdiff_plain;h=6f56fa04a39564acfdc5ba9f83f88cf97cf5476e;p=config Enable hibernation on lid close. --- 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