View Single Post
  #145 (permalink)  
Old 05-25-2011, 11:22 AM
wraithdu's Avatar
wraithdu
Lurker
Offline
 
Join Date: May 2011
Posts: 3
Reputation: 0
wraithdu is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 3 May 11

I think I found a bit of a bug. For some reason, I can't disable a specific freq from an init.d startup script. I started using the script in place of SetCPU, but had to fall back to running the freq disable part on-demand after each boot. Here's the script that doesn't work:

Code:
#!/system/bin/sh

echo "smartass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "122880" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1036800" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
#this next line does nothing on boot
#if i manually run this script post-boot, it works correctly
#and disables the 184320 freq
echo 184320 > /sys/devices/system/cpu/cpu0/cpufreq/user_freqs
Reply With Quote