From 300570255d014d5249177c03afcd6063e86171a5 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 29 Aug 2020 13:52:27 +0200 Subject: [PATCH] Added auto-cpufreq --- arch-setup/install.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch-setup/install.sh b/arch-setup/install.sh index 462de088..675e2dd4 100644 --- a/arch-setup/install.sh +++ b/arch-setup/install.sh @@ -180,6 +180,21 @@ do esac done +in_acpufreq=0 + +cmd=(dialog --separate-output --checklist "Performance and Battery life" 22 76 16) +options=(1 "auto-cpufreq" off) +choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) +clear +for choice in $choices +do + case $choice in + 1) + in_acpufreq=1 + ;; + esac +done + in_pkgstats=0 cmd=(dialog --separate-output --checklist "Report installed packages?" 22 76 16) @@ -411,6 +426,18 @@ else echo "Skipping Bettergram" fi +#performance and battery life +if [ $in_acpufreq -eq 1 ]; then + echo "Installing auto-cpufreq" + sudo yay -S auto-cpufreq-git + sudo auto-cpufreq --install + sudo systemctl start auto-cpufreq + sudo systemctl enable auto-cpufreq +else + echo "Skipping auto-cpufreq" +fi + + #stats if [ $in_pkgstats -eq 1 ]; then echo "Installing pkgstats"