Skip to content

Instantly share code, notes, and snippets.

@treeherder
Created April 23, 2019 05:05
Show Gist options
  • Save treeherder/569e2a3337428ed62a7a5cc777370983 to your computer and use it in GitHub Desktop.
Save treeherder/569e2a3337428ed62a7a5cc777370983 to your computer and use it in GitHub Desktop.
This might be pretty dangerous...
#!/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