mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-11-03 19:13:50 +08:00
set max cpu core frequency (#38132)
cap cpu core frequency
(cherry picked from commit c01b8be968)
This commit is contained in:
committed by
Jason Wen
parent
1e66d34eb2
commit
fb9e8f4fd9
@@ -313,6 +313,9 @@ class Tici(HardwareBase):
|
||||
continue
|
||||
gov = 'ondemand' if powersave_enabled else 'performance'
|
||||
sudo_write(gov, f'/sys/devices/system/cpu/cpufreq/policy{n}/scaling_governor')
|
||||
if not powersave_enabled:
|
||||
# cap max core freq to 1689 Mhz
|
||||
sudo_write('1689600', f'/sys/devices/system/cpu/cpufreq/policy{n}/scaling_max_freq')
|
||||
|
||||
# *** IRQ config ***
|
||||
|
||||
|
||||
Reference in New Issue
Block a user