mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Compare commits
3 Commits
daed8a57e8
...
d6e0ef5ad4
Author | SHA1 | Date | |
---|---|---|---|
|
d6e0ef5ad4 | ||
|
08737151af | ||
|
406f2ad91a |
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user