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 <noreply@anthropic.com>
This commit is contained in:
Douglas Teles
2026-06-26 17:57:26 -03:00
parent 9d89a01d4c
commit 1ba3d6ef92
2 changed files with 6 additions and 5 deletions
@@ -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
@@ -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)