mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 10:02:06 +08:00
tici: higher cpu freq while offroad (#23151)
old-commit-hash: c8e64b2c62b908fbbd78d8520d9277421e51d7b7
This commit is contained in:
@@ -304,9 +304,12 @@ class Tici(HardwareBase):
|
||||
os.system(f"sudo su -c 'echo {val} > /sys/devices/system/cpu/cpu{i}/online'")
|
||||
|
||||
for n in ('0', '4'):
|
||||
gov = 'powersave' if powersave_enabled else 'performance'
|
||||
gov = 'userspace' if powersave_enabled else 'performance'
|
||||
os.system(f"sudo su -c 'echo {gov} > /sys/devices/system/cpu/cpufreq/policy{n}/scaling_governor'")
|
||||
|
||||
if powersave_enabled:
|
||||
os.system(f"sudo su -c 'echo 979200 > /sys/devices/system/cpu/cpufreq/policy{n}/scaling_setspeed'")
|
||||
|
||||
def get_gpu_usage_percent(self):
|
||||
try:
|
||||
used, total = open('/sys/class/kgsl/kgsl-3d0/gpubusy').read().strip().split()
|
||||
|
||||
Reference in New Issue
Block a user