New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
xan
Old
(Last edited by xan; 2nd June 2011 at 12:38 AM.)
#1  
xan's Avatar
Recognized Developer - OP
Thanks Meter 448
Posts: 1,390
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
Default [HACK] Overclocking/Undervolting kernels with Voltage Control support

Hello,
I'm the author of Voltage Control, an application for Galaxy S series to control OC/UV kernels. I don't personally own a Nexus S (and I cant say I will, unless someone want to Nexus S donate one for me ;p).

Voltage Control Lite 4.00 on Android Market!


I know there are many apps to control OC, but I dont know any doing UV work.
If anybody is interested in making UV kernel for Nexus S there are some working kernels for SGS (given the hardware similarities some knowledge may be taken from current solutions).
Authors of most OC/UV code are raspdeep and Unhelpful, heres the topic: http://forum.xda-developers.com/showthread.php?t=822027 and second: http://forum.xda-developers.com/showthread.php?t=762171


If you are interested in creating UV kernel working with Voltage Control, I'll give brief explanation how VC works, and how are things done on SGS.

My application communicates with kernel via sysfs interfaces via cat and echo:
mandatory:
Code:
/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state // to read all states
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq // may be obsolete, didnt make a decision yet
Code:
/sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
key in UV procedure, it represents undervolt for each frequency from highest to lowest; "25 25 50 50 100" means UV highest freq by 25, and lowest by 100


providing additional functionality:
Code:
/sys/devices/system/cpu/cpu0/cpufreq/frequency_voltage_table
Containing all frequencies and corresponding voltages, format:
FREQ STOCK CURRENT
Code:
1120000   1300   1300
1000000   1300   1300
This is useful for determining stock voltages used by the device, because they are needed in voltage calculation. Stock values are hardcoded, but If you want to change them I suggest to implement this table, to let user know at exactly what voltage his device is running.

Third column is obsolete, since VC calculates current (stock-uv) voltage itself might be removed in the future.
Code:
/sys/devices/system/cpu/cpu0/cpufreq/states_enabled_table
This is table where we store enabled ("1") and disabled ("0") state for each frequency;
"0 1 1 0 1" means we disabled highest frequency and second to lowest.
This is useful when kernel developer wants to produce ONE kernel for all OC lovers.
This means there could be one kernel supporting OC frequencies up to 1600Mhz (lets say 1600,1500,1400,1300,1200,1120), and user could choose which ones he wants to use (eg 1400 and 1120, disabling the rest).

I'm aware that Nexus S will receive tremendous attention from developers so I believe that someone might actually come with better implementation (single table consisting of all information needed by VC?)of this mess.
Best idea would be to make one table for all information, so it can be easily parsed.


Current version of app is 4.0 beta, which is a complete rewrite.

I'm open for ideas, suggestions regarding additional features.

Happy OCing.
Attached Thumbnails
Click image for larger version

Name:	device.jpg
Views:	649
Size:	25.3 KB
ID:	613588   Click image for larger version

Name:	device2.jpg
Views:	771
Size:	36.3 KB
ID:	613589   Click image for larger version

Name:	device3.jpg
Views:	523
Size:	41.9 KB
ID:	613590  
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
The Following 6 Users Say Thank You to xan For This Useful Post: [ Click to Expand ]
 
supercurio
Old
#2  
supercurio's Avatar
Elite Recognized Developer
Thanks Meter 5013
Posts: 3,520
Join Date: May 2010
Location: Chambéry

 
DONATE TO ME
Thanks xan for this invitation

Unhelpful also played a big part with the initial code to load dynamically frequencies and voltages using a sysfs interface.
BTW, your app source is welcome on project-voodoo github !

I know several people motivated to contribute, it would be a place to start.
 
xan
Old
(Last edited by xan; 17th December 2010 at 02:19 AM.)
#3  
xan's Avatar
Recognized Developer - OP
Thanks Meter 448
Posts: 1,390
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
Right, Unhelpful, adding topic to OP.

Yes, this needs to be open-sourced.
No date yet, because there are monsters inside.

The thing that struck me now, is why is all of that so complicated?

I think I like single-table idea more and more.
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
k0mpresd
Old
#4  
Senior Member
Thanks Meter 25
Posts: 263
Join Date: Mar 2009
ill volunteer to help.
 
distortedloop
Old
#5  
Senior Member
Thanks Meter 246
Posts: 2,909
Join Date: Feb 2010
Location: Los Angeles, CA
Very exciting to see some of the best dev names from the SGS community showing interest in the Nexus S. Many goog things to come for us if they remain interested...
Wiping battery stats has the same influence over battery life as waving a dead chicken over your phone does; none, per Google.
If your sig takes up more screen real estate than most of your posts, maybe you should trim it a bit...
 
Anderdroid
Old
#6  
Anderdroid's Avatar
Senior Member
Thanks Meter 103
Posts: 1,198
Join Date: Dec 2009
Location: Palo Alto

 
DONATE TO ME
So when are we gonna see a 1.2GHz Voodoo OC/UV kernel
AppLovin Android Developer
Developer of quake3droid



Follow me on Twitter !
http://twitter.com/LeakedDave
 
jroid
Old
#7  
jroid's Avatar
Senior Member
Thanks Meter 84
Posts: 1,344
Join Date: Jan 2009
My phone recieves a noticeable speed increase with the voodoo kernel for Nexus S with max and min set to 1000 with performance governor Can't wait for a super optimized kernel OC/UV!
Nexus 4
 
defysword
Old
#8  
Member
Thanks Meter 0
Posts: 42
Join Date: Nov 2010
looking forward to a UV kernel to extend battery life.
 
hah2110
Old
#9  
Senior Member
Thanks Meter 35
Posts: 2,443
Join Date: Nov 2008
Quote:
Originally Posted by jroid View Post
My phone recieves a noticeable speed increase with the voodoo kernel for Nexus S with max and min set to 1000 with performance governor Can't wait for a super optimized kernel OC/UV!
Anything on battery?

Quote:
Originally Posted by defysword View Post
looking forward to a UV kernel to extend battery life.
+1
 
shrooms90
Old
#10  
Senior Member
Thanks Meter 19
Posts: 368
Join Date: Oct 2010
Location: Buchs SG
why is no one compiling a kernel supporting xans app? i really loved it on my galaxy s and when i saw this threat i was hoping for a supported kernel for my nexus s. it really can make oc more stable if u r patient enough to test the best setzings for ur phone

Sent from my Nexus S using Tapatalk


XDA PORTAL POSTS

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more