Created
April 23, 2019 05:05
-
-
Save treeherder/569e2a3337428ed62a7a5cc777370983 to your computer and use it in GitHub Desktop.
This might be pretty dangerous...
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
#!/usr/env/python3 | |
import os | |
def performance_mode(): | |
for x in range(0,15): | |
os.system(F"echo performance > /sys/devices/system/cpu/cpu{x}/cpufreq/scaling_governor") | |
print (os.system(F"cat /sys/devices/system/cpu/cpu{x}/cpufreq/scaling_governor")) | |
print("DONE.") | |
performance_mode() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment