[EVO 4G Android Development] jhoffy22:
Battery tweak can be found HERE:http://www.mediafire.com/?xmjdd797f6v2m90

Tweak can only be used with No HAVS kernels (recommended kernels below)

What is the battery tweak exactly? More information in this thread:http://xdaforums.com/showthread.php?t=810940

The intended scope of this thread is for people having trouble with Ksoft consuming too much CPU resources

DO NOT USE WITH SETCPU!

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 (http://xdaforums.com/showthread.php?t=810940) 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: http://www.mediafire.com/?i7u103j9xqnaw3s

Netarchy NoHAVS kernel: http://xdaforums.com/showthread.php?t=719763

**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 or ksoft particularly. What percentage you see can depend on your current battery life when you run this test. Make sure that your phone is not plugged in when running the test! Also, take note of your battery life.

Tweak Will stick after reboot. You do not need to re-enable it.

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!:)

UPDATE-

There has been much debate as to whether or not this tweak works or not. I should have been more clear in the original post. Ksoft is still a necessary process, however, when I said that the purpose was to elimate the "ksoft problem" I was meaning that it should not be detectable by the CPU when you run the "top -m 5 -n 1" command. Neotelos_com made a very good point that is necessary to understand this tweak, "ALSO, this tweak lowers the CPU speed as the battery drains, so within the first hour you will notice the most battery drain." This means a few different things:

-Depending of the charge of your battery when you run the top 5 command, you will see different percentages of ksoft. For example, if I run the top 5 command right now, my battery is at 30% and ksoft doesn't even register at all. Assuming that I charge my battery full and run the top 5 command in the morning when my battery is fully charged, it will register as a process. Ksoft in the low ~20% is completely normal with a full charge. IT WILL BECOME LESS LESS AS THE BATTERY DRAINS.

-I have been toying with this in the very little free time that I have had the past couple days and have also discovered a few other things. Programs like Ultimate Juice, Juice Defender, and Tasker used in coherence with the battery tweak will improve a already great mod to give you significantly more battery life than before. the main reason being that 90% of the time your cell stanby is what is draining your battery the most. Those programs will turn off your mobile network when you are not using it saving a TON of battery power.

I will be posting screenshots at the conclusion of my testing either late tomorrow night or wednesday around 12ET. I want to be able to provide everyone with the info that they need to be able to get the best life out of your battery possible.

Contributions:

intheb0x

Neotelos_com

Myn

Developers of battery tweak

:)