I have worked out a way round this
# 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.
### Enable CPU frequency scaling if requested:
if [ "$CPUFREQ" = "on" ]; then
so it seems that cpu governor is not invoked on a desktop.
I changed the initial CPUFREQ=battery to CPUFREQ=on and it is working properly and my cpu is running some 30 degrees Celsius cooler.