#!/bin/sh /usr/bin/powertop --auto-tune for x in $(find /sys -name wakeup) ; do if [ "$(cat $x)" == "enabled" ]; then echo 'disabled' >> $x; fi; done echo LID | /usr/bin/tee /proc/acpi/wakeup