Quote:
Originally Posted by nemesys504
Hey Ziggy. I am really liking the new toggle frequencies on and off feature. I made a script to disable the frequencies I dont use but one issue I'm having and it's not a big one is I can't disable the min and max that is set on startup (ex. 122 MHz min and 1.037 GHz max). Every other frequency is disable except those 2. This is the script I made to disable certain frequencies.
#!/system/bin/sh
echo 24576 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 61440 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 184320 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1113600 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1190400 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1267200 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1344000 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1420800 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1497600 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1574400 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1651200 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
Since I'm ranging between 192 MHz to 960 MHz, is there anyway to tweak it to disable those 2 on boot?
And one more issue I am having is the proximity sensor. It does not seem to be working correctly for me. Not sure if its because you lowered the voltage or its because I am extremely undervolted by almost 100 mV from your voltage table or even 100+ mV on certain frequencies. This is the script I am running for vdd levels just to show you how low I am undervolted.
#!/system/bin/sh
echo "122880 750" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "184320 750" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "192000 750" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "245760 750" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "368640 800" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "768000 850" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "806400 900" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "883200 925" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "960000 925" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1036800 975" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1113600 1000" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1190400 1025" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1267200 1050" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1344000 1100" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1420800 1225" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1497600 1250" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1574400 1350" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1651200 1350" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo "1728000 1350" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
|
Really simple fix, add these two lines at the beginning of the script to shut off the frequencies:
echo 192000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 960000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
EDIT: I'd also recommend using the added feature of disabling all freqs outside of the policy, it'd be a much cleaner script.
Quote:
Originally Posted by ziggy471
To disable ALL frequencies outside of the current policy minimum and maximum:
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
|
I'm assuming that your using SetCPU to set the freqs for you, with adding those two lines, there's no need to use it anymore.
Z