yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] Roberto_Lim:
Voltage Tweaks for JellyTime

Voltage Tweaks for JellyTime R28/R29/R30

I made a flashable voltage tweaks for JellyTime which I have tested on R28, R29 and R30. Compared to a HTC DHD stock ROM, JellyTime heavily undervolts the lower speeds (245-341 MHz) but runs the higher speeds at stock. I created these two scripts to correct this.

JellyTime-VOS-1.zip

JellyTime-VOS-2.zip

These files adjust the ROM's voltages as listed in the chart below:

Frequency > JT Stock > VOS-1 > VOS-2

245760: > 850

341640: > 900

614400: > 1000

768000: > 1050 > 1025 > 1025

806400: > 1100 > 1025 > 1050

1024000: > 1200 > 1050 > 1075

1200000: > 1200 > 1100 > 1150

1305600: > 1225 > 1150 > 1200

1401600: > 1250 > 1200

1516800: > 1300

1612800: > 1325

1689600: > 1375

1766400: > 1425

1843200: > 1450

1920000: > 1500

1996800: > 1500

2016000: > 1525

The lower voltages should result in longer battery life during load.

The JellyTime-VOS-1.zip are the best settings I could run on my phone and tested up to 1.4 GHZ, but I really on test extensively up to 1.2 GHz.

The JellyTime-VOS-2.zip contains less aggressive settings incase the first file is not stable. The voltage is at about the same level as you will find in other custom ROM's. Basically, if you have run ARHD, aospX, Blackout ICS, ViperDHD, or Virtuous Affinity/Infinity in the past, you should be able to run these settings comfortably.

DISCLAIMER AND AGREEMENT

THESE FILES WERE TESTED ON JELLYTIME R28 AND R29 ONLY. IF YOU USE THESE FILES, YOU DO SO AT YOUR OWN RISK.

I CANNOT GUARANTEE THAT YOU DEVICE WILL BE STABLE AT THE LOWER VOLTAGES.

How to install

1. Copy the .zip file to the root of your SDCard.

2. Reboot into recovery.

3. Flash the .zip

4. Reboot.

How to return to stock

Want to go back to stock. Just flash the JelltyTime-RTS-vdd.zip below.​

Like my work?

If you like my work, and want to make a donation, go to thread of the ROM you are using and Donate to the ROM developer instead.

Credits:

I learned to edit system files thanks to LeeDroid's tutorials.

I learned to make flashable zips studying mike1986's flashable zips for ARHD.

Killersloth for inspiration and advice.
[Desire HD Android Development] Roberto_Lim:
Voltage Tweaks for CyanogenMod 10.1

Voltage Tweaks for CyanogenMod 10.1

I made a flashable voltage tweaks for PipelinerArd's JJB-JOP40 (Unofficial CM 10.1). These files also are compatible with Mustaavalkosta's CM 10.1 Nightlies and M1 ROM's. I have not tried the other CM10.1 ROM's. Zeitraffer reports the files work with the CodefireX 4.2.1 ROM's. ai6908 reports that the files work with JellyTime 4.2 ROM's.

Compared to a HTC DHD stock ROM, JellyTime heavily undervolts the lower speeds (245-341 MHz) but runs the higher speeds at stock. I created these two scripts to lower voltages at the higher frequencies.

JB-JOP40-VOS1.zip

JB-JOP40-VOS2.zip

JB-JOP40-VOS3.zip

These files adjust the ROM's voltages as listed in the chart below:

Frequency > CM Stock > VOS-1 > VOS-2 > VOS-3

245760: > 850

341640: > 900

614400: > 1000

768000: > 1050 > 1025 > 1025 > 1025

806400: > 1100 > 1025 > 1050 > 1050

1024000: > 1200 > 1050 > 1075 > 1100

1200000: > 1200 > 1100 > 1150 > 1175

1305600: > 1225 > 1150 > 1200

1401600: > 1250 > 1200

1516800: > 1300

1612800: > 1325

1689600: > 1375

1766400: > 1425

1843200: > 1450

1920000: > 1500

1996800: > 1500

2016000: > 1525

The lower voltages should result in longer battery life during load.

DISCLAIMER AND AGREEMENT

IF YOU USE THESE FILES, YOU DO SO AT YOUR OWN RISK.

I CANNOT GUARANTEE THAT YOU DEVICE WILL BE STABLE AT THE LOWER VOLTAGES.

How to install

1. Copy the .zip file to the root of your SDCard.

2. Reboot into recovery.

3. Flash the .zip

4. Reboot.

How to return to stock

Want to go back to stock. Just flash the JB-JOP40-RTS-vdd.zip below.​

Like my work?

If you like my work, and want to make a donation, go to thread of the ROM you are using and Donate to the ROM developer instead.

Credits:

I learned to edit system files thanks to LeeDroid's tutorials.

I learned to make flashable zips studying mike1986's flashable zips for ARHD.

Killersloth for inspiration and advice.
[Desire HD Android Development] cstayton:
I would highly recommend these tweaks, I use them pretty much exclusively and it's way easier and cleaner than uaing an app from the market.
[Desire HD Android Development] Roberto_Lim:
Whoah, I was not expecting this.

Here are links to some of my older files
[Desire HD Android Development] ricc@rd:
Hi Roberto. Would it be possible to have these tweaks also for XxXPachaXxX NERO XL Rom? Thank you :)
[Desire HD Android Development] Roberto_Lim:
Should be. I flashed version 2 of the ROM. Can you use a file manager and go to:

a) /etc/init.d - List down the names of the files you see in the folder inside.

b) /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels - any chance you can copy and paste the contents, or just copy the, vdd_levels file and attached it to your reply

c) /sys/devices/system/cpu/cpu0/cpufreq/available_scaling_governors - any chance you can copy and paste the contents, or just copy, the available_scaling_governors file and attached it to your reply

IN ORDER TO UPLOAD THE FILES AS AN ATTACHMENT, YOU PROBABLY HAVE TO ZIP THEM.

This information should be enough so I can answer your question definitively :)
[Desire HD Android Development] boonkeat8:
+1 used for trickdroid really good . Nice work
[Desire HD Android Development] wilken:
Really a great post, i learned a lot just reading it.

thank you very much!
[Desire HD Android Development] Roberto_Lim:
Thanks.

@all

Now we will be moving on to fine tuning governors? Which governor interest you the most?
[Desire HD Android Development] IMTLD:
amazing job man

Q-what is the difference between the first post and the second post

i wish if i can learn what are u doing but i have bad english
[Desire HD Android Development] ricc@rd:
Thank you Roberto! You're amazing! I think that I can learn a lot of things thanks to you :)

So thank you very much!! I just reverted back to gingerbread after trying several ICS roms with low battery life, but the next time I will be on ICS I promise that I will surely help you and test your fantastic tweaks (surely better than using setcpu or similar) ;)

Responding to tour question; I think that smartassV2 is the best governor and your edits that cause the cpu to ramp up slower and to ramp down faster should make it even better! But what does it mean exactly fine tuning governors?? Sorry for my ignorance :o
[Desire HD Android Development] Roberto_Lim:
No problem. No one should apologize for bad English. It's just a language equal to any other. Could also be bad writing.

The files on the festival post try to keep the processor running more on the lower speeds.

The files on the second post will keep the processor running faster.

Sent from my HTC Desire HD powered by Blackout ICS Incredible v3.1.1
[Desire HD Android Development] Roberto_Lim:
Basically with an app, and depending on the ROM you can adjust:

1. CPU speed

2. Governor type

3. Some will allow you to adjust voltages

With the scripts you can also adjust:

4. When the processor will go faster or slower.

5. How much the processor will speed up and speed down.

6. A few others but 5 and 6 are the most important.

I guess we start with ondemand. Than differentiate it from smartassV2.

Sent from my HTC Desire HD powered by Blackout ICS Incredible v3.1.1
[Desire HD Android Development] IMTLD:
thank u man
[Desire HD Android Development] ricc@rd:
So the fine tuning governor means adding also scripts to what you did in the forst post? :confused:

