From 1ba3d6ef92ea3946cbba593c74e6f357038d1cbc Mon Sep 17 00:00:00 2001 From: Douglas Teles Date: Fri, 26 Jun 2026 17:57:26 -0300 Subject: [PATCH] perf: default CPU to 1.4 GHz, keep 1.5 GHz as an opt-in overclock Commit e8fd3a6c43 shipped enable.turbo-mode=1 in the default system.cfg, which makes 095-turbo-mode enable cpufreq/boost at boot, so every unit runs the 1512 MHz turbo OPP out of the box. That turns the overclock into the standard clock instead of an opt-in, with the thermal and battery cost it implies. Ship enable.turbo-mode=0 so the box defaults to the regular 1416 MHz ceiling. The 1512 MHz OPP stays available as an overclock: the ES "Enable CPU Overclock" switch (turbomode enable) flips cpufreq/boost on and pins the higher OPP, and performance() honors that toggle during gameplay. The performance governor on game launch is unchanged. Also correct a stale runemu.sh comment that claimed performance() unconditionally forces boost on; it follows the user's toggle now. Co-Authored-By: Claude Opus 4.8 --- .../packages/archr/config/system/configs/system.cfg | 2 +- projects/ArchR/packages/archr/sources/scripts/runemu.sh | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/projects/ArchR/packages/archr/config/system/configs/system.cfg b/projects/ArchR/packages/archr/config/system/configs/system.cfg index afd4992251..d74ef1c89d 100644 --- a/projects/ArchR/packages/archr/config/system/configs/system.cfg +++ b/projects/ArchR/packages/archr/config/system/configs/system.cfg @@ -181,7 +181,7 @@ system.battery.warning=0 system.battery.warning_threshold=25 system.hostname=archr system.language=en_US -enable.turbo-mode=1 +enable.turbo-mode=0 system.cpugovernor=ondemand system.loglevel=none system.merged.storage=0 diff --git a/projects/ArchR/packages/archr/sources/scripts/runemu.sh b/projects/ArchR/packages/archr/sources/scripts/runemu.sh index 34655a8347..95a5b140b0 100755 --- a/projects/ArchR/packages/archr/sources/scripts/runemu.sh +++ b/projects/ArchR/packages/archr/sources/scripts/runemu.sh @@ -111,10 +111,11 @@ function quit() { restore_ksm set_kill set "emulationstation" clear_screen - # Restore CPU governor to user pref (or ondemand fallback). Without - # the fallback the CPU stays in performance + boost after exit - # because performance() unconditionally turns boost on for the - # 1512 MHz turbo OPP, draining battery in the menu. + # Restore CPU governor to user pref (or ondemand fallback). Gameplay + # switches to the performance governor, so without the fallback the + # CPU stays pinned at max in the menu, draining battery. The 1512 MHz + # turbo OPP itself follows the user's overclock toggle (performance() + # calls restore_cpu_boost), so it is not forced on here. DEVICE_CPU_GOVERNOR=$(get_setting system.cpugovernor) case "${DEVICE_CPU_GOVERNOR}" in performance|ondemand|schedutil|powersave)