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
Next revision
Previous revision
Last revisionBoth sides next revision
notes:laptop_power_management [2019/11/30 22:25] 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>
  
 ===== Battery ===== ===== Battery =====
  
-  * Change the ''backlight'' sysfs as-needed (see [[#backlight1|backlight notes]]) or remove altogether+  * Change the ''backlight'' sysfs as-needed (see [[distros:fedora_workstation_gnome#backlight|Backlight notes]]) or remove altogether
  
   sudo mkdir -p '/etc/udev/scripts.d' && sudo -e '/etc/udev/scripts.d/battery-power.sh' && sudo chmod +x '/etc/udev/scripts.d/battery-power.sh'   sudo mkdir -p '/etc/udev/scripts.d' && sudo -e '/etc/udev/scripts.d/battery-power.sh' && sudo chmod +x '/etc/udev/scripts.d/battery-power.sh'
Line 54: Line 55:
 #!/usr/bin/bash #!/usr/bin/bash
 # Battery # Battery
-echo '3750' | 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