diff options
| -rwxr-xr-x | archsetup | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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" |
