Last active
August 29, 2015 14:20
-
-
Save artizirk/423eef10ed531dc97835 to your computer and use it in GitHub Desktop.
tries to maximize powersave and minimaze heat output so that my DELL Vostro 3360 laptop wouldn't burn my legs when i have it on my lap.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "max powersave" | |
# kill the stupid spinning hdd that i dont use most of the time anyway | |
sudo hdparm -y /dev/sda | |
# set some bits on the cpu to make it use less power | |
sudo x86_energy_perf_policy powersave | |
# set some more bits on the cpu to disable turbo boost, one command per core | |
sudo wrmsr -p0 0x1a0 0x4000850089 | |
sudo wrmsr -p1 0x1a0 0x4000850089 | |
sudo wrmsr -p2 0x1a0 0x4000850089 | |
sudo wrmsr -p3 0x1a0 0x4000850089 | |
# set intel pstate driver to powersave | |
sudo pstate-frequency --color -S -g powersave | |
# set pstate max mhz to 800mhz (or whatever the minimum is) | |
sudo pstate-frequency --color -S -m 1 | |
# kill intel gpu performance, CS GO fps drops from 60 to 16 | |
echo 350 | sudo tee /sys/kernel/debug/dri/0/i915_max_freq | |
# autotune everything else | |
sudo powertop --auto-tune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment