Calibrating your battery, in case of strange battery drain

After flashing your device multiple times you might notice, that the battery level of your device is droppng very fast. Also after you disconnect the device from the charger, your batterey level immidiatly drops 1-3%. This is because you didn’t charged your device to 100%, before you flashed the new ROM. Altought this might be impossible, because according to my experiences to battery isn’t charging while you’re in Recovery mode.

So you’ll have to recalibrate your battery:
First of download Terminal Emulator from the Android Market. Don’t worry, it’s free of charge. The terminal Emulator let’s you acces the Android systems built-in Linux command line. We will need this later on.
Second, you’ll have to fully deplete your battery. Turn on Wi-fi, Gps, change the sleep policy of the screen to never turn off, play games, etc. Once your device shuts down try to turn it on again, to check that the device is totally out of juice.
If it is, than connect it to the charger. Charge it until it is on 100%.
Now turn it on. After the phone boots up, you might notice that the battery level isn’t 100%, keep charging it until it is.
Now find the Terminal Emulator in the app drawer and launch it. You will see a basic command line, wich you might be familiar with. If not, then fear not, the upcoming stuff won’t be complicated.
The keyboard might not be visible, if not than hit the Settings button and tap “Toggle soft keyboard”.
Now the pesky keyboard will stop hiding, and come to our aid.
Type “Su” in the field, and hit Enter.
Now the application will ask for Superuser permissions and a window will pop-up asking for your approval. Allow it, then enter “rm /data/system/batterystats.bin” into the field and hit enter again.
This will delete the current battery config file, forcing the system to create a new one.
You won’t see any comformation text, that you in fact really deleted the battery config file, so enter “rm /data/system/batterystats.bin” again.
If you entered the text correctly for the first time, than the command line will inform you that such a file doesn’t exist.
Exit the application, and disconnect the device from the charger.

You’ll might have to do this for a couple of times, but it worked for me after the first try.
Before I used the method above, I had around 5% of battery drain in every hour. After using this method I have about 1-1,5% battery drain. 🙂
You can use JuicePlotter from the market, to monitor your battery consumption. It’s also free of charge.
[from Munszu]

Superfetch, prefetch off (SSD use)

SSD thread if needed (highly recommended: D), disable the Prefetch and Superfetch:

Use the good old regedit:
HKEY_LOCAL_MACHINE ⇒ SYSTEM ⇒ CurrentControlSet ⇒ Control ⇒ Session Manager ⇒ Memory Management ⇒ PrefetchParameters

EnableSuperfetch = 0
EnablePrefetcher = 0