In that case, why don't you start directly with smartassV2? It has a better battery life than ondemand :)
[Desire HD Android Development] (HEROo):
CodefireX

Hello. Create tweaks for CodeFireX, it will be interesting.
[Desire HD Android Development] Roberto_Lim:
Re: [MOD]Governor, Freq. & Voltage Tweaks: aospX, BlackoutICS, JellyTime & CM 10.1 Ro

It's should not be necessary. It is possible for a kernel to have different vdd and frequency tables which would break compatibility, but so far none of the current kernels for the DHD would do that.
[Desire HD Android Development] RASTAVIPER:
Re: [MOD]Governor, Freq. & Voltage Tweaks: aospX, BlackoutICS, JellyTime & CM 10.1 Ro

The autonomy of battery after applying this tweak is really great!

Although I use the larger Anker 1.900mah battery, by using 3g I was ready for charging after 7 hours of internet use.

After the tweak, I have passed 8 hours and still having 15% left.

Great job! :)

Unleashed from my DHD on Jellytime 4.2
[Desire HD Android Development] Zeitraffer:
I just flashed JB-JOP40D-VOS1.zip on cfx 4.2.2. SR12 - phone running great.

Thank you. Again.
[Desire HD Android Development] Roberto_Lim:
Thanks for the feedback on compatibility.
[Desire HD Android Development] chrisb906:
hi

Do u know of a battery tweak for jellytime 42 R61 running on HTC inspire?
[Desire HD Android Development] ai6908:
Re: [MOD]Governor, Freq. & Voltage Tweaks: aospX, BlackoutICS, JellyTime & CM 10.1 Ro

You can use either cfx or jellytime codes...

Sent from my Inspire 4G
[Desire HD Android Development] chrisb906:
Re: [MOD]Governor, Freq. & Voltage Tweaks: aospX, BlackoutICS, JellyTime & CM 10.1 Ro

will this mprove my battery life? As it is now,battery drains fast. I have original kernel. 3.0.62.

---------- Post added at 05:24 AM ---------- Previous post was at 05:22 AM ----------

Sorry to bother u, but where do I find those codes? Got a link?
[Desire HD Android Development] RASTAVIPER:
Re: [MOD]Governor, Freq. & Voltage Tweaks: aospX, BlackoutICS, JellyTime & CM 10.1 Ro

Check my posts.

The consumption is even better, and after applying these scripts.

I also use R61.

Unleashed from my N101T
[Desire HD Android Development] AtomosVE:
Re: [MOD]Governor, Freq. & Voltage Tweaks: aospX, BlackoutICS, JellyTime & CM 10.1 Ro

Tested stability and setcpu stress test for 7+hours within last 10 days on each freq and voltage, created table below. But it still has problem.

DO NOT USE VOLTAGES BELOW 5 RANDOM FREEZE AND REBOOT FOUND (other than two, I don't know what frequency had problem)

though every Desire HD has unique microchip, even if table below worked on my device, might yours won't. keep this in mind before OC/UV.

149760 750
245760 750[I] (known freeze), more voltage-775[/I]
368640 750
460800 875 [I](known freeze), more volatge-900[/I]
576000 875
652800 875
768000 875
806400 925

Freq table from Advanced Sense Kenrel. Voltage has been uv'd

http://xdaforums.com/showthread.php?p=38695572

Any idea to testing properly? Don't know why whole table passed yesterday. Played continous playlist of YouTube(flashplayer) with floating browser.
[Desire HD Android Development] ricc@rd:
Flashed JB-JOP40D-VOS1.zip on CodefireX SR15 and it works :)

Thank you again for your useful work roberto! ;)
[Desire HD Android Development] Quiglesigles:
What do you mean by "it works"? Have you noticed any improvement?
[Desire HD Android Development] ricc@rd:
R: [MOD]Governor, Freq. & Voltage Tweaks: aospX, BlackoutICS, JellyTime & CM 10.1 Rom

It improves battery life :)

Inviato dal mio Desire HD
[Desire HD Android Development] Roberto_Lim:
Re: [MOD]Governor, Freq. & Voltage Tweaks: aospX, BlackoutICS, JellyTime & CM 10.1 Ro

