aboutsummaryrefslogtreecommitdiff
path: root/laptop
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-02-26 22:15:46 +0300
committerYaroslav <contact@yaroslavps.com>2020-02-26 22:15:46 +0300
commit4125ff153814f5904476a9fa669e93c6a9d0c5dd (patch)
tree98b63fffa428567d7116cf7b8ee8b936953c7d44 /laptop
parentc41469958fd1d086ab399a2b3e40908ca69d8c85 (diff)
downloadswayrice-4125ff153814f5904476a9fa669e93c6a9d0c5dd.tar.gz
swayrice-4125ff153814f5904476a9fa669e93c6a9d0c5dd.zip
fixes/improvements to helper script, and power management setup script
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