[HD2 Android NAND Development] jack928:
this is ok for me:

#!/system/bin/sh
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels ]
then
# set vdd_levels static on boot by dorimanx (XDA Developers)
echo '96000 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '128000 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '245000 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '384000 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '422400 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '460800 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '499200 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '537600 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '576000 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '614400 1075' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '652800 1100' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '691200 1125' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '729600 1150' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '768000 1150' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '806400 1175' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '844800 1225' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '883200 1250' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '921600 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '960000 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '998400 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1036800 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1075200 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1113600 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1152000 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1190400 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1228800 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1267200 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1305600 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1344000 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1382400 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1420800 1325' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1459200 1325' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1497600 1325' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1536000 1325' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1574400 1325' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1612800 1325' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "Showing Static Voltage interface settings for global info"
cat /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
sleep 2

else

# set vdd_levels_havs dynamic only on dorimanx kernel starting V3.2 on boot by dorimanx (XDA Developers)
echo "19200 825 825" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "96000 825 825" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "128000 825 825" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "245000 825 825" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "384000 825 825" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "422400 825 825" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "460800 850 875" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "499200 850 875" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "537600 900 925" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "576000 900 925" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "614400 925 950" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "652800 1050 1100" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "691200 1075 1125" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "729600 1100 1150" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "768000 1100 1150" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "806400 1125 1275" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "844800 1175 1225" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "883200 1200 1250" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "921600 1250 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "960000 1250 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "998400 1250 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1036800 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1075200 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1113600 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1152000 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1190400 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1228800 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1267200 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1305600 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1344000 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1382400 1275 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1420800 1275 1325" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1459200 1275 1325" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1497600 1275 1325" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1536000 1275 1325" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1574400 1275 1325" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
echo "1612800 1275 1325" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs

echo "Showing Dynamic Voltage interface settings for global info"
cat /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
sleep 2

fi