notes:laptop_power_management
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
notes:laptop_power_management [2019/04/05 23:46] – created Sean Rhone | notes:laptop_power_management [2019/11/30 22:27] – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Laptop Power Management ====== | ||
+ | ===== Notes ===== | ||
+ | |||
+ | * This expects a laptop with a battery | ||
+ | * Do not use this for desktops | ||
+ | |||
+ | ===== Testing ===== | ||
+ | |||
+ | * The following commands can be ran to see if they work on specific hardware | ||
+ | |||
+ | watch -n 0.1 grep \'cpu MHz\' '/ | ||
+ | |||
+ | sudo x86_energy_perf_policy --all ' | ||
+ | |||
+ | sudo x86_energy_perf_policy --all ' | ||
+ | |||
+ | ====== Dependencies ====== | ||
+ | |||
+ | ===== Fedora Workstation ===== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | sudo dnf install ' | ||
+ | |||
+ | ===== Ubuntu ===== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | linux-tools-common linux-tools-generic | ||
+ | |||
+ | ====== Scripts ====== | ||
+ | |||
+ | ===== AC ===== | ||
+ | |||
+ | * Change the '' | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # AC | ||
+ | echo "$(cat '/ | ||
+ | x86_energy_perf_policy --all ' | ||
+ | # End</ | ||
+ | |||
+ | ===== Battery ===== | ||
+ | |||
+ | * Change the '' | ||
+ | |||
+ | sudo mkdir -p '/ | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # Battery | ||
+ | echo ' | ||
+ | x86_energy_perf_policy --all ' | ||
+ | # End</ | ||
+ | |||
+ | ===== udev Rule ===== | ||
+ | |||
+ | * Requires the above AC and Battery scripts | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | SUBSYSTEM==" | ||
+ | SUBSYSTEM==" |
/var/www/wiki/data/pages/notes/laptop_power_management.txt · Last modified: 2024/05/06 22:00 by Sean Rhone