From f0dabfcfb5f658eb601ac87cfad1608db4e48c1a Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 26 May 2026 16:00:11 -0500 Subject: feat(archsetup): set a CPU governor with cpupower I added cpupower to the Power section: install it, set the governor in /etc/default/cpupower, and enable cpupower.service so the governor applies at boot. The governor is performance. It's the one value valid under every cpufreq driver. amd_pstate and intel_pstate in active mode accept only performance or powersave, while passive and acpi-cpufreq also allow schedutil and ondemand. Laptops want powersave, so that's a per-host override to layer on later. The enable is non-fatal, matching the rest of the Power section. --- archsetup | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/archsetup b/archsetup index 367ecd2..566a186 100755 --- a/archsetup +++ b/archsetup @@ -1228,6 +1228,18 @@ EOF action="enabling upower service" && display "task" "$action" systemctl enable upower >> "$logfile" 2>&1 || error_warn "$action" "$?" + # cpupower applies a CPU frequency governor at boot. 'performance' is valid + # under every cpufreq driver -- amd_pstate/intel_pstate active mode accept + # only performance and powersave, while passive/acpi-cpufreq also allow + # schedutil/ondemand. Laptops (velox) want 'powersave'; that's a per-host + # override candidate. Non-fatal -- an unsupported governor just fails to apply. + pacman_install cpupower + action="setting cpupower governor to performance" && display "task" "$action" + sed -i "s/^#\?governor=.*/governor='performance'/" /etc/default/cpupower >> "$logfile" 2>&1 || \ + error_warn "$action" "$?" + action="enabling cpupower service" && display "task" "$action" + systemctl enable cpupower.service >> "$logfile" 2>&1 || error_warn "$action" "$?" + # Secure Shell display "subtitle" "Secure Shell" -- cgit v1.2.3