View Single Post
  #73 (permalink)  
Old 05-05-2011, 04:44 AM
ziggy471's Avatar
ziggy471
Geek with a Gun
Offline
Threadstarter
Location: NoVA
 
Join Date: Oct 2009
Posts: 744
Reputation: 6575
ziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 3 May 11

Quote:
Originally Posted by nemesys504 View Post
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 View Post
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
__________________
Ziggy471.com

Government's first duty is to protect the people, not run their lives.
Ronald Reagan

Last edited by ziggy471; 05-05-2011 at 04:56 AM.
Reply With Quote
This post has been thanked 1 times.