Compare commits

...

3 Commits

Author SHA1 Message Date
Infinite State
d6e0ef5ad4
Merge 08737151af into f0734f361c 2024-11-06 15:52:45 +00:00
Adam Perkowski
08737151af
remove an unneccessary comment
Co-authored-by: nyx <nnyyxxxx@protonmail.com>
2024-10-27 01:24:07 +02:00
Infinite
406f2ad91a Add refined check 2024-10-26 15:18:08 -07:00

View File

@ -45,7 +45,7 @@ configureAutoCpufreq() {
if command_exists auto-cpufreq; then if command_exists auto-cpufreq; then
# Check if the system has a battery to determine if it's a laptop # Check if the system has a battery to determine if it's a laptop
if [ -d /sys/class/power_supply/BAT0 ]; then if ls /sys/class/power_supply/BAT* >/dev/null 2>&1; then
printf "%b\n" "${GREEN}System detected as laptop. Updating auto-cpufreq for laptop...${RC}" printf "%b\n" "${GREEN}System detected as laptop. Updating auto-cpufreq for laptop...${RC}"
"$ESCALATION_TOOL" auto-cpufreq --force powersave "$ESCALATION_TOOL" auto-cpufreq --force powersave
else else