rename files to fit naming convention
[webos-internals:adamrmcd-modifications.git] / misc / misc-powersave-cpu-scaling.patch
1 // enable ondemand cpu powersaving option
2 Index: /etc/event.d/powersave-cpu-scaling
3 ===================================================================
4 --- /dev/null
5 +++ /etc/event.d/powersave-cpu-scaling
6 @@ -0,0 +1,13 @@
7 +# Enables cpu scaling
8 +
9 +start on stopped finish
10 +stop on runlevel [!2]
11 +
12 +console none
13 +
14 +script
15 +    echo "600000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
16 +    echo "250000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
17 +    echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
18 +    echo "30" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
19 +end script