diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-02-26 22:15:46 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-02-26 22:15:46 +0300 |
commit | 4125ff153814f5904476a9fa669e93c6a9d0c5dd (patch) | |
tree | 98b63fffa428567d7116cf7b8ee8b936953c7d44 /laptop | |
parent | c41469958fd1d086ab399a2b3e40908ca69d8c85 (diff) | |
download | swayrice-4125ff153814f5904476a9fa669e93c6a9d0c5dd.tar.gz swayrice-4125ff153814f5904476a9fa669e93c6a9d0c5dd.zip |
fixes/improvements to helper script, and power management setup script
Diffstat (limited to 'laptop')
-rwxr-xr-x | laptop/pmsetup.sh | 11 |
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 |