notes:laptop_power_management
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:laptop_power_management [2019/11/30 22:27] – Sean Rhone | notes:laptop_power_management [2023/07/13 15:26] (current) – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Laptop Power Management ====== | ====== Laptop Power Management ====== | ||
- | |||
- | ===== Notes ===== | ||
- | |||
- | * This expects a laptop with a battery | ||
- | * Do not use this for desktops | ||
===== Testing ===== | ===== Testing ===== | ||
Line 10: | Line 5: | ||
* The following commands can be ran to see if they work on specific hardware | * The following commands can be ran to see if they work on specific hardware | ||
- | watch -n 0.1 grep \'cpu MHz\' '/ | + | watch -n 0.5 grep \'cpu MHz\' '/ |
sudo x86_energy_perf_policy --all ' | sudo x86_energy_perf_policy --all ' | ||
Line 18: | Line 13: | ||
====== Dependencies ====== | ====== Dependencies ====== | ||
- | ===== Fedora Workstation ===== | + | **** |
- | + | ||
- | | + | |
sudo dnf install ' | sudo dnf install ' | ||
- | |||
- | ===== Ubuntu ===== | ||
- | |||
- | * '' | ||
- | |||
- | linux-tools-common linux-tools-generic | ||
====== Scripts ====== | ====== Scripts ====== | ||
Line 39: | Line 26: | ||
< | < | ||
- | #!/usr/bin/bash | + | #!/bin/bash |
# AC | # AC | ||
echo "$(cat '/ | echo "$(cat '/ | ||
- | x86_energy_perf_policy --all ' | + | x86_energy_perf_policy --all 'balance-performance' |
# End</ | # End</ | ||
Line 52: | Line 39: | ||
< | < | ||
- | #!/usr/bin/bash | + | #!/bin/bash |
# Battery | # Battery | ||
echo ' | echo ' | ||
- | x86_energy_perf_policy --all ' | + | x86_energy_perf_policy --all 'balance-power' --turbo-enable ' |
# End</ | # End</ | ||
/var/www/wiki/data/attic/notes/laptop_power_management.1575170843.txt.gz · Last modified: 2019/11/30 22:27 by Sean Rhone