User Tools

Site Tools


notes:laptop_power_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
notes:laptop_power_management [2019/11/30 22:27] Sean Rhonenotes:laptop_power_management [2019/12/14 13:06] – balance perf Sean Rhone
Line 4: Line 4:
  
   * This expects a laptop with a battery   * This expects a laptop with a battery
-  * Do not use this for desktops+  * Unnecessary for desktops
  
 ===== Testing ===== ===== Testing =====
Line 27: Line 27:
  
   * ''linux-tools-common'' provides ''x86_energy_perf_policy'', and ''linux-tools-generic'' provides the module for it to actually work   * ''linux-tools-common'' provides ''x86_energy_perf_policy'', and ''linux-tools-generic'' provides the module for it to actually work
 +  * :!: TODO: This for whatever reason doesn't actually install the latest kernel tools for the running kernel or some nonsense
  
   linux-tools-common linux-tools-generic   linux-tools-common linux-tools-generic
Line 42: Line 43:
 # AC # AC
 echo "$(cat '/sys/class/backlight/'*'/max_brightness')" | tee '/sys/class/backlight/'*'/brightness' > '/dev/null' echo "$(cat '/sys/class/backlight/'*'/max_brightness')" | tee '/sys/class/backlight/'*'/brightness' > '/dev/null'
-x86_energy_perf_policy --all 'performance' --turbo-enable '1' --force+x86_energy_perf_policy --all 'balance-performance' --turbo-enable '1' --force
 # End</code> # End</code>
  
Line 55: Line 56:
 # Battery # Battery
 echo '60600' | tee '/sys/class/backlight/'*'/brightness' > '/dev/null' echo '60600' | tee '/sys/class/backlight/'*'/brightness' > '/dev/null'
-x86_energy_perf_policy --all 'power' --turbo-enable '0' --force+x86_energy_perf_policy --all 'balance-power' --turbo-enable '0' --force
 # End</code> # End</code>
  
/var/www/wiki/data/pages/notes/laptop_power_management.txt · Last modified: 2023/07/13 15:26 by Sean Rhone