Dear photon users,
I need to calibrate our photon battery driver.
Please find enclosed a little application, that will poll the Windows battery values and write debug data into a file.
This will help me to calibrate the driver.
Note: this application will not damage your phone. it only read data and writes it to a file.
I need some volunteers to use this application and send me the debug output.
You can do this during the night, so you will be able to use your phone on day time
Here is how to use the app:
A- SET YOUR POWER SAVING SETTINGS
(running on Windows, not Android!)
1- go in "Settings" > "Sound and Display" > "Backlight"
2- under power saving settings for "running on battery":
uncheck "disable backlight if i dont use my phone for x time"
uncheck "switch off my phone if not used for x time"
(this will help the phone to drain battery quickly, and avoid phone to switch off when recording the data)
3- under power saving settings for "running with power cable":
check "disable backlight if i dont use my phone for x time"
uncheck "switch off my phone if not used for x time"
(this will help the phone to charge faster, and avoid phone to switch off when recording the data)
B- DISCHARGE DATA SURVEY
(running on Windows, not Android!)
1- charge your phone to 100%
2- launch PowerSpy.exe
3- let your phone drains the battery by itself until Windows switch-off because low power (PowerSpy running in background)
4- plug your power cable, boot windows, and download the file at root of your phone named "\battery_data_survey.txt" to your PC
5- (you can rename it as "battery_data_survey_discharge.txt")
C- CHARGE DATA SURVEY
(running on Windows, not Android!)
1- discharge your phone to the maximum, around 10% (if you didnt discharge it yet)
2- launch PowerSpy.exe
3- plug your power adaptor to charge your phone
4- let your phone charge with PowerSpy running in background
5- at the end of the charge, when LED is green, download the file at root of your phone named "\battery_data_survey.txt" to your PC
6- (you can rename it as "battery_data_survey_charge.txt")
Finaly, answer to this post with those two txt files attached to your post reply.
Notes:
1- Be careful, everytime you launch this app, it overwrites the output data file and creates a new one.
2- When you launch PowerSpy, it automatically record the data, there is no need for you to do anything else. just let it run in background
3- To retrieve the data file, you need to set your phone in USB mode with ActiveSync. Then, connect phone to PC, browse "My Computer" > "Mobile Device" > root of your device: the file should be there
Thank you very much for your help!
I will do this on my side, but I need data from you, otherwise the battery driver will not be accurate for you
i have started the process and will post the files when it's done!!!
i hope you can fix it and compile a good logarithm.
This is the first, second coming today about 18 hours
i also wil start it tomorow after work.
thanks guys!
let me know if there is any trouble with the application.
be careful, everytime you launch this app, it overwrites the output data file and creates a new one!
I will try test tomorrow night, and will report you. Gook Luck
We stand by your working forever.
In China, a lot of user will go in.
I want send these data to you after testing.
Shall you tell me your e-mail??
Maybe you could send e-mail to me at first.
my e-mail:[email protected]
thanks for your working~~
thanks!
i tested it during the night for discharge, but itwent from 100% to 70% in about 8 hours... i need to put something that drain battery fast.
maybe enable wifi, 3G, camera and video at the same time.
the faster discharge is going, better it is (otherwise the debug file is huge and does not change a lot)
hi r0bin,i'll send my report soon
here is a good app which will help you to discharge battery fast,and also calibrate it
http://forum.xda-developers.com/showthread.php?t=516458
Another option for discharge is the game Risky Wars: http://www.riskywars.com/ I think it uses the CPU to discharge.
good job and good luck.
I'm also to wifi and Bluetooth, and speaker work together. This can speed up the battery consumption. Can I do this? Or standby power consumption?
I will upload files
sorry for my english!I hope you can understand the meaning...
ok
here are my files about the discharge and charge process.
this is battery test data
Hi!r0bin
thanks for you great job.the test file uploaded come from xda.cn.it only the first test file,and more will be here later.hope it would help.
hi guys, thanks a lot for your files and for taking the time to do it (15MA1L, 15131331231 & xda.cn.it, Smudoooo)
the very good news is, the raw values match the windows values, this wont be that difficult to calibrate the driver.
the bad news is, i forgot to log the current charge and discharge, as well as ADC_REF etc :-/
i compiled a new version of this app, that log also the current, please use this one.
thanks
-r0bin- said:
hi guys, thanks a lot for your files and for taking the time to do it (15MA1L, 15131331231 & xda.cn.it, Smudoooo)
the very good news is, the raw values match the windows values, this wont be that difficult to calibrate the driver.
the bad news is, i forgot to log the current charge and discharge, as well as ADC_REF etc :-/
i compiled a new version of this app, that log also the current, please use this one.
thanks
Click to expand...
Click to collapse
ok I'll repeat the charging-discharging with the new app, tomorrow morning you can find my results. I'm really glad that I can help. thanks
-r0bin- said:
hi guys, thanks a lot for your files and for taking the time to do it (15MA1L, 15131331231 & xda.cn.it, Smudoooo)
the very good news is, the raw values match the windows values, this wont be that difficult to calibrate the driver.
the bad news is, i forgot to log the current charge and discharge, as well as ADC_REF etc :-/
i compiled a new version of this app, that log also the current, please use this one.
thanks
Click to expand...
Click to collapse
I was just about to post results
I'll edit post in morning with new files.
results charging-discharging with the new app
i will try this. i will send you the files about two days.
These are three users' testing data which hope can help you ~~
View attachment dontyoulin.zip
View attachment ice.rar
View attachment 618947
Please go on!!
dontyoulin said:
These are three users' testing data which hope can help you ~~
View attachment 618945
View attachment 618946
View attachment 618947
Please go on!!
Click to expand...
Click to collapse
here is my data: had wifi, BT on with opera in autorefresh mode
Related
Hi, I'm new in this forum, and I don't speack English well, so I want to excuse me!
I have the new Touch HD, at the beginning I changed immediately the original ROM with a new one, I installed a lot of programs, and everything woked very well for two weeks, but then I had a big problems with battery...a the first the battery was very good, -10/15% per day, but suddenly after two weeks the battery lose 1% of its charge every 2/5 mintes...if I disconnect the power when the battery is 100%, after one hour without use (and also without wifi, BT and GPS), I have 70% of charge!
I try to change the ROM, a friend suggested me a new upgrade for Radio, but I didn't resolve my problem!
Now I buy a new battery online in htcstore, but if I put my mobile in "Fly mode" the battery work very very good!
I want to say that here normally I have the signal indicator with 2/3 nicks, so the signal is good!
Someone can help me?...someone have my same problem?
Thank you so much fo everything!
Greetings, Eddy
the battery will be used up quickly if your fone is constantly searching in and out for a 3g signal, regardless of 2g signal strength
have you got wifi on?
bluetooth?
a gps app running?
what other apps do you have running in background? some really poll the cpu a lot and will lead to battery drain
other than a dodgy battery, it must be some software running that is using up the battery
Thank you for aswering!
In background normally I have SMS o Contacs, but also if I close every programs in background the battery doesn't work well!
No, Bluetooth is OFF, GPS and WI-FI are OFF, I use telephone just with gsm!
Also when I write message, normally I write a message so long (3/4 messages), after wirting, the battery lost 10%, and I didn't have this problems at the biginning!
I left my mobile on also during the night, and in the morning I had again 100% of charge...now 100% it's a far dream!
try turning off the autoadjust for the screen and setting it at a medium setting, also make sure the backlight turns off after a minute or less.
its a huge screen and will burn up power, although saying that i watched a full length film on my HD the other day and only used 20% in 1.5hrs
if no progs are running in the background and its not a display issue (how have you checked whats running btw? need more than just WM taskmanager, try mem maid or similar) and the problem is not there when in flight mode. then i can only assume its the rom you are using, try another with a different radio rom in it
i found roms with 1.10 radio to be better than 1.09. try this rom (mulitlanguage) works good for me
http://forum.xda-developers.com/showthread.php?t=465637
edit: have you got HDTweak installed? its good to configure the data to auto turnoff after 1 minute or so (even in gsm gprs could be running)
I tried to setup the new ROM but I didn't resolve the problem!
If I leave my mobile only with GSM on, without use it, without call and sms, the battery lost 2% in 30 minutes, and it's not normal!
If I use it, change settings, write message, the battery lose 5% in five minutes!
I don't know what I have to do...this mobilie now can't live without a power connection!
I want say also that at the beginning some application in my HTC wanted "HTCAPI.dll" because they didn't found into the mobile...so I found this dll online and I did copy/paste into the directory!
It can gave me problems with battery?....I don't know how it's possible, but I don't know!
Try to buy or borrow another HD battery and compare them. You should know the problem then.
Of course, I alredy bought it online, and I'm waiting to get the shipping!
But it's very strange that a battery stop to work suddenly, but I know that there are a lot of people who have my same problem!
If i were you, i would flash back the original rom and do a hard reset. Then, without installing anything on the device, see if the problem persists.
Thank you ardsar...I want to try....can you tell me, what I have to do to obtain the original product?...without hardspl and new rom?...like the first time that I turned on this HD! Thank you so much!
For example, I have your same SPL and ROM at the moment!
Hi Ardsar, I flashed my ROM and SPL (brand), and now my mobile is like the original but....do you know Teeter?...I played 2 minutes, I completed 3 levels, and from 85% the battery is now at 79%...
Hi guys...yesterday I did a lot ot tests, but without positive results, but I fund out new problems:
1)The bettery lose a lot of charge also if my Blackstone is offline, when I use it with TouchFLO, Teeter, SMS, Settings...everytime!
2)I have near to icon of signal, the simbol of GPRS, but sometimes it changes with the simbol H and with this new symbol, the signal falls and to resolve it, I have to wait a long ore reset the mobile.
Now I'm not sure that the "target" is the battery...I don't know, I changed also the Radio ROM with new last, but the problem is not over!
Before put it into garbage case, someone can suggest me something to try?
...I will never bring it to Assistence HTC, because I will have to wait some months, and I didn't pay 500€ to have it "under repairing"
Do you have SK Tools 4.4.6 or another battery monitor installed?
With SK Tools, you can see under the sys info the current battery use. My usage is in standby with lighted display -100mA. What's normal?
My battery is also very empty. Last evening i had 54%. This morning, the phone was off, no power any more.
No, now I will try this tool!
But I think that you also have problem with battery, becase the firsts days that I had my HD, I left my mobile on the whole night with 100% and in the morning I had 100%...I had 99% at lunch time!And a lot of friends that have this mobile have the battery so strong, like me at the beginning...so...I'm getting angry
i have this problem too. had my HD for 2 weeks coming to 3 now and my battery seems to deplect very fast, totally different when i had it. could be becoz of the wallpaper and 3rd party theme i had
For me, it seems it's a software or anything else that needs so much battery power, perhaps the hotfixes or something else.
Sadly, the whole battery monitor progs don't show the needed power per running process, only the current usage. Can anyone with a "good" battery life cann post his current usage? (For expample with SK Tools System Information/battery supply)
Is the backup battery always at 0%?
Battlog
How about this. You can log your activities and see how much battery current (discharge) each application is using by the ma figure. It produces a .log file but if you change it to .txt you can open it up in a text editor.
Hope it helps.
EDIT: Just found out there is better info on it here on XDA Raphael forum. Credits to PalladiumTD for this app.
Today I tried a new battery, and also with a good battery, I have the same problem...so I think that I have to send my mobile to HTC service and ask for a new one, because it can be an internal problem, maybe of motherboard, radio, or I don't know...but it's sure that is hardware problem!
Did you a hard reset and installed nothing else?
Yes, I did...I alredy unpacked it and monday I will send it to HTC service....I hope that they will sed me a new one....a friend said to me that maybe this problem for them is called DOA (dead on arrived) and in this case they have just to change it!I hope so!....but I don't like...!
I know that I can reset it pushing the volume control ecc.....someone knows it exactly?Thank you!
for the sake of simplifying my phone, I removed all the tabs and kept only the following:
1. Home
2. People
3. SMS
4. Calendar
5. Settings
Now I see that my battery life is almost double than before.
wow!
That is an interesting observation, and I think I will try it. Have you tried adding the tabs back in to confirm? How long before someone asks for a .cab file?
u will be suprised LOL
thanks for the tip, since i dont really use those tabs much might as well get rid of them
Remove Sense completely and benefit even more
I know some people can't live without it though. Anything that saves power and makes the phone more responsive is a good result.
Well played!
i would...but i dont find titanium smooth...
another note..i have 4 email accounts incl. 1 ms exchange..
The reason why is simple
When u place the tabs Pictures and Music they will take up memory because they keep searching for music and pictures
memory consuumption is no different. still 60% or so with no open apps.
jdwilson said:
How long before someone asks for a .cab file?
Click to expand...
Click to collapse
That's so funny
i think i missed this...i also disabled the ambient light sensor. that maybe the reason for longer battery life.
how do you disable that? is it the automatically adjust light from battery settings?
Right. I set the brightness min/max permanently insteadof "autmatic".
My internet connection was always on and I generally charged my phone via the computer using the usb lead.
Recently started charging it overnight using the mains and keep the internet connection off when I am not using it. I have noticed a huge difference. Instead of 24hours use, I now easily get a day and a half!
Regards
Hello everybody! The purpose of this guide is to show you some free ways to greatly increase your battery life on the Droid X. First this guide assumes you have the Gingerbread kernel, root access, and are comfortable with ClockworkMod Recovery. If you have not installed a few roms, SBF’ed, or backed up your phone, learn how to and practice it a few times. I am not responsible if you fubar and have to SBF your phone. This guide is specifically written for the Droid X, but since the Droid 2 uses the same innards, you can probably use this guide interchangeably with that phone. Not all the steps in this guide only apply to the Droid X so I will say something on the steps that can be used on other Android devices.
First I'm going to start with basic things you do not want to do if you plan on saving battery. (All Devices)
Battery Saver Apps: Battery saving apps like Juice Defender are bad ideas. As I will explain later, many apps expect an always on data connection and prevent your processor from going into deep sleep when they are waiting for that data connection to come back on. Not to mention a battery saver is just another app and service that is running in the background potentially using battery.
Wipe Battery Stats: A Google developer has confirmed that the batterystats.bin does not hold battery calibration information. It holds information to compute battery usage information. The same information you see under “Battery Usage” in settings. Wiping this file just wastes your time.
Hungry Apps: Apps that use excessive notifications keep the processor from going into deep sleep. Facebook is the number 1 culprit here. Go into the app settings and turn of notifications. Use your back button to exit apps when you are done.
Automatic Backlight: On the Droid X, the Automatic Brightness setting is useless. Minimum brightness is too high by default. Either turn it off and set brightness manually or take the step I did that comes up later in this guide.
Wifi: Wifi when you are in range of a router uses less power than your 3G connection and is faster anyways. Wifi when you are not in the range of a router is a battery killer and should be avoided. Use your notification toggles if you have them. Get a widget if you don’t.
GPS: GPS should be turned off at all times unless you are actively using it. Nobody cares where you were when you posted on Facebook.
App killers: App Killers are good for hunting down and killing an app once in a while but are usually pointless. Android automatically loads apps into free memory for quicker starts. Why have your app killer wake up the phone from its idle, kill all of your apps to free up memory, and then have Android automatically reload most of those apps back into memory?
Bluetooth: Bluetooth headsets are best left in the car where you have your phone on a charger. If you need to use one off the charger, don’t forget to turn off your Bluetooth when you are done.
Charging: Charge as often as possible. Follow the same battery saving strategies you usually do when your phone is off the charger. It makes your phone charge faster. Keep in mind the mA rating on the charger. The stock one is 850mA. Do not exceed this rating. USB is ~500mA depending on other devices attached to the computer. The higher the rating, the faster the charge. Do not let the battery get very hot. Do not let your battery level drop below 10 very often. Low charge levels on Li-Ion batteries can damage them. Alternately, do not reputedly plug and unplug your phone once your battery shows 100. Android charges to 100 and lets it use up battery for a few percentages before it starts charging again. This is to prevent overcharging and damaging your battery. If you plug and unplug it repeatedly, it tricks Android into charging it more and more. Keep in mind that li-ion batteries lose capacity over time whether you use them or not. Replace them when they are no longer keeping you happy.
Step 1. Selecting a Rom
Liberty 3 forum topic: http://forum.xda-developers.com/showthread.php?t=1368049
Really for the purpose of this guide the only rom worth picking is Liberty 3. This rom is based on Motorola code which is known for good battery life and has init.d support baked in. It also has the power toggles in the notification bar and has pretty good customization. The 2nd-init roms that have init.d will work too but have issues with battery life. From this point forward I am going to assume you are going to be using Liberty 3 but the steps should work the same for other roms as long as there is init.d support.
Step 2. Installing the Rom
Use CWM to install the rom like you normally would. Start up and follow the usual setup wizard. Once you are able to get to settings, click on Liberty Settings, then Performance, then Start-up Tweaks, then uncheck everything except "Enable start-up tweaks." These settings interfere with the next step and are going to be duplicated by the next step.
Step 3. Install jakebitesmod
Jakebitesmod forum topic: http://rootzwiki.com/topic/3435-mods-jakebitesmods-v18-for-d2-ota-gb-kernel-all-roms-mods/ (Please consider donating to this developer as this script helps a lot of people.)
Jakebitesmod has some good scripts to optimize many things in Android. Pretty much anything that speeds up Android can have a small improvement on your battery life. We are specifically going to use his script to under volt the processor and set the governor at boot without using an app. Copy the linked file to your SD card and boot into CWM again to flash this. Restart your phone like normal.
Step 4. Configure jakebitesmod
Open Terminal Emulator and type “su”. This should prompt Superuser for root permission. Allow the permissions and move on. Type “modcentral”. This should bring up a little text menu of things to do. The menu option we are gonna be looking for is “1”. Read the safety issues and if you want to move forward press “Y”. From here we are going to select “1”. This option will leave you with the stock processor speeds but change the voltages on the processor to lower settings. This is generally safe because lower voltages should only cause problems with freezing and crashing, but should not physically be harmful to the processor. Voltage also makes much more of a difference on power than clock speed so this should save us a good chunk of battery. Push “Y” to continue and set the voltages and speeds at boot. Press enter a couple times and it should tell you it succeeded. Yay. From here we want to go to menu option “3”. Governors control when the processor jumps up or down in speed based on some magic formula that takes into account how much work your processor is expected to be doing. Personally I agree with jakebites and I chose interactiveX. It jumps up in speed fast enough not to appear like the phone is laggy and drops back down fast enough to save battery. It also automatically drops down to the lowest speed while the screen is off. After you have made your choice push “Y” and enter a few more times. Once we are back to a menu we can just hit the back button and exit the Terminal Emulator.
Step 4. Adjusting the Backlighting (All Devices)
The Droid X’s backlight settings is a real pain. The lowest brightness setting it will dip down to is 20. This is way too bright for darkness. You know what I mean if you have browsed at night in bed. Luckily there is an app for that. Download “Custom Auto Brightness” from the Market and install it. It ends up being called LogGraph in the app drawer for some odd reason. Open this and hit you menu key and then select “Preferences”. Select calibrate sensor and follow the directions on the screen. Then go to check brightness range and follow the directions on the screen. Then back out to the main screen and make sure “Demonstrate….” is checked. Push the left “Select sensor reading” and observe the line on the graph move. These are the levels of light the ambient light sensor are going to report at. So say you have the sensor reading slider set to 10. You move the bottom slider to a value of 2. This means that your backlight will be at its lowest level when your sensor says the light in the room is at a level of 10. You can adjust these to what you prefer, but for the best battery savings turn your readings at 1 and 10 to a value of 2. This will keep your backlight nice and low while you are in a dark room but still let your backlight jump up while you are outside. Once these are set head back into the preferences and make sure that all of the checks are enabled except “Foreground mode” and “Bypass hysteresis”. Once that is done hit the back button until you close the app and then turn your screen off and on. If you brightness is way lower than it was before you are golden. If not double check the guide.
Step 5. Install Your Normal Apps (All Devices)
The next steps require your normal apps to be installed and signed into those apps like normal.
Step 6. Set Your Sync Times (All Devices)
Install the app “AutoSync Account Activator” from the Market. Open and accept the agreement. Now you should see some apps listed. I get “Google” and “Facebook” but yours may vary depending on what you have installed. The process should be similar for each app. First off, click on “Google”. The first page called “Connections” lists you connections. Click on connections you would like your account to be able to sync on. Cellular is an obvious one but really you should have your wifi on and have it activated in this while you are home. The next screen, “Periodic Sync”, controls how often your apps sync. Unless you use your Google Calendar often, set that to “1 day”. Contacts should also be “1 day”. Gmail should be set accordingly to how often you care about your email. Others may show up. Set them to according to your judgment. Just keep in mind the more often you sync, the more battery you will use. If you do not use the service at all you can select “No period”. If you have one set to no period you should also set it in the next page to “Always off”. All of the rest should be set to auto.
Step 7. Observing What You Apps Are Doing and What to Do About It (All Devices)
This step is subdivided for the benefit of your eyes.
XDA Edition BetterBatteryStats forum topic: http://forum.xda-developers.com/showthread.php?t=1179809 (The link is at very bottom of 2nd post. Please purchase from the developer on Market if you use this more than a few times.)
A. This final step will ultimately probably figure out why you were getting bad battery. Android’s power management relies on what are called “wake locks”. Wake locks are things apps can create to tell Android’s power management to prevent the phone from going into deep sleep. Deep sleep is a state your processer goes into to basically shut itself off. A good example of a wake lock is when you are playing an mp3 and your screen is off. Normally when your screen is off your device wants to get into deep sleep asap. The audio service creates a wake lock to prevent your processor from entering deep sleep, because this would stop the mp3 playback. Most of the naughty apps out there use wake locks to keep data connections alive and use them to keep updating and keep notifications going. They tend not to give up that wake lock when they should and keep your phone from going to sleep. Apps that shut off your data connection, like Juice Defender, will cause even good behaving apps to freak out and keep their wake locks active while they wait for the data connection.
B. To look for these wake lock hogs we have a couple apps to get. The first one is from the link. It’s the XDA Edition of BetterBatteryStats. The second is CPU Spy from the Market. To use BetterBatteryStats just dump it on your sd card, use a file explorer to open it, enable Unknown Sources, and install it. Then open it, plug in your phone, unplug your phone, and use it like normal for a few hours. When you are ready, open the app, click on the first drop down, and select “Partial Wakelock”. Make sure the second drop down says “Since Unplugged”. Whatever apps are listed at the top are the apps that are keeping your phone from sleeping. My top 3 are DownloadManager (I was using Market and turned off my screen.), PowerAMP scan, and the PowerAMP service, but only the DownloadManager used any significant time. CPU Spy can be used to see how often your processor is going into deep sleep. Once you find your bad apps, you can look around in them and see if there are any settings in there to either turn off notifications, increase the time between updates, or anything else you may think is keeping the app busy.
C. If there is nothing there you can change, you can consider preventing it from starting. If you do not have ROM Toolbox Lite, download it. Open it and click on “Auto Start Manager”. Then scroll the screen sideways to get to the menu that says “Applications”. Click on apps and you will see two actions that we will be looking at. They are “boot completed” and “connectivity changed”. Apps like games, media players, internet radios, Facebook, etc, do not need to be started at boot and do not need to be started when connectivity has changed. Unselecting these will keep apps like Facebook from starting when you turn your phone on and when you switch from 3G to wifi.
D. If you ultimately can’t figure out why an app is keeping its wake lock for so long you may have to consider if the app is worth the lost battery life. Unfortunately there are just those apps out there that are poorly written. Consider sending an email to the developer explaining your problem and ask what you can do to fix it. If they don’t replay politely give them some poor feedback with a good explanation in the Market. They may look into the problem and correct it.
In Closing...
Thanks to everyone for reading, or at least skimming, my guide. I really hope this helps and saves time for a lot of people. If there are any issues anybody runs into I’ll try to help and explain the best I can. I apologize for any mistakes, errors, or bad sentence structure. If anybody has anything to add I will definitely consider adding it as long as it is free, easy to do, and produces results. If I broke any forum rules please notify me before deleting this topic. I’ll be happy to fix the issue.
About wake locks: http://forum.xda-developers.com/wiki/Wakelocks
Li-Ion batteries: http://en.wikipedia.org/wiki/Lithium-ion_battery#Battery_charging_procedure
Batterystats.bin information: http://www.androidcentral.com/wiping-battery-stats-doesnt-improve-battery-life-says-google-engineer
(Edit 1: Added instructions to delete default init.d scripts installed with Liberty. They seem to conflict with jakebitesmod's voltage settings. They didn't want to stick through reboots. All of the script's functions are duplicated by jakebitesmod anyways.)
(Edit 2: Turns out that deleting the init.d scripts isn't needed. Instructions updated.)
Really great advice. I don't even have a Droid X. I have a One X but this is still very relevant.
Thank you
Great guide. You should include CPU Governor such as BoostedASSv2. It helped me get good battery life (as so others).
Personally have been experiencing HUGE challenges regarding battery life of JB. and i have searched and searched, complained and complained in many xda threads. But in the end, i think this method is the best I figured out and it works pretty well!
I discovered the main cause of battery drain on JB is the 'Media Scanner'. I dont know exactly what the issue is, but it DRAINS your battery! I thought it was a corrupt file in my phone that was causing Media scanner to get stuck and scan for loong periods instead of 2 - 3 minutes which it should take regularly. (btw media scanner is launched every time you restart your mobo or make changes to your media files as far as i know). I formatted both my Internal and External SDs but it still didnt help. Now use the following Steps below to solve these issues.
1. Download Media scanner ROOT.
This app - https://play.google.com/store/apps/details?id=com.addz.mediascannerroot&hl=en
2. Download Media scanner also
This one - https://play.google.com/store/apps/details?id=com.addz.mediascanner
3. Always set 'Power saving' option on phone on. I can assure you that you'll hardly notice the difference in performance when you turn on power saving.
Having said that, if you want more brightness, you can increase from toggle or just tick auto by the side of brightness level settings right there in your notification bar.
Also, if you need to game or use heavy app that require alot of system resources, just turn off power saving.(Because power saving slows down your processors Maximum state from 1200MHz or 1.2GHz to 800MHz.)
How to use the apps mentioned in numbers 1 and 2.
First one is to stop it (Media scanner) from ever scanning. So open that one with ROOT at the end of the name (Grant SU prompt), then hit disable media scanner button wait for it to work. Just one or two seconds.
Sometimes you might open your gallery and notice a file is missing or you might not see even a single picture or vid in it.
ONLY NOW! can you open the second app dat DOESN'T contain ROOT at the end of its name.
Just open it and then hit the back button to close. thats all!
What this does if to call the media scanner you disabled earlier with first app so it can scan your SD Cards and your gallery will display your files.
You can read the application descriptions on Play store for better understanding.
If you notice that these steps still doesn't help you with your battery drain issue, try disabling Motions and Animations in debugging options too. Both in settings. Then test battery again and see how good it works.
IMPORTANT: You also want to change PhilZ recovery Backup format from .dup to .tar as this might be the reason why Media scanner goes crazy. How to - Reboot into recovery, select Backup and restore, then select 'Choose backup format', then hit tar. Now delete all previous backups done in .dup format and then hit 'Free Unused backup Data' or go into phone, delete the folders of the backups done in .dup and then delete evreything in blobs folder. Now do a fresh Nandroid which will now be in .tar format. ( Always Have a Nandroid backup on your phone , it can come in handy! )
REMEMBER: What works for one person, might not exactly work for everyone. We don't have 100% same hardware. . So take it easy while throwing your shots at me. I just decided to share this.
I hope this helps some solve their battery issue.
Please hit thanks if this helps you.
Attached screenshots of my test from steps in first post.
ROM! is The SWEET SMOOTH NEAT ROM LITE v4.0
Here are the details of the screenshots i attached to this post, just incase you can't go through all of them.
1. Battery at 97%.
98% (3:05:20) deep sleep after 3h:08m:49s (total time on batt3)
2. Battery at 95%
97% (5:58:26) deep sleep after 6h:07m:18s (total time on batt3)
Had major whatsapp activity in the backgroud (I always have )
3. Battery at 70% - 12:59pm
Screen time - 2h 4m 10s
4. Battery at 50% - 2:30pm
Screen time - 3h 17m 38s
5. Battery at 40% - 3:06pm
Screen time - 3h 53m 12s
6. Battery at 30% - 3:48pm
Screen time - 4h 33m 27s
7. Battery at 20% - 4:27pm
Screen time - 5h 12m 20s
8. Battery at 10% - 5:03pm
Screen time - 5h 48m 21s
9. Battery at 1% - 5:31pm
Screen time - 6h 15m 19s
Also to achieve this, i had all bloatware frozen (full list in my S2 Facebook group - Link in my signature)
Turned Off Sync, and motion (really dont know if this affected result since i guess you need to use the motion,
for it to use up your battery).
Anyways, having said all these, i had running in background, facebook messenger, whatsapp, email pushing hourly,
Instagram. Did some surfing using Opera mini from time to time, Watched Videos... and some other stuff i cant remember of course.
The fact that Power Saving does not slow down the phone like older builds is strange.
I don't even know if it works that well yet.
I mean, I used Power Saving on my friends S3 and the phone got really slow.
stanley08 said:
Personally have been experiencing HUGE challenges regarding battery life of JB. and i have searched and searched, complained and complained in many xda threads. But in the end, i think this method is the best I figured out and it works pretty well!
I discovered the main cause of battery drain on JB is the 'Media Scanner'. I dont know exactly what the issue is, but it DRAINS your battery! I thought it was a corrupt file in my phone that was causing Media scanner to get stuck and scan for loong periods instead of 2 - 3 minutes which it should take regularly. (btw media scanner is launched every time you restart your mobo or make changes to your media files as far as i know). I formatted both my Internal and External SDs but it still didnt help. Now use the following Steps below to solve these issues.
1. Download Media scanner ROOT.
This app - https://play.google.com/store/apps/details?id=com.addz.mediascannerroot&hl=en
2. Download Media scanner also
This one - https://play.google.com/store/apps/details?id=com.addz.mediascanner
3. Always set 'Power saving' option on phone on. I can assure you that you'll hardly notice the difference in performance when you turn on power saving.
Having said that, if you want more brightness, you can increase from toggle or just tick auto by the side of brightness level settings right there in your notification bar.
Also, if you need to game or use heavy app that require alot of system resources, just turn off power saving.(Because power saving slows down your processors Maximum state from 1200MHz or 1.2GHz to 800MHz.)
How to use the apps mentioned in numbers 1 and 2.
First one is to stop it (Media scanner) from ever scanning. So open that one with ROOT at the end of the name (Grant SU prompt), then hit disable media scanner button wait for it to work. Just one or two seconds.
Sometimes you might open your gallery and notice a file is missing or you might not see even a single picture or vid in it.
ONLY NOW! can you open the second app dat DOESN'T contain ROOT at the end of its name.
Just open it and then hit the back button to close. thats all!
What this does if to call the media scanner you disabled earlier with first app so it can scan your SD Cards and your gallery will display your files.
You can read the application descriptions on Play store for better understanding.
If you notice that these steps still doesn't help you with your battery drain issue, try disabling Motions and Animations in debugging options too. Both in settings. Then test battery again and see how good it works.
REMEMBER: What works for one person, might not exactly work for everyone. We don't have 100% same hardware. .So take it easy while throwing your shots at me. I just decided to share this.
I hope this helps some solve their battery issue.
Click to expand...
Click to collapse
Any idea why the set back bottom becomes hot when I use 3G ? Need a solution desperately
Sent from my GT-I9300 using xda app-developers app
Conceptunlimited said:
Any idea why the set back bottom becomes hot when I use 3G ? Need a solution desperately
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Its normal for your mobile to get hot using 3G. But wat you can do right now is use lowest brightness possible. And flashing a different modem can solve. Did in ICS.
Sent from my GT-I9100 using xda premium.
Please hit thanks if I helped you.
MaKTaiL said:
The fact that Power Saving does not slow down the phone like older builds is strange.
I don't even know if it works that well yet.
I mean, I used Power Saving on my friends S3 and the phone got really slow.
Click to expand...
Click to collapse
Amazes me too... But what can I say?! More for us! Lol.
Sent from my GT-I9100 using xda premium.
Please hit thanks if I helped you.
MaKTaiL said:
The fact that Power Saving does not slow down the phone like older builds is strange.
I don't even know if it works that well yet.
I mean, I used Power Saving on my friends S3 and the phone got really slow.
Click to expand...
Click to collapse
Yup, when i first tried my friend S3 i was amazed at how slow it got if you turned on this option, doesn't happen in s2 JB which is strange, however i will try this 3 things to see if battery life does increase.
Driss97 said:
Yup, when i first tried my friend S3 i was amazed at how slow it got if you turned on this option, doesn't happen in s2 JB which is strange, however i will try this 3 things to see if battery life does increase.
Click to expand...
Click to collapse
Yh. Power Saving on ICS was so laggy too!
up.
stanley08 said:
up.
Click to expand...
Click to collapse
Wow, really? Upping your own thread which contains, with all due respect, nothing new anyway?
Pfeffernuss said:
Wow, really? Upping your own thread which contains, with all due respect, nothing new anyway?
Click to expand...
Click to collapse
It happens! And yh, i edited post 1 and 2.
I don't know why you guys have this media scanner problem. My battery life with LSJ (NeatROM Lite) is the best I have ever seen on SGS2, (best screen-on time + call time, and it sleeps like a baby) and media scanner isn't showing in BBS, at least not frequently. Maybe you all are using .dup format for CWM backups? It's the default on Philz kernel (at least it was), but I changed that in recovery options to .tar.
pilgrim011 said:
I don't know why you guys have this media scanner problem. My battery life with LSJ (NeatROM Lite) is the best I have ever seen on SGS2, (best screen-on time + call time, and it sleeps like a baby) and media scanner isn't showing in BBS, at least not frequently. Maybe you all are using .dup format for CWM backups? It's the default on Philz kernel (at least it was), but I changed that in recovery options to .tar.
Click to expand...
Click to collapse
Pilgrim bro, you have a very good point there bro. Maybe i should look into this and change my recovery option to tar also... But anyways, the steps in the first post fixes the issue.
Is it possible to use voltage control app to limit max processor signal to 800mhz, and save more battery?
Not sure what people are complaining about?
I've stripped alot, and i mean alot of APK's from the system folder. Had around 6 hours screen time, and around 1 day 3 hours uptime on first cycle.
No wakelocks, nothing. Best ROM i've used in a long time!
After disabling media scanner my music player and video player doesnt show any files.. and the ringtones are set to default samsung tones instead of what i hav set..
any solution for that ???/
superleeds27 said:
Not sure what people are complaining about?
I've stripped alot, and i mean alot of APK's from the system folder. Had around 6 hours screen time, and around 1 day 3 hours uptime on first cycle.
No wakelocks, nothing. Best ROM i've used in a long time!
Click to expand...
Click to collapse
+1. What is the most important thing - disable Google Now, change dup to tar, delete backups created in dup (they are causing media scanners to go wild), disable motion, disable smart stay and that's it, more or less.
rocky183ya said:
After disabling media scanner my music player and video player doesnt show any files.. and the ringtones are set to default samsung tones instead of what i hav set..
any solution for that ???/
Click to expand...
Click to collapse
Just pop open the app named Rescan Media ROOT. wait like ten seconds after opening, then hit Disable media scanner. hit back button once to close app. And ur stuffs will be back in place.
adrian13th said:
Is it possible to use voltage control app to limit max processor signal to 800mhz, and save more battery?
Click to expand...
Click to collapse
Lol bro. Take it easy and remember its just a phone.
Conceptunlimited said:
Any idea why the set back bottom becomes hot when I use 3G ? Need a solution desperately
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
I solved this by flashing XXKH3 modem in recovery mode (leaving RIL unchanged), using Philz Kernel 3.70 but I have GT-I9100.
In Oreo of January I've got this kernel wakelock that keep my phone always active even in standby, so battery drain it's very high. In Nougat I had not this problem and battery was very good. Any solution? thanks.
Same.
Me too. On Oreo custom rom, but also on every other rom. ITs something about the USB port.....
---------- Post added at 06:13 PM ---------- Previous post was at 06:10 PM ----------
This helped me:
1)Change dir to: sys/module/DWC3_msm/parameters
2) Open file "disable_host_mode"
3) Delete "N"
4) Enter "Y"
5) Save
You can try disable usb debugging. And remove default MTP usb mode.
Cheers!
This wakelock has been bothering me in my mi a1.. Tried every custom ROM and kernel. But nothing works. Only thing that works if I plug in my otg adapter ( even without a pendrive). Then my phone goes to deep sleep.
same problem bro .. i m on stock rom and this issue is there from april update for me
did u find any permanent solution ??
My phone stopped having this wakelock on its own after about 1 month.
Avoid plugging it in pc with usb. Charge with charger only, and do not transfer files with cable - download them instead.
covecove1 said:
My phone stopped having this wakelock on its own after about 1 month.
Avoid plugging it in pc with usb. Charge with charger only, and do not transfer files with cable - download them instead.
Click to expand...
Click to collapse
But in your previous response you had mentioned as
1)Change dir to: sys/module/DWC3_msm/parameters
2) Open file "disable_host_mode"
3) Delete "N"
4) Enter "Y"
5) Save
You can try disable usb debugging. And remove default MTP usb mode.
this helped you and here you've mentioned it was fixed automatically, which fixed it?
Previous post was something I found on other forums and tried myself, with no particular luck.
Not plugging phone in PC via USB helped me, although Im not really sure why.
Now, after wakwlocks stopped, I can plug USB without problems.
Try not plugging it for, lets say, a month and see if it helps.
This wakelock is pretty random i must say.
When it occurs you can even see red error messages in TWRP coming in console all the time while you do nothing with the recovery. Like USB port is getting woken up every few secs.
For me it stopped. Hope it helps you
I already had USB debugging turned off, so based on the above posts, I changed the USB Configuration type to Photo from File. It helped, some. Instead of 20% drain overnight, it was reduced to 10%. That is still a lot IMO, since the phone is doing nothing but sitting there. In Airplane mode, it uses 1% in the same time period.
I would advise installing Better Battery Stats
Then make a dump file and post it on the official thread, it is really important to follow the instruction for making a log to the letter.
https://forum.xda-developers.com/showthread.php?t=1179809
Instructions:
Before posting a dump please make sure that the references for kernel wakelocks and alarms were processed correctly. Reading a dump takes a few minutes and it would be great if you could not waste the time of whomever studies it, aiming at helping you.
Generally a dump "since unplugged" is better than "since charged". When you start your analysis make sure to follow following procedure:
- enable watchdog processing in BBS settings
- verify from/to references is checked under custom views
- full charge device then let it run down to ~95%
- put device to sleep for at least 6 hours (no touchy!)
- wake device and launch BBS
- adjust from/to references to 'screen off' and 'screen on'
- save dumpfile from share menu
- post resulting log to this thread (or provide cloud link)
I will not reply to posts with incomplete dumps
Click to expand...
Click to collapse
Do the 6 hours while you are asleep at night.
same problem here
i m non rooted
any fix possible?
My logs from BBS
prorooter007 said:
My logs from BBS
Click to expand...
Click to collapse
You need to post the logs on the official thread I posted earlier.
Look at my mess.. Any hlp will be appreciated
covecove1 said:
Previous post was something I found on other forums and tried myself, with no particular luck.
Not plugging phone in PC via USB helped me, although Im not really sure why.
Now, after wakwlocks stopped, I can plug USB without problems.
Try not plugging it for, lets say, a month and see if it helps.
This wakelock is pretty random i must say.
When it occurs you can even see red error messages in TWRP coming in console all the time while you do nothing with the recovery. Like USB port is getting woken up every few secs.
For me it stopped. Hope it helps you
Click to expand...
Click to collapse
Absolutely!!! I am facing same issues. Those red error message in TWRP keeps coming. Can going back to nougat hlp?
guddu61293 said:
Absolutely!!! I am facing same issues. Those red error message in TWRP keeps coming. Can going back to nougat hlp?
Click to expand...
Click to collapse
I went back to Nougat to try, it did not help.
Have the same problem...It started happening recently when i connected phone to pc to flash custom ROMs/kernels etc. Now i have drain in standby by this 7000000.usb wakelock...For some reason toggling Airplane mode seems to solve this issue, this is OK during the night for me, but at daytime it is very annoying and it drains battery much faster than using the phone
marko.dnb said:
Have the same problem...It started happening recently when i connected phone to pc to flash custom ROMs/kernels etc. Now i have drain in standby by this 7000000.usb wakelock...For some reason toggling Airplane mode seems to solve this issue, this is OK during the night for me, but at daytime it is very annoying and it drains battery much faster than using the phone
Click to expand...
Click to collapse
Try the procedure in the screenshot (it helped me)
However on every reboot the value changes back to N
prorooter007 said:
Try the procedure in the screenshot (it helped me)
However on every reboot the value changes back to N
Click to expand...
Click to collapse
Already tried that, doesn't do anything on my device, 7000000.ssusb still causing drain...
prorooter007 said:
Try the procedure in the screenshot (it helped me)
However on every reboot the value changes back to N
Click to expand...
Click to collapse
Reboot reverts value to original also charging is disabled until next reboot.
y use tasker to execute with root privileges this command in every reboot, works fine
echo Y > /sys/module/dwc3_msm/parameters/disable_host_mode
Ps: in play store i tested an app "boot shell" it execute terminal commands on boot, works fine but I like tasker
Ps2: check this https://r.tapatalk.com/shareLink?ur...share_tid=3824441&share_fid=3793&share_type=t
Sent from my Mi A1 using Tapatalk