[GUIDE] How to properly flash collin_ph battery tweak & have best battery life ever!

jhoffy22

Member
Oct 21, 2010
16
5
0
Ksoftirq is something in the kernel that manages requests to the CPU. That means some device in your system is sending the processor a slew of IRQs so that the softirqd for your processor is being consistenly woken up, which ends up using most of your CPU cycles, thus sucking your battery life and performance. As indicated before, anything with a "K" in front of it is referring to the kernel. A kernel is a bridge between applications and the actual data processing done at the hardware level. The kernel's responsibilities include managing the system's resources (the communication between hardware and software components).

When the ksoftirq is using such a high percentage of CPU, it is causing your CPU to work harder and doing two things that we dont' want; taking away from performance and draining the battery.

As it stands now, we know that depending on what kernel you're using it is going to determine whether or not you have that problem in the tweak. We know that it is not an app that is sending processes to the CPU that is causing the problem.

Don't fret if you read through this thread ([MOD] Collin_ph Battery Tweak For EVO By Myn - xda-developers) and flash 1 of the 2 kernels known to work and it still shows ~30%, you're probably just not doing it right. You cannot simply just flash a new kernel, because as said before, the kernel is the link between software(battery tweak) and hardware. Therefore you must have the new kernel in place, then go about flashing the battery tweak. That way it is installed properly by the proper kernel.

As of now, there are 2 known kernels compatible with this tweak:

STOCK HTC 11 kernel, modded: STOCK_KERNEL_3.29_to_enable_use_of_collin_ph_battery_mod (1).zip

Netarchy NoHAVS kernel: [GPL][Kernel]netarchy-toastmod, Stable: 4.1.9.1 Preview: 5.0-p3 (2.6.34.5 based) - xda-developers

**Scroll down and you will see NoHAVS kernel by request, I have had better luck and amazing battery life with Netarchy's kernel

Instructions:

1. Open terminal emulator, type su. You will be prompted that you have gained superuser access

2. Type batt-cfg, then press 1 and then enter when dialog comes up about having root access

3. Choose option 4 to Disable battery tweak, then 9 to save changes and exit

4. Type batt-rm.sh, follow directions to remove tweak (It will tell you to choose y/n, choose "y"

5. Reboot your phone into recovery and install new kernel from zip. When that is finished, install battery tweak.

**It is ESSENTIAL that you follow these first 5 steps in order or I promise you that you will have the same ksoft issue over and over again**

6. When you reboot your phone, go into terminal emulator and type su again.

7. After gaining root access, type batt-cfg. Choose option 1 and save changes and exit.

8. Make sure that phone is unplugged from computer/wall! This is very important, having the phone plugged in will not show the ksoft process so you will not know whether it is still a problem or not.

9. Type top "-m 5 -n 1"(without quotes) This will show you your top CPU processes. You should see no abnormally high percentages for system and will not see ksoft at all. Problem solved!

If you install system monitor, you will be able to monitor the cpu level. When I am not touching the screen of my phone, it shows 245mhz. When I start moving the screen or etc, it hikes up a little bit. This shows that the tweak is working properly.

I have gotten incredible battery life out of this with very heavy usage(facebook, texting, phone calls, gps, pandora, running command prompts, etc).

Until something new comes around that I am sure will give me equally as good or better performance and battery life, I will not be switching ROMS/kernels EVER!

ROM: Myn's Warm 2.2
Kernel: Netarchy NoHAVS

Sidenote- I have just as good of performance and speed as I did while having CM6 with Snap7.6&turbo enabled, so don't think that you are sacrificing any performance.

Hope this clears up everything for everyone!:)
 
Ksoftirq is something in the kernel that manages requests to the CPU. That means some device in your system is sending the processor a slew of IRQs so that the softirqd for your processor is being consistenly woken up, which ends up using most of your CPU cycles, thus sucking your battery life and performance. As indicated before, anything with a "K" in front of it is referring to the kernel. A kernel is a bridge between applications and the actual data processing done at the hardware level. The kernel's responsibilities include managing the system's resources (the communication between hardware and software components).

When the ksoftirq is using such a high percentage of CPU, it is causing your CPU to work harder and doing two things that we dont' want; taking away from performance and draining the battery.

As it stands now, we know that depending on what kernel you're using it is going to determine whether or not you have that problem in the tweak. We know that it is not an app that is sending processes to the CPU that is causing the problem.

Don't fret if you read through this thread ([MOD] Collin_ph Battery Tweak For EVO By Myn - xda-developers) and flash 1 of the 2 kernels known to work and it still shows ~30%, you're probably just not doing it right. You cannot simply just flash a new kernel, because as said before, the kernel is the link between software(battery tweak) and hardware. Therefore you must have the new kernel in place, then go about flashing the battery tweak. That way it is installed properly by the proper kernel.

As of now, there are 2 known kernels compatible with this tweak:

STOCK HTC 11 kernel, modded: STOCK_KERNEL_3.29_to_enable_use_of_collin_ph_battery_mod (1).zip

Netarchy NoHAVS kernel: [GPL][Kernel]netarchy-toastmod, Stable: 4.1.9.1 Preview: 5.0-p3 (2.6.34.5 based) - xda-developers

**Scroll down and you will see NoHAVS kernel by request, I have had better luck and amazing battery life with Netarchy's kernel

Instructions:

1. Open terminal emulator, type su. You will be prompted that you have gained superuser access

2. Type batt-cfg, then press 1 and then enter when dialog comes up about having root access

3. Choose option 4 to Disable battery tweak, then 9 to save changes and exit

4. Type batt-rm.sh, follow directions to remove tweak (It will tell you to choose y/n, choose "y"

5. Reboot your phone into recovery and install new kernel from zip. When that is finished, install battery tweak.

**It is ESSENTIAL that you follow these first 5 steps in order or I promise you that you will have the same ksoft issue over and over again**

6. When you reboot your phone, go into terminal emulator and type su again.

7. After gaining root access, type batt-cfg. Choose option 1 and save changes and exit.

8. Make sure that phone is unplugged from computer/wall! This is very important, having the phone plugged in will not show the ksoft process so you will not know whether it is still a problem or not.

9. Type top "-m 5 -n 1"(without quotes) This will show you your top CPU processes. You should see no abnormally high percentages for system and will not see ksoft at all. Problem solved!

If you install system monitor, you will be able to monitor the cpu level. When I am not touching the screen of my phone, it shows 245mhz. When I start moving the screen or etc, it hikes up a little bit. This shows that the tweak is working properly.

I have gotten incredible battery life out of this with very heavy usage(facebook, texting, phone calls, gps, pandora, running command prompts, etc).

Until something new comes around that I am sure will give me equally as good or better performance and battery life, I will not be switching ROMS/kernels EVER!

ROM: Myn's Warm 2.2
Kernel: Netarchy NoHAVS

Sidenote- I have just as good of performance and speed as I did while having CM6 with Snap7.6&turbo enabled, so don't think that you are sacrificing any performance.

Hope this clears up everything for everyone!:)

dude, incredible.

this is exactly what i been saying all along, i think i was the first one to discover the ksoft process sucking battery on myns stock kernel, i contacted myn about this as well.

i was also the one posting up on the forums how to check to see if ksoft was running and how to remove the process from running period...
i also figured out about the charger/usb issue and ksoft.


this guide just backs up all my original claims, which is almost exactly word for word what i said, this is great, im going to suggest that it be moved to the romz/hack section and be Sticked,

ppl need to know exactly what to do, ive gotten great battery life with the phone and battery tweak, i was NUTS on getting this to work correctly, because i think its just so cool of a tweak.

i would also recommend to not use a preset and choose Option 3, heres the settings ive used for that

no changes to the first 3 settings, so just hit enter.

Min cpu- 245000
max cpu 768000

for polling, instead of 60, i used 120 and instead of 15 i used 30,
then when it gets to cpu usage when battery is low, i choose 28 instead of 33.

you can change these numbers to your choosing, but with these above, i noticed no performance issues and everything seemed normal, just with extra battery life.

