notes:laptop_power_management
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
notes:laptop_power_management [2019/04/05 23:46] – created Sean Rhone | notes:laptop_power_management [2023/07/13 15:26] (current) – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Laptop Power Management ====== | ||
+ | ===== Testing ===== | ||
+ | |||
+ | * The following commands can be ran to see if they work on specific hardware | ||
+ | |||
+ | watch -n 0.5 grep \'cpu MHz\' '/ | ||
+ | |||
+ | sudo x86_energy_perf_policy --all ' | ||
+ | |||
+ | sudo x86_energy_perf_policy --all ' | ||
+ | |||
+ | ====== Dependencies ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo dnf install ' | ||
+ | |||
+ | ====== Scripts ====== | ||
+ | |||
+ | ===== AC ===== | ||
+ | |||
+ | * Change the '' | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | # AC | ||
+ | echo "$(cat '/ | ||
+ | x86_energy_perf_policy --all ' | ||
+ | # End</ | ||
+ | |||
+ | ===== Battery ===== | ||
+ | |||
+ | * Change the '' | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | # Battery | ||
+ | echo ' | ||
+ | x86_energy_perf_policy --all ' | ||
+ | # End</ | ||
+ | |||
+ | ===== udev Rule ===== | ||
+ | |||
+ | * Requires the above AC and Battery scripts | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | SUBSYSTEM==" | ||
+ | SUBSYSTEM==" |