Open jeevithakannan2 opened 1 day ago
/label 'script'
hmm that's funny. so you're saying what's exactly wrong? we need to detect the BAT
device first?
That's how the current script works. It checks for only BAT0
Also it fails to work because sudo auto cpu-freq --install
should be ran before trying to apply tweaks
Yeah so this here https://github.com/ChrisTitusTech/linutil/blob/e3688e9b3d2f3594bf2367af87a800db9e2f1bbd/core/tabs/utils/power-profile.sh#L48
should be checking multiple BAT
s
Yeah so this here
should be checking multiple
BAT
s
Yeah it should be somewhat like if [ -d /sys/class/power_supply/BAT* ]
I usually check with dmidecode -s chassis-type
but it requires dmidecode to be installed
Describe the bug
Auto cpu-freq fails to detect laptop. And fails to apply tweaks after installation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Able to detect laptop and apply tweaks.
Screenshots
Additional context
Some laptops does not have battery in BAT0 instead they have in BAT1 or BAT2. Need to run
sudo auto-cpufreq --install
first time.Checklist