From: Christian Heller Date: Tue, 18 Feb 2020 20:56:13 +0000 (+0100) Subject: For the EeePC, install the backports kernel to enable hibernation on lid close. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/do_todos?a=commitdiff_plain;h=428f427cf7adac99766099318302416df51b08fc;p=config For the EeePC, install the backports kernel to enable hibernation on lid close. --- diff --git a/buster/etc_files/all/etc/apt/sources.list b/buster/etc_files/all/etc/apt/sources.list index 57246b3..349e8a6 100644 --- a/buster/etc_files/all/etc/apt/sources.list +++ b/buster/etc_files/all/etc/apt/sources.list @@ -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 diff --git a/buster/setup_scripts/setup_desktop.sh b/buster/setup_scripts/setup_desktop.sh index 6ac1523..3626d73 100755 --- a/buster/setup_scripts/setup_desktop.sh +++ b/buster/setup_scripts/setup_desktop.sh @@ -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 . +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