Code: Select all
CPUFREQ=battery
# If CPUFREQ=battery and the battery module is loaded, turn on CPUfreq.
if [ "$CPUFREQ" = "battery" ]; then
if /sbin/lsmod | grep -wq battery ; then
# CPUFREQ=battery and a battery was detected, so change CPUFREQ
# to 'on' so that the block of script below will try to enable it.
CPUFREQ=on
fi
fi
### Enable CPU frequency scaling if requested:
if [ "$CPUFREQ" = "on" ]; then
That's the reason for the custom kernel of my laptop. But I think it also didn't work with the non-custom and the custom kernel which still had battery module. Anyway, nevermind.