aboutsummaryrefslogtreecommitdiff
path: root/laptop
diff options
context:
space:
mode:
Diffstat (limited to 'laptop')
-rwxr-xr-xlaptop/pmsetup.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/laptop/pmsetup.sh b/laptop/pmsetup.sh
index be75384..01b2e23 100755
--- a/laptop/pmsetup.sh
+++ b/laptop/pmsetup.sh
@@ -3,8 +3,9 @@
cp powertune /bin/powertune
cp powertune.service /etc/systemd/system/
-cp 90-backlight.rules /etc/udev/rules.conf.d/
+cp 90-backlight.rules /etc/udev/rules.d/
sudo systemctl start powertune
+sudo systemctl enable powertune
# Disable everything from being able to wake up the computer except for the lid
for x in $(find /sys -name wakeup) ; do if [ "$(cat $x)" == "enabled" ]; then echo 'disabled' >> $x; fi; done
@@ -12,5 +13,9 @@ echo LID | tee /proc/acpi/wakeup
# lid
cp logind.conf /etc/systemd/
-cp lidbutton /etc/acpi/events/
-cp lidbutton.sh /etc/acpi/actions/
+mkdir -p /etc/acpi/events
+mkdir -p /etc/acpi/actions
+cp lid-button /etc/acpi/events/
+cp lid-button.sh /etc/acpi/actions/
+sudo systemctl start acpid
+sudo systemctl enable acpid