Last active
August 30, 2018 16:09
-
-
Save Mnkai/6a949aff19c0744e30b0f7c324c1fe9d to your computer and use it in GitHub Desktop.
Example undervolt script for i7-8550U processor, Dell XPS 13 9360
This file contains hidden or 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
[Unit] | |
Description=Undervolting preset resume after sleep | |
After=suspend.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash /opt/undervolt_check_and_apply.sh | |
[Install] | |
WantedBy=suspend.target |
This file contains hidden or 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
[Unit] | |
Description=Undervolting preset resume after startup | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash /opt/undervolt_check_and_apply.sh | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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 | |
# Check for core offset | |
wrmsr 0x150 0x8000001000000000 | |
if [ $(rdmsr 0x150) == "0" ]; then | |
wrmsr 0x150 0x80000011f2800000 # -0.1055V | |
echo "Core offset set!" | |
else | |
echo "Core offset is already set!" | |
fi | |
# Check for GPU offset | |
wrmsr 0x150 0x8000011000000000 | |
if [ $(rdmsr 0x150) == "0" ]; then | |
wrmsr 0x150 0x80000111f5c00000 # -0.0801V | |
echo "GPU offset set!" | |
else | |
echo "GPU offset is already set!" | |
fi | |
# Check for cache offset | |
wrmsr 0x150 0x8000021000000000 | |
if [ $(rdmsr 0x150) == "0" ]; then | |
wrmsr 0x150 0x80000211f2800000 # -0.1055V | |
echo "Cache offset set!" | |
else | |
echo "Cache offset is already set!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment