6e508bfe3e2304a6ab72f0331d9c4cd1a234a9d4
wiki-how.md
... | ... | @@ -17,4 +17,19 @@ Move a container image using scp |
17 | 17 | ``` |
18 | 18 | podman image save 97f3876877e2 -o 97f3876877e2.tgz |
19 | 19 | podman load --input 97f3876877e2.tgz |
20 | +``` |
|
21 | + |
|
22 | +Automatically change power profiles on power supply status |
|
23 | +---------------------------------------------------------- |
|
24 | + |
|
25 | +``` |
|
26 | +$ cat /etc/udev/rules.d/61-onbattery.rules |
|
27 | +# Rule for when switching to battery |
|
28 | +SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="0",RUN+="/usr/bin/powerprofilesctl set power-saver" |
|
29 | + |
|
30 | +$ cat /etc/udev/rules.d/62-onpower.rules |
|
31 | +# Rule for when switching to power supply |
|
32 | +SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="1",RUN+="/usr/bin/powerprofilesctl set performance" |
|
33 | + |
|
34 | +$ sudo udevadm control --reload-rules && sudo udevadm trigger |
|
20 | 35 | ``` |
... | ... | \ No newline at end of file |