For the case with cpufreq on 12.04.3 using the 3.8 kernel LTS enablement stack, I've found that the /sys/devices/system/cpu/cpufreq/ondemand folder doesn't exist on boot. It seems to appear some time later. Maybe 30 - 60 s after boot. I have resorted to putting the below in /etc/rc.local and not use sysfsutils:
until [ -d "/sys/devices/system/cpu/cpufreq/ondemand" ]; do
sleep 1
done
For the case with cpufreq on 12.04.3 using the 3.8 kernel LTS enablement stack, I've found that the /sys/devices/ system/ cpu/cpufreq/ ondemand folder doesn't exist on boot. It seems to appear some time later. Maybe 30 - 60 s after boot. I have resorted to putting the below in /etc/rc.local and not use sysfsutils:
until [ -d "/sys/devices/ system/ cpu/cpufreq/ ondemand" ]; do
sleep 1
done
echo -n "25" > /sys/devices/ system/ cpu/cpufreq/ ondemand/ up_threshold system/ cpu/cpufreq/ ondemand/ sampling_ down_factor
echo -n "10" > /sys/devices/