With laptops, I found myself going to vcpufreq often, usually to put it in "ondemand" when on battery, and sometimes "performance" when on AC power. Not that "ondemand" doesn't do the job properly, but you might want it to go at full speed all the time.
A way to automate something like this is to create a script that checks the current state (battery or AC) and asks vcpufreq to go into the desired cpu frequency mode.
I put the following in a file called acpicpu:
status=$(grep -o off-line /proc/acpi/ac_adapter/ACAD/state)
if [ "$status" = "off-line" ]
sed -i 's|\(Setting.ScalingGov=\).*|\1"ondemand"|' /etc/vcpufreq.conf
sed -i 's|\(Setting.ScalingGov=\).*|\1"performance"|' /etc/vcpufreq.conf
Line number 2 is checking if the power cable is connected or not. You should change this to the right directory in your system (some have AC, I think, rather than ACAD). Also check if the state file says "off-line" when on battery.
The other lines then replace whatever governor is currently in vcpufreq's configuration file to what you desire when on battery or not: here it changes to "ondemand" when off-line (i.e, battery) and "performance" otherwise (i.e., cable). Then vcpufreq is called to change to the new configuration.
As root, I copied this new file to /usr/local/bin, and changed its permissions so that only root can execute it:
chmod u+x /usr/local/bin/acpicpu
A way to automate this when plugging or unplugging the power cable is to create another file with the following:
I copied this file inside /etc/acpi/events/ and called it cpu (though it can have any other name).
Finally, I wanted to have this run on boot, rather than having vcpufreq go with the previous configuration. That is, I wanted the right cpu governor when I boot the laptop with the cable on or off.
So I clicked "load on boot" in vcpufreq, but changed /etc/rc.d/rc.local.
Instead of this line at the end of rc.local:
I commented the vcpufreq line and call the new script instead:
# vcpufreq is called by the acpiscript, according to AC state
If you do all 3 steps, you can still use vcpufreq to change the governor manually.
Just remember that the governor will automatically change if the cable is plugged or unplugged, and your next configuration on boot will depend on whether you're running on battery and not on the last configuration you chose in vcpufreq.
Also, for this stuff to work, make sure the acpi daemon is running (VasmCC > Hardware > Hardware Set).
EDIT: To be fair, I don't find much use in running in "perfomance" whenever I'm on AC power. It has the disadvantage of making my fan spin much louder. The governors can be changed, though. Say, "ondemand" when on AC, and "powersave" when on battery. Just adjust the acpicpu script above.