mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
core voltage sweep
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import time
|
||||
|
||||
print("starting at")
|
||||
os.system("cat /sys/kernel/debug/regulator/pm8994_s11/voltage")
|
||||
print("volts")
|
||||
|
||||
os.system("echo 99e8000.cpr3-ctrl > /sys/devices/soc/spm-regulator-10/regulator/regulator.56/99e8000.cpr3-ctrl-vdd/driver/unbind")
|
||||
os.system("echo 1 > /sys/kernel/debug/regulator/pm8994_s11/enable")
|
||||
|
||||
for i in range(900000, 465000, -10000):
|
||||
print("setting voltage to",i)
|
||||
os.system("echo %d %d > /sys/kernel/debug/regulator/pm8994_s11/voltage" % (i,i))
|
||||
time.sleep(1)
|
||||
os.system("cat /sys/kernel/debug/regulator/pm8994_s11/voltage")
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import time
|
||||
|
||||
os.system("echo 1 > /sys/kernel/debug/regulator/pm8994_s11/enable")
|
||||
|
||||
for i in range(900000, 465000, -10000):
|
||||
print("setting voltage to",i)
|
||||
os.system("echo %d %d > /sys/kernel/debug/regulator/pm8994_s11/voltage" % (i,i))
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user