From a8bbeee23b5f9e3789734a1b8a80d583c8d3eb2d Mon Sep 17 00:00:00 2001 From: Olivier Singla Date: Mon, 4 Feb 2019 16:30:20 -0500 Subject: [PATCH] Disable acpi power saving mode used by some CPUs --- build_debian.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_debian.sh b/build_debian.sh index d7ff053581eb..48a06c759da8 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -372,6 +372,10 @@ allow-hotplug eth0 iface eth0 inet dhcp EOF +# Disable acpi power saving mode used by some CPUs +sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c 'echo "HandleLidSwitch=ignore" >> /etc/systemd/logind.conf' +sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c 'echo "IdleAction=ignore" >> /etc/systemd/logind.conf' + sudo cp files/dhcp/rfc3442-classless-routes $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d sudo cp files/dhcp/sethostname $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d/ sudo cp files/dhcp/graphserviceurl $FILESYSTEM_ROOT/etc/dhcp/dhclient-exit-hooks.d/