Page 2 of 2

Re: cpufrequtils for x86_64

Posted: 17. Jan 2010, 14:10
by Shador
Yes, but you left out this preceding your quoted block: ;)

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
So only if rc.modules thinks you're using a battery powered system, it uses cpufreq or if you explicitely set CPUFREQ to on. :D
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. :mrgreen: