From a8bbeee23b5f9e3789734a1b8a80d583c8d3eb2d Mon Sep 17 00:00:00 2001 From: Olivier Singla Date: Mon, 4 Feb 2019 16:30:20 -0500 Subject: [PATCH 1/2] 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/ From 76a51475fbf16c3c62e462e60035c97c53dd1267 Mon Sep 17 00:00:00 2001 From: Olivier Singla Date: Fri, 15 Feb 2019 11:07:28 -0500 Subject: [PATCH 2/2] Removed IdleAction since it is ignored by default. --- build_debian.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/build_debian.sh b/build_debian.sh index 48a06c759da8..16b44bb6ec61 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -374,7 +374,6 @@ 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/