i would like to know how this tweak works with the new HTC kernel, i have noticed ive gotten incredible battery life with the new kernel, im going to install the tweak on top to see if i get any results.
 
Last edited:
dude, incredible.

this is exactly what i been saying all along, i think i was the first one to discover the ksoft process sucking battery on myns stock kernel, i contacted myn about this as well.

i was also the one posting up on the forums how to check to see if ksoft was running and how to remove the process from running period...
i also figured out about the charger/usb issue and ksoft.


this guide just backs up all my original claims, which is almost exactly word for word what i said, this is great, im going to suggest that it be moved to the romz/hack section and be Sticked,

ppl need to know exactly what to do, ive gotten great battery life with the phone and battery tweak, i was NUTS on getting this to work correctly, because i think its just so cool of a tweak.

i would also recommend to not use a preset and choose Option 4, heres the settings ive used for that

no changes to the first 3 settings, so just hit enter.

Min cpu- 245000
max cpu 768000

for polling, instead of 60, i used 120 and instead of 15 i used 30,
then when it gets to cpu usage when battery is low, i choose 28 instead of 33.

you can change these numbers to your choosing, but with these above, i noticed no performance issues and everything seemed normal, just with extra battery life.

i would like to know how this tweak works with the new HTC kernel, i have noticed ive gotten incredible battery life with the new kernel, im going to install the tweak on top to see if i get any results.

Sorry :)

My intentions were not to "plagiarize" your work and advice. But the majority of this guide is thanks to you, I just figured that I would get it in all 1 post as to make it easier for others to put it all together and see. The other thread had everything spread out and could be rather confusing. I will be editing the original post and making sure to give credit to your findings and I guess I should probably post a small description and link of the collin_ph battery tweak for people who have never heard of it. I will have to try the custom settings that you have suggested as well. Right now on preset 1 I am having phenomenal battery life. I'll try out your suggestions tomorrow morning after I have fully charged over night.

Thanks:D Any suggestions for the OP?
 
  • Like
Reactions: intheb0x
oh not at all,thats not what i meant... i appreciate this guide. i agree the info was all over the place lol.

if your having great life on preset 1, then i wouldnt change, because when you start messing with it, is when u never get that same battery life every again LOL....

as for the new 3.30 kernel, i got the ksoft process, sometimes it sneaks up on me, i can do it 6 times in a row all the same perfect way, and maybe the last time it will all work fine, but each time before it did not.. It could also be phone specific, because some people are not getting ksoft at all while using myns with the stock kernel.
 
oh not at all,thats not what i meant... i appreciate this guide. i agree the info was all over the place lol.

if your having great life on preset 1, then i wouldnt change, because when you start messing with it, is when u never get that same battery life every again LOL....

as for the new 3.30 kernel, i got the ksoft process, sometimes it sneaks up on me, i can do it 6 times in a row all the same perfect way, and maybe the last time it will all work fine, but each time before it did not.. It could also be phone specific, because some people are not getting ksoft at all while using myns with the stock kernel.

Lol just checking;)

But it seems to be a common problem among the Linux world, nobody can provide a cure all solution so that Ksoft stops pulling your CPU's resources so much. I guess it's just a guessing game. Other people were having the same issue following the guide I posted over there and to be sure I tried it again myself on my phone and it worked perfectly again, even after rebooting.
 
Yea, i can bet that everyone who is using the tweak and says they are getting bad battery life is almost 100% having the ksoft process slamming they're cpu.

With the new 3.30 kernel, i can flash it and it will be fine, no ksoft.

As for now, when i load up batt-cfg, it shows the tweak already being enabled.

but as soon as i load a preset or customized my own settings, then ksoft appears.

so i wonder if i just flash the tweak, and not mess with anything since its already "enabled" if ksoft will never come up and will i see battery benefits?

im not sure, but for tomorrow im going to run the new stock 3.30 kernel (thats said to cut voltage use in half from the previous one), see what kinda battery life i get during the day, then for saturday ill use it with the tweak and compare.
 
