PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Android > Android HTC Devices > HTC Thunderbolt > HTC Thunderbolt Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #71 (permalink)  
Old 05-05-2011, 02:09 AM
nemesys504's Avatar
Lurker
Offline
Pocket PC: HTC Thunderbolt
Carrier: VZW
 
Join Date: May 2009
Posts: 8
Reputation: 0
nemesys504 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 3 May 11

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
Reply With Quote
  #72 (permalink)  
Old 05-05-2011, 04:43 AM
Gunthermic's Avatar
Lurker
Offline
Pocket PC: Thunderbolt
Carrier: Verizon
 
Join Date: Apr 2011
Posts: 15
Reputation: 0
Gunthermic is a n00b
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
Since I am new at this, how do you create the script and where do you place it? Plz?
Reply With Quote
  #73 (permalink)  
Old 05-05-2011, 04:44 AM
ziggy471's Avatar
Geek with a Gun
Offline
Pocket PC: Thunderbolt
Carrier: Verizon
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.
  #74 (permalink)  
Old 05-05-2011, 04:47 AM
ziggy471's Avatar
Geek with a Gun
Offline
Pocket PC: Thunderbolt
Carrier: Verizon
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 Gunthermic View Post
Since I am new at this, how do you create the script and where do you place it? Plz?
The answer is in the OP, I did a write up about it on my site awhile ago.

Quote:
Originally Posted by ziggy471 View Post
If you would like to change the voltages, or use sysfs for what it's intended, I have a nice write-up on my site here.
Z

Last edited by ziggy471; 05-05-2011 at 04:57 AM.
Reply With Quote
  #75 (permalink)  
Old 05-05-2011, 06:30 AM
Gunthermic's Avatar
Lurker
Offline
Pocket PC: Thunderbolt
Carrier: Verizon
 
Join Date: Apr 2011
Posts: 15
Reputation: 0
Gunthermic is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 3 May 11

Quote:
Originally Posted by ziggy471 View Post
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.



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
So if we change the freq we use by issuing these comands, we dont need to use SetCPU anymore? Except if we want to see what it is acutally running at?
Reply With Quote
  #76 (permalink)  
Old 05-05-2011, 06:32 AM
ziggy471's Avatar
Geek with a Gun
Offline
Pocket PC: Thunderbolt
Carrier: Verizon
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 Gunthermic View Post
So if we change the freq we use by issuing these comands, we dont need to use SetCPU anymore? Except if we want to see what it is acutally running at?
Yep, that's correct.


Z
Reply With Quote
  #77 (permalink)  
Old 05-05-2011, 08:41 AM
nemesys504's Avatar
Lurker
Offline
Pocket PC: HTC Thunderbolt
Carrier: VZW
 
Join Date: May 2009
Posts: 8
Reputation: 0
nemesys504 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 3 May 11

Quote:
Originally Posted by ziggy471 View Post
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.



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
Will try this tonight. Also the reason why I created the script that way is because I am also going to disable certain frequencies between my 192 MHz and 960 MHz range as I see my phone doesn't utilize the 806 Mhz and 883 Mhz frequencies. Thank you.

Last edited by nemesys504; 05-05-2011 at 09:04 AM.
Reply With Quote
  #78 (permalink)  
Old 05-05-2011, 11:20 PM
nemesys504's Avatar
Lurker
Offline
Pocket PC: HTC Thunderbolt
Carrier: VZW
 
Join Date: May 2009
Posts: 8
Reputation: 0
nemesys504 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 3 May 11

@ Ziggy

Just edited my script to include the min/max code you provided and it worked like a charm. Thank you for your help.
Reply With Quote
  #79 (permalink)  
Old 05-06-2011, 01:51 PM
ziggy471's Avatar
Geek with a Gun
Offline
Pocket PC: Thunderbolt
Carrier: Verizon
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
@ Ziggy

Just edited my script to include the min/max code you provided and it worked like a charm. Thank you for your help.
Glad to hear it.


Z
Reply With Quote
  #80 (permalink)  
Old 05-06-2011, 10:37 PM
wascapsfan's Avatar
Lurker
Offline
Pocket PC: Thunderbolt
Carrier: verizon
 
Join Date: May 2011
Posts: 3
Reputation: 0
wascapsfan is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 3 May 11

Whoaaa!!! I downloaded ziggy's 5-3 from his 5-1 and I am SOOOO confused!! This one is to brilliant for my noobie brain.
I'm stuck between 120 and 1036. I thought I would be smart enough to handle this but NO WAY!!
I'm restoring back to the wonderful 050111.

I have brain ache!!!
Reply With Quote
Reply

  PPCGeeks > Android > Android HTC Devices > HTC Thunderbolt > HTC Thunderbolt Development

Tags
kernel, mecha, ziggy471


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:28 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com