home · contact · privacy
For the EeePC, install the backports kernel to enable hibernation on lid close.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 18 Feb 2020 20:56:13 +0000 (21:56 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 18 Feb 2020 20:56:13 +0000 (21:56 +0100)
buster/etc_files/all/etc/apt/sources.list
buster/setup_scripts/setup_desktop.sh

index 57246b325931ea0b69e0004e7267a38cc43b387c..349e8a69ff9bebeb3eb97012e64c40acbfdb1185 100644 (file)
@@ -1,4 +1,4 @@
 deb http://deb.debian.org/debian buster main contrib non-free
 deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
 deb http://deb.debian.org/debian buster-updates main contrib non-free
-#deb http://ftp.debian.org/debian buster-backports main contrib non-free
\ No newline at end of file
+deb http://ftp.debian.org/debian buster-backports main contrib non-free
index 6ac15233d9e9b33b266e2022743d9da76eaf2654..3626d731117e714d68f5741ff48a716ae51da658 100755 (executable)
@@ -19,6 +19,12 @@ cd "${setup_scripts_dir}"
 ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" user desktop "${system_name}"
 ./install_for_target.sh user desktop "${system_name}"
 
+# For hibernation on lid switch to work, we need a newer kernel on the EeePC,
+# see <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919227>.
+if [ "${system_name}" = "eeepc" ]; then
+    apt -y install -t buster-backports linux-image-amd64
+fi
+
 # Set up printer.
 lpadmin -p 'HP_Deskjet_F300_series' -m 'drv:///hpcups.drv/hp-deskjet_f300_series.ppd' -o 'OutputMode=NormalGray' -E
 service cups restart