User Tools

Site Tools


linux:notes:x86_energy_perf_policy

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
linux:notes:x86_energy_perf_policy [2025/04/26 19:02] Sean Rhonelinux:notes:x86_energy_perf_policy [2025/08/25 23:55] (current) Sean Rhone
Line 13: Line 13:
  
   sudo zypper install 'cpupower'   sudo zypper install 'cpupower'
- 
-===== Check ===== 
- 
-  watch --interval '0.5' grep \'cpu MHz\' '/proc/cpuinfo' 
- 
-  sudo x86_energy_perf_policy 
- 
-===== Max Perf ===== 
- 
-**** 
  
   sudo x86_energy_perf_policy --all 'performance' --turbo-enable '1' --force   sudo x86_energy_perf_policy --all 'performance' --turbo-enable '1' --force
Line 30: Line 20:
 ===== AC ===== ===== AC =====
  
-  sudo mkdir -p '/etc/udev/scripts.d' && sudo -e '/etc/udev/scripts.d/ac-power.sh' && sudo restorecon -F -I -R '/etc/udev/scripts.d' && sudo chmod +x '/etc/udev/scripts.d/ac-power.sh'+  sudo mkdir -p '/etc/udev/scripts.d' && sudo -e '/etc/udev/scripts.d/ac-power.sh' && sudo chmod +x '/etc/udev/scripts.d/ac-power.sh'
  
 <code> <code>
 #!/bin/bash #!/bin/bash
  
-x86_energy_perf_policy --all 'performance' --turbo-enable '1' --force+'/usr/bin/x86_energy_perf_policy--all 'performance' --turbo-enable '1' --force
  
 # End</code> # End</code>
Line 41: Line 31:
 ===== Battery ===== ===== Battery =====
  
-  sudo mkdir -p '/etc/udev/scripts.d' && sudo -e '/etc/udev/scripts.d/battery-power.sh' && sudo restorecon -F -I -R '/etc/udev/scripts.d' && 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'
  
 <code> <code>
 #!/bin/bash #!/bin/bash
  
-x86_energy_perf_policy --all 'balance-power' --turbo-enable '0' --force+'/usr/bin/x86_energy_perf_policy--all 'balance-power' --turbo-enable '0' --force
  
 # End</code> # End</code>
Line 52: Line 42:
 ===== udev Rule ===== ===== udev Rule =====
  
-  sudo -e '/etc/udev/rules.d/99-power.rules' && sudo restorecon -F -I '/etc/udev/rules.d/99-power.rules' && sudo udevadm control --reload+  sudo -e '/etc/udev/rules.d/99-power.rules' && sudo udevadm control --reload
  
 <code> <code>
/usr/local/www/wiki/data/attic/linux/notes/x86_energy_perf_policy.1745708531.txt.gz · Last modified: by Sean Rhone