Thanks for the feedback.
[Desire HD Android Development] Authi:
Hi Roberto, did you know if voltage tricks works on Blackuot ICS v4?

Thanks
[Desire HD Android Development] Roberto_Lim:
Hi. Does CodefireX support init.d scripts. Is there a /system/etc/init.d?
[Desire HD Android Development] (HEROo):
Perhaps. I don't know exactly.
[Desire HD Android Development] Roberto_Lim:
I will give it a flash one I am done with this article.

@all

Sorry I notice plenty of typo's with my post on max_cpu_load and min_cpu_load so I edited it.
[Desire HD Android Development] lateral18:
hey i couldnt send it through the message , but here it is .

so what is next ???
[Desire HD Android Development] Roberto_Lim:
Let me take a look at it. Will not be able to do so till after work later today.

Sent from my HTC Desire HD powered by aospX 1.0.0-MR1
[Desire HD Android Development] lateral18:
Ok, great , let me know ,

Thanks for the help
[Desire HD Android Development] Roberto_Lim:
The ROM is using andrev_oc (unless you installed it yourself) designed to use two governors. Ondemand as a screen on governor and conservative as a screen off governor. It also should allow for tweaking voltages.

In my opinion this is the best setup for a ROM.

As for the files:

83oc - This script checks for three presence of other overclocking apps. When none is detected, it enables andrev_oc.

84uv - This script probably sets the default voltages, and wow, they are very low. Could you copy and paste the contents of /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels? I want to confirm if indeed this is what the ROM is using.

87OCtweaks sets the "settings" for the ondemandx and smartass governors.

All this should make tweaking rather easy. What governor do you plan to use and what settings do you want to tweaks.

My suggestion would be to let andrev_oc do the work. Let's just tweak the 87OCtweaks file if needed.

Sent from my HTC Desire HD powered by aospX 1.0.0-MR1
[Desire HD Android Development] lateral18:
Oohh

Well thanks , 97Ooctweaks is a file I made myself , lol

Yes I'm using andrev OC , and those two are the governors ,

Personally what do you think of the settings I've came up with . ?

That helped me understand a bit more ,

But what I was really asking is to get the source , like the link you have in the first post for smartass, that way I can better tweak ondemandx and smartass.

That is what I am aiming for here .
[Desire HD Android Development] Roberto_Lim:
Do the settings stick?

Will post a detailed reply when I get to my Mac.

Sent from my HTC Desire HD powered by aospX 1.0.0-MR1
[Desire HD Android Development] thachtunganh:
Is there smartassv3 governor???
[Desire HD Android Development] Roberto_Lim:
Not as far as I know.
[Desire HD Android Development] thachtunganh:
Ok, you wrote "smartassv3 governor" in the first post :D
[Desire HD Android Development] Roberto_Lim:
Thanks. Will fix :o
[Desire HD Android Development] lateral18:
Yes , they stick, just to be clear you mean for the file I've made right ,

How do u know. Battery life has improved and the performance too , if there is something I could change , I'll be happy to know too

Yes , plz

What I've meant also is how /where did you get the source code for smartassV2 , if there are guides like that too other governors . I been looking for that all over google , I can't find it , that will be great if you can point me in the right direction .

Again thanks
[Desire HD Android Development] Roberto_Lim:
Basically, have you check if these settings are being applied. You will only be able to check you wake governor by looking at the contents of:

/sys/devices/system/cpu/cpufreq/ondemandx

or

/sys/devices/system/cpu/cpufreq/smartass

Actually, there is a good resource right here in XDA. You can find out most of what you are looking for in this post by droidphile.

As near as I can tell, you are running the following combination with andrev_oc:

Screen on: OndemandX

Screen off: smartass​

With all dues respect, the combination does not make much sense. When you use andrev_ov, virtuous_oc or profiles, you will have screen on governor and sleep governor.

First, OndemandX and smartass have built-in screen on and sleep governors. If you are using on demand as a screen on governor only, you are basically using only half of OndemandX. Similarly, smartass has a wake profile and sleep profile. By using smartass as a sleep governor you are only using the sleep profile on smartass, and not the wake profile.

Second, ondemandX and smartassV2 are very similar to each other, both built around the principal of a ideal awake frequency and an ideal sleep frequency.
[Desire HD Android Development] lateral18:
I did check, the settings are sticking , but except for two , sampling_rate and sampling_rate_min

I wonder why, the other one are

About the governors , you are right , now I'm using , ondemandx as the wake governor and obdemand as the sleep governor. Is doing great.

That was the same forum I've came across . But there are more parameters anf also keep in mind , he has a galaxy phone , something that I did , i adjusted the frequencies to match the snapdragon processor . The rates I left the same .
[Desire HD Android Development] Roberto_Lim:
On the specific settings from your 97OCtweaks file:

You can configure one of these governors to do the job that you are doing right now with two. Why not just pick one of these two and run it a both wake and sleep?
[Desire HD Android Development] lateral18:
hey thanks ,

after reading and thinking , is better to use one governor , instead of two. i guess i wanted use everything and all that stuff . time to call it down . im going to stick with ondemandx.

im happy i did set them up kind of ok .

i went to the phone to look the settings over , and they stick , except for this two

sampling_rate

sampling_rate_min

i have the permissions of the script set to

rwx r-x r-x

those two are the only ones that hasnt changed , i would like to the sampling rate to changed , it helps battery life

last questions , where did you get the definitions for all the parameters . you know more than i do . i just found out , what suspend_freq stands for

lol

:)
[Desire HD Android Development] Roberto_Lim:
On sampling rate:

I have not tried OndemandX so do not consider my answer to have any authority, but the valid figures for this are normally 1 or 2.

The settings you are using look more like settings for up_rate_us (The minimum amount of time to spend at a frequency before we can ramp up) and down_rate_us (The minimum amount of time to spend at a frequency before we can ramp up).

I have yet to experiment with sampling rate.

Resources. If you really want to dig into the innards, GitHub is your best source.

Me I Google, but refine the search: "ondemandx suspend_freq" and wind up in GitHub or XDA anyway :)

I think this might be what you are looking for.

----------------------------------------

On another topic.

Am stuck with just tweaking voltages on aospX. After doing so many battery pulls trying to tweak settings I think I need to give my battery cover a rest.

I think my files for Blackout are pretty okay. Maybe they could be tweaked with user feedback. I think they will work with other Sense 3.6 ICS ROM's.

Your working on ViperDHD, so I will leave that to you. SHARE YOUR WORK :)

The files I made for TrickDroid should work on Sabsa Prime. I think I will flash Sabsa Prime 9 as soon as it is out.
[Desire HD Android Development] kingofnice:
Blackout got a whole lots faster after your mod. Thanks again.
[Desire HD Android Development] lateral18:
That is what I got too, or I end up in the edilphi forum.

You must be right , they aren't aceptable values , I'm going to try 75000 or 60000 .

The sampling_rate: Measured in uS , this is how often the kernel look at the CPU usage and make decisions on what to do about the frequency. Higher values means CPU polls less often.

That is what I got , I can't find anything in sampling_rate_min I guess is the minimum uS to look at the kernel . But I wonder what will he aceptable values .

I just keep wondering why those two settings don't stick . Ondemandx is a lot like ondemand , I g

Wonder what I'm I doing wrong .

In that website , could I find it ?
[Desire HD Android Development] Roberto_Lim:
Which file did you use? The 1.2 GHz "Performance" mod does make it feel snappy with decent battery life. About the same as running on default Blackout ROM settings I would think.

Sent from my HTC Desire HD powered by Blackout ICS Incredible v3.1.1
[Desire HD Android Development] Roberto_Lim:
What are the ROM default sampling values?

Sent from my HTC Desire HD powered by Blackout ICS Incredible v3.1.1
[Desire HD Android Development] lateral18:
Sampling_rate 50000

Sampling_rate_min 10000
[Desire HD Android Development] Roberto_Lim:
Interesting an confusing. That should mean any figure up to 99999 should be valid.

Okay, give me the weekend to finnish my smartassV2 guide, than I will find a ROM that includes the OndemandX governor and maybe we can develop flashable scripts in parallel.

You do ViperDHD, I can do the version for the other ROM.
[Desire HD Android Development] lateral18:
i like that ,

;)
[Desire HD Android Development] Muikkuman:
Do you think you can find some time to do a tweaked smartassV2 performance CPU governor 1GHz for ViperDHD?
[Desire HD Android Development] Roberto_Lim:
I just flashed it a few hours ago. Will give it a look. But I don't think a more conservative smartassV2 governor will be good for this ROM.

With Blackout using the "Conservative" governor I tweak works fine but can cause some lag on games. That it why I came out with the second set. With this ROM maybe something more on the lines of a few voltage mod tweaks and other minor tweaks. This should be covered in the Venom Tweaks but I have not figured out how to scale the voltages individually in the Tweaks. Also, I am not sure if the screen off max frequency tweaks works.

Sent from my HTC Desire HD powered by ViperDHD 1.1.0
[Desire HD Android Development] Roberto_Lim:
Did some testing. Can do. Which Tweak file were you using with Blackout. I can make an equivalent one for ViperDHD for you.

Sent from my HTC Desire HD powered by ViperDHD 1.1.0
[Desire HD Android Development] kingofnice:
Yes, one for ViperDHD would be awesome.
[Desire HD Android Development] Roberto_Lim:
So which one do you want :D
[Desire HD Android Development] rikusuicide:
ViperDHD :D
[Desire HD Android Development] Roberto_Lim:
I know you guys want ViperDHD... I was hoping you could tell me what governors or configurations you wanted :rolleyes:

Anyway I tried some configurations from my Blackout files... The "C3" configuration intended to save battery life don't feel like a great fit with this ROM.

The P1 configuration does seem to run nicely.

I put up the 1 GHz, 1.2 GHz and Return to Stock zips. Gotta run so I will put up the 1.4 GHz and 1.5 GHz files that I do not really recommend :confused: later.

Files here.
[Desire HD Android Development] Muikkuman:
I used your 1GHz smartassV2 performance one
[Desire HD Android Development] rikusuicide:
badass for viperdhd :D
[Desire HD Android Development] Roberto_Lim:
Cool. So your both covered. Will make the 1.4 & 1.5 GHz zips later but my own favorite is badass :)

Overclocked 16%, undervolted by 8% should make for safe settings in terms of thermal dissipation.

Sent from my HTC Desire HD powered by ViperDHD 1.1.0
[Desire HD Android Development] Roberto_Lim:
The 1.4 GHz and 1.5 GHz scripts are up. Same location as the link above.

As usual, if your fry your phone, I take no responsibility.
[Desire HD Android Development] ricc@rd:
Hi roberto! If I'm not interested in maximum performances, which combination tweaks+governor for Blackout 3.2 do you suggest me?

The best combination tweaks+governor for battery life should be Blackout-UV806-1025vdd.zip + Blackout-smartassV2-C3.zip, right?? :D

Thank you again for your excellent work ;)
[Desire HD Android Development] Roberto_Lim:
You are welcome. That is correct, well at least that is the way they are designed to work. The C3 file does cause some lag in games. If that doesn't work out for you, you can flash back to default or P1.

Sent from my HTC Desire HD powered by Blackout ICS Incredible v3.2.0
[Desire HD Android Development] putti71:
Hi Roberto!

I am on Blackout 3.2.0. Which Tweaks is the best for Gaming?

Thanks in advance!
[Desire HD Android Development] Roberto_Lim:
One of these three:

d) Blackout-1200MHz-1100vdd.zip

e) Blackout-1200MHz-1125vdd.zip

f) Blackout-1200MHz-1150vdd.zip

The lower the vdd the device can handle, and remain stable, the better.

PLUS

Blackout-smartassV2-P2.zip

I will be uploading 1.4 GHz and 1.5 GHz zips later. Personally, I don't go past 1.2 GHz myself.