home · contact · privacy
For the EeePC, install the backports kernel to enable hibernation on lid close.
[config] / buster / setup_scripts / setup_desktop.sh
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