Oh and PS, i think something is hardware wise wrong with my phone, i have found out that my phone overheats itself and will throw itself into a endless boot, it reboot itself, get to the lock screen or allow me to do some things, then BAM it will reboot again.

during a little test today ive figured out that it only happens when the cpu is under heavy load and the phone itself is hot, so i tested this with angry birds, after a few maps it rebooted and kept rebooting.

i then placed the phone without the battery cover and battery on a vent in my work truck and turned on the AC, after about 5 mins i put in the battery,rebooted it and it was working fine.

i then repeated the same thing with some "heavy" usage and gaming, and same thing happened.

all this time i thought it had to do with the kernels and the voltages in them, so this whole time i been commenting to devs on XDA that i get reboots while using they're roms may be incorrect lol. ive even had this happen on the new stock 3.30, completely wiped down and even on working nandroids.

if the phone is hot it will throw itself into reboots.

so ive come to the conclusion it is over heating.

sucks.
 
I haven't personally tried my own settings yet, but I have rebooted my phone, verified that the tweak was still enabled(batt-cfg) and working(pidof batt.sh) and then checked my top 5 processes and not had ksoft as an issue.

I will look forward to hearing how your comparisons go, post when you find out!
 
I haven't personally tried my own settings yet, but I have rebooted my phone, verified that the tweak was still enabled(batt-cfg) and working(pidof batt.sh) and then checked my top 5 processes and not had ksoft as an issue.

I will look forward to hearing how your comparisons go, post when you find out!

will do, with screen shots! lol.
 
Oh and PS, i think something is hardware wise wrong with my phone, i have found out that my phone overheats itself and will throw itself into a endless boot, it reboot itself, get to the lock screen or allow me to do some things, then BAM it will reboot again.

during a little test today ive figured out that it only happens when the cpu is under heavy load and the phone itself is hot, so i tested this with angry birds, after a few maps it rebooted and kept rebooting.

i then placed the phone without the battery cover and battery on a vent in my work truck and turned on the AC, after about 5 mins i put in the battery,rebooted it and it was working fine.

i then repeated the same thing with some "heavy" usage and gaming, and same thing happened.

all this time i thought it had to do with the kernels and the voltages in them, so this whole time i been commenting to devs on XDA that i get reboots while using they're roms may be incorrect lol. ive even had this happen on the new stock 3.30, completely wiped down and even on working nandroids.

if the phone is hot it will throw itself into reboots.

so ive come to the conclusion it is over heating.

sucks.

I think you have damaged your processor or something in the phone after all that info and the thread the other night.Your evo shouldn't reboot cause it's overheating if anything it would eat the crap out of the battery and die.I would say take it to the store but it get almost to that point of being hot then take it in and show them.

@jhoffy22- Sorry about the above just wanted to let him know that.
Great write up.This tweak works best with a custom kernel,just a suggestion i would add that to first post.I read thru it and didn't see that part stand out.
 
  • Like
Reactions: jhoffy22
I think you have damaged your processor or something in the phone after all that info and the thread the other night.Your evo shouldn't reboot cause it's overheating if anything it would eat the crap out of the battery and die.I would say take it to the store but it get almost to that point of being hot then take it in and show them.

@jhoffy22- Sorry about the above just wanted to let him know that.
Great write up.This tweak works best with a custom kernel,just a suggestion i would add that to first post.I read thru it and didn't see that part stand out.

I agree, i woke up this morning after putting my phone on the charger before going to sleep and my phone was in a constant reboot, the battery our phone must of got so warm while charging it over heated...



From my HTC EVO using Tapatalk pro.
 
Great guide, I personally didn't see a difference in batt life when using the tweak so I just went back to CM6 and removed the tweak.

FYI - This tweak DOES work with cm6 if youre on the stock cyanogen kernel, just not snap kernels.
 
I think you have damaged your processor or something in the phone after all that info and the thread the other night.Your evo shouldn't reboot cause it's overheating if anything it would eat the crap out of the battery and die.I would say take it to the store but it get almost to that point of being hot then take it in and show them.

@jhoffy22- Sorry about the above just wanted to let him know that.
Great write up.This tweak works best with a custom kernel,just a suggestion i would add that to first post.I read thru it and didn't see that part stand out.

Thanks! I still have to edit the OP. It was just a quick write-up and I haven't had time to finalize and revise it at all. A lot of information is missing, I plan on making it more noob friendly for those that aren't sure what the tweak is exactly.:D
 
Ksoftirq is something in the kernel that manages requests to the CPU. That means some device in your system is sending the processor a slew of IRQs so that the softirqd for your processor is being consistenly woken up, which ends up using most of your CPU cycles, thus sucking your battery life and performance. As indicated before, anything with a "K" in front of it is referring to the kernel. A kernel is a bridge between applications and the actual data processing done at the hardware level. The kernel's responsibilities include managing the system's resources (the communication between hardware and software components).

When the ksoftirq is using such a high percentage of CPU, it is causing your CPU to work harder and doing two things that we dont' want; taking away from performance and draining the battery.

As it stands now, we know that depending on what kernel you're using it is going to determine whether or not you have that problem in the tweak. We know that it is not an app that is sending processes to the CPU that is causing the problem.

Don't fret if you read through this thread ([MOD] Collin_ph Battery Tweak For EVO By Myn - xda-developers) and flash 1 of the 2 kernels known to work and it still shows ~30%, you're probably just not doing it right. You cannot simply just flash a new kernel, because as said before, the kernel is the link between software(battery tweak) and hardware. Therefore you must have the new kernel in place, then go about flashing the battery tweak. That way it is installed properly by the proper kernel.

As of now, there are 2 known kernels compatible with this tweak:

STOCK HTC 11 kernel, modded: STOCK_KERNEL_3.29_to_enable_use_of_collin_ph_battery_mod (1).zip

Netarchy NoHAVS kernel: [GPL][Kernel]netarchy-toastmod, Stable: 4.1.9.1 Preview: 5.0-p3 (2.6.34.5 based) - xda-developers

**Scroll down and you will see NoHAVS kernel by request, I have had better luck and amazing battery life with Netarchy's kernel

Instructions:

1. Open terminal emulator, type su. You will be prompted that you have gained superuser access

2. Type batt-cfg, then press 1 and then enter when dialog comes up about having root access

3. Choose option 4 to Disable battery tweak, then 9 to save changes and exit

4. Type batt-rm.sh, follow directions to remove tweak (It will tell you to choose y/n, choose "y"

5. Reboot your phone into recovery and install new kernel from zip. When that is finished, install battery tweak.

**It is ESSENTIAL that you follow these first 5 steps in order or I promise you that you will have the same ksoft issue over and over again**

6. When you reboot your phone, go into terminal emulator and type su again.

7. After gaining root access, type batt-cfg. Choose option 1 and save changes and exit.

8. Make sure that phone is unplugged from computer/wall! This is very important, having the phone plugged in will not show the ksoft process so you will not know whether it is still a problem or not.

9. Type top "-m 5 -n 1"(without quotes) This will show you your top CPU processes. You should see no abnormally high percentages for system and will not see ksoft at all. Problem solved!

If you install system monitor, you will be able to monitor the cpu level. When I am not touching the screen of my phone, it shows 245mhz. When I start moving the screen or etc, it hikes up a little bit. This shows that the tweak is working properly.

I have gotten incredible battery life out of this with very heavy usage(facebook, texting, phone calls, gps, pandora, running command prompts, etc).

Until something new comes around that I am sure will give me equally as good or better performance and battery life, I will not be switching ROMS/kernels EVER!

ROM: Myn's Warm 2.2
Kernel: Netarchy NoHAVS

Sidenote- I have just as good of performance and speed as I did while having CM6 with Snap7.6&turbo enabled, so don't think that you are sacrificing any performance.

Hope this clears up everything for everyone!:)

Which nohavs are you using, the universal, less aggressive, or aggressive? and what do you consider "abnormally high percentages" for system? I have 28%
 

Members online

Forum statistics

Threads
960,422
Messages
6,982,342
Members
3,164,512
Latest member
richardgroover