add udev rules
This commit is contained in:
parent
c084bf9082
commit
d5dc27eaaf
6 changed files with 33 additions and 2 deletions
2
ansible/files/udev/61-onbattery.rules
Normal file
2
ansible/files/udev/61-onbattery.rules
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Rule for when switching to battery
|
||||
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="0",RUN+="/usr/bin/system76-power profile battery"
|
||||
2
ansible/files/udev/62-onpower.rules
Normal file
2
ansible/files/udev/62-onpower.rules
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Rule for when switching to power supply
|
||||
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="1",RUN+="/usr/bin/system76-power profile performance"
|
||||
Loading…
Add table
Add a link
Reference in a new issue