From 063d13611a4c9e3a628a1f91ac1cd725e2b22e92 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 22 Aug 2021 21:02:35 -0400 Subject: alsvid3: Don't suspend on lid close --- (limited to 'hosts/alsvid3') diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst index 65eb80f..e16ec62 100644 --- a/hosts/alsvid3/postinst +++ b/hosts/alsvid3/postinst @@ -27,6 +27,13 @@ cat >"${target}/boot/grub/libreboot_grub.cfg" <<-EOF boot EOF +# Don't suspend on lid close. +cp -p "${target}/etc/elogind/logind.conf" \ + "${target}/etc/elogind/logind.conf.dist" +sed 's/^.*\(HandleLidSwitch.*\)=.*$/\1=ignore/' \ + "${target}/etc/elogind/logind.conf.dist" \ + >"${target}/etc/elogind/logind.conf" + # Turn on numlock on the VTs. cat >"${target}/etc/rc.local" <<'EOF' #!/bin/sh -e -- cgit v0.9.1