extended battery, gauge fix - Sony Xperia ZR

I changed the battery for a new one with 3400mAh capacity and of course android gauge reporting it wrongly. How do I patch kernel manually to change default values from manufacturer's 2300 to 3rd party 3400mAh? Any ideas?

Well, to reply to myself - I found it.
The solution to 'fix the gauge' with extended battery is to not let it drain to 0% but instead to drain only to the low battery indicator! I used 10% remaining indicator mark (didn't tried with 15% as suggested @batteryuniversity or 5% when battery saving mode switches on), then the crucial point is to switch the phone off and let it recharge in powered off mode till 100%. Repeat the procedure 2-3 times and it should be good.
The charging circuitry needs to learn what the max and min are, so it can then stretch its range to fit the battery's new and much larger capacity.
As a result now I have 3400mAh that holds around 3d6h with more than 8h of screen time. Hope that helps to someone too.

can u please tell in simple english !

Related

Battery Strange Issue (not as much a problem, but peculiar)

Well, this is not an issue, but i discover yesterday.
My battery performs well, as good as in my Hermes. I need to charge every night, cause i have BT active all the time, and push mail over 3G.
Yesterday the battery was at 70% charge. I take out the battery, and after one minute, i put on again. Switch on the PDA and the battery says 72%.
I test again, with 40%, and same result. Take out the battery makes 2-3% higher charge.
This takes me to think the method Kaiser calculate the battery remainig is not so fine. Is true that is better that Hermes, but perhaps the battery temperature causes the driver to show incorrect values.
So think you have 2-3% more battery that the value it shows.
Anyone can verify this in his Kaiser and post the gained battery?
Cheers.
I think the reality is that trying to gauge battery life of a Li-Poly battery down a single percentage point is simply difficult. Their voltage drop is not very steep, so the voltage differential between 70% and 73% is not going to be very much. On top of that, it is very common for batteries to gain a little voltage if left without load for a bit. You can see it with a flashlight... run it down until it's essentially dead, then turn it off for a bit. When you turn it back on, it suddenly has some life left that didn't appear to be there before.
I test with 83%. Take out the battery makes 87%.

CurrentWidget to ensure fully charged battery

So most people should have heard about currentwidget by now, most people talk about it and use it to see what battery drain occurs during standby mode or airplane mode.
Now I'm sure most know this but incase you didn't, currentwidget helps to ensure your battery is fully charged as well. This is good for people that complain about their battery dropping quickly after a full charge.
You can use currentwidget to monitor your charge, when the battery says its 100% and led is green, currentwidget still shows power going to the battery in form of "ma". I noticed my battery said it was charged and eventho at 100%, currentwidget still showed "ma" is being delivered to the battery . After two hours only it showed 0ma, now I'm sure that means that eventho my phone said its charged, it wasn't fully charged until 0ma were displayed in currentwidget. Since I noticed that, I've been charging my battery "fully" and did notice my battery stayed much longer in the 90-100% aisle when being unplugged.
So if you feel ur battery drops too quickly from a full charge, use this widget to help monitor your charge.
yep, tnx for the tip, im useing clarus battery and its do the same - and i like the widigt so...
the current widget always shows some value of mA . how do we know when the battery is really full ?
Well with me after 1hour at 100%, it shows 0ma. That's when I know the battery is completely full and reached its maximum capacity.
I don't think waiting for the battery to get to the 0mA level is good for the battery performance. Usually the green LED comes on when the widget shows 50mA.
A high-charge concentration for a long time in a Li-Ion battery is bad for the battery. Thats why mobile phones have a little buffer to stop the entire capacity to be full, and try to lose the first part of the full charge as fast as possible.
Since i use some RC Helicopter with li-po/li-ion that both have the same way to produce energy, I have learned how to use this kind of battery and how to ensure a good battery life/durability.
There is no reason to worry about the battery if you follow those few recommendation (given by a battery producer):
-Your battery has to be charged with a current of 1C max (1C mean 1230mA for a 1230mAh capacity).
-Your battery voltage must not be over 4250mV. If you go over, you may damage the battery and risk random explosion/fire. In normal use, it's better to not go over 4200mV.
If you charge the battery with your phone, you will never be able to go over 4200mV because the charge stop automatically before.
-Your battery must not be under 3300mV. Same risk as above. In normal use, it is better to not go under 3450-3500mV to ensure a good battery durability (numbers of cycle charge/decharge). I think the phone show 0% at near of 3450mV, but never check this cause i never wait my phone to be as close to the death.
-Your battery has to be drain at a current of 10C max, i.e for desire HD , 12.30A (1230mAh x 10).
impossible to reach that current with your smartphone so no worries about burning your cpu with heavy bench.
Whatever you do respecting this will not be harmful for your battery.

Spare battery + Wiping battery stats?

So...I don't think this has been brought up here before, so I figure I'll be the dummy who asks. If I recalibrate (bump charge), and wipe battery stats, is it safe to assume that swapping out batteries (spares) will mess this up? I plan on picking up a spare battery, but wondered about this. Any input? Thanks in advance.
Not sure about the "bump" policy around here. but...........BUMP
Just charge the battery and use the phone. Don't get caught up in the whole wipe stats to create longer battery life craze.
I just swap batteries when needed about midday. I ignore the battery stats. They don't affect my use of the phone.
newter55 said:
Just charge the battery and use the phone. Don't get caught up in the whole wipe stats to create longer battery life craze.
Click to expand...
Click to collapse
I understand that wiping stats does not "improve" battery life. but I have no problem believing that with a recalibrated battery (@ 100%), wiping stats will help the phone/battery meter "read" more correctly.
ua549 said:
I just swap batteries when needed about midday. I ignore the battery stats. They don't affect my use of the phone.
Click to expand...
Click to collapse
I thought so too, but I believe coupling it with a bump charge helped me a lot. I'll explain:
I recalibrated my battery about a week ago, (didn't know about wiping stats) I improved by about 3 or 4 hours daily, bringing me up to about 15 hours of use on a charge.
However,before I posted this thread, I did a recalibrate along with a wipe, then allowed the battery to drain and then a complete recharge. As of right now (27 1/2 hours later) I'm still looking at 30%
However, thats not why I started this thread though, I am simply wondering if swapping batteries back and forth will affect the stats and how the phone reads the state of the battery. (makes sense that it would I guess)
any input on THAT would be awesome, thanks in advance.
True. Unplugging the charger as soon as it shows 100% won't give you a full charge since it's not really accurate. I believe the charge complete notification is triggered by the charger shutting down. Not positive but I have noticed that can be triggered at varying times after 100% is reached.
Swapping batteries does mess it up but I can't say how much. There's always going to be a difference in charge between the two, and depending on different brands, a difference in the battery capacity and voltage at different % levels.
In short: The charge circuit measures amps going in and coming out, and remembers voltage levels at different times, so swapping batteries or using external chargers probably confuses it a bit.
Would it be possible to just create a separate batterystats file for the spare battery and swap out the files when the batteries get swapped out?
There was a post recently by a Google engineer, Dianne Hackborn (can't link yet, just google "Dianne Hackborn battery stats" and you should find it).
It explains that the battery stats come from data/system/batterystats.bin and are reset every time you unplug with a "relatively full charge." The file is reflected in the battery use screen.
It won't affect how much battery level is shown to you or how long your battery lasts.

Strange battery charge spikes ?

Hi !
I have a nook HD+ which has been behaving strangely. Its battery life has reduced lately. I initially had problems with 'media' and 'SDcard' draining it quickly. But I was able to check that by formatting my SD card and deleting two 0 kB files in my internal memory.
However, the battery life, since, has not improved much. Moreover, I have started to see a few spikes in the battery charge chart (like the one in the pictures attached with this post) without having plugged the Nook in.
I am on CM 11 snapshot M8. I have already tried calibrating my battery by charging it to 100% and then removing batterystats.bin system file through PlayStore's 'Battery calibration' app, but the issue still remains unresolved.
Has anyone else faced a similar issue with her or his Nook ?
You cannot calibrate batteries in Android. Those silly apps just delete batterystats.bin and that is an Android file responsible for the statistics seen in your third screenshot. It gets deleted automatically when you unplug the charger at an almost 100% charge level, and it has nothing to do with the reported battery level!
The battery percentage as shown by Android comes from the kernel, the power management unit (PMU) driver to be more specific. The PMU, which usually is a separate chip inside the device, is responsible for monitoring, charging, and discharging the battery, among other things. There are many different PMU models, so this is highly hardware-dependent, and there most likely are no apps out there that can directly talk to all the existing PMUs to do something that's actually meaningful (which deleting batterystats.bin is not).
The only thing you can do is once in a while discharge the battery until the device turns off, then recharge it in one go to full capacity. That way, the PMU hopefully "calibrates" its battery monitoring by itself and should report more accurate state of charge values again. Measuring a battery's state of charge is rather difficult and not an exact science. Those percentage values are only estimates. So, the spikes you see on the battery percentage chart are a result of the imperfect method that is used to calculate the current battery percentage. Maybe this gets worse with aging batteries, I don't know. There's nothing really you can do, other than the complete discharge/recharge cycle you've already tried. Maybe a future firmware will come with a better battery percentage calculation method - but as I said, this is totally independent from Android, it's a low-level hardware and kernel driver thing.
Thanks a lot. A very informative post indeed !
Full battery charge/discharge cycles seems like the only solution then.
How will it affect the battery and its capacity to retain the charge though ?
To prevent any misunderstanding: you should definitely not discharge your lithium-ion based batteries to 0% all the time. Li-ion batteries live longer if they are kept between 40% and 80% charge. At 80% you won't get the full capacity / runtime, of course, but the battery will be able to endure more charge/discharge cycles that way. As I said, discharging to 0% followed by recharing to 100% should only be done occasionally, if you feel that the reported battery percentage has become too inaccurate. It probably won't fix the "ghost recharging" seen on the Nook and other devices. What probably happens here is that the battery's voltage is factored into the state of charge calculation. Li-ion batteries are usually charged to 4.2V per cell, which is "100%", and discharged to some arbitrary voltage, e.g. 3.5V, which would be considered "0%". Inbetween, the voltage curve is not linear. That is, 50% would not necessarily correspond to 3.85V (=(4.2+3.5) / 2). Also, the voltage depends on the power draw to some extent. If the tablet draws a higher current from the battery, the voltage will sag. If you then put the tablet into standby, reducing the current to a very small value, the battery voltage will recover and increase again a bit. This is what might cause those spikes (although they shouldn't be that large).
This and more can be learned on Battery University. And here's a source for the batterystats.bin calibration myth.
Thanks a lot Tzul. You have been very helpful !!
I may have to replace my battery soon. If the battery life does not improve, I guess I will have to buy a replacement battery from a third party replacement battery seller.

Xiaomi programmed obsolescence on battery

H, since I updated from miui 10 to miui 11 and even now that I have miui 12 I have noticed that the battery doesn't last as long as before. I state that since I purchased the phone (July 2019) I have always charged the battery in the best way trying to never go below 20% and trying not to go beyond 80% so I don't think a battery can lose more than 30% of its real capacity in less than a year of life. Starting to investigate I found that the battery does not charge at its real capacity i.e. 3300 mAh but at around 2200/2300 mAh. To verify all this I have carried out several tests and the easiest way to verify it is to look at the battery characteristics through the AIDA64 app (screenshot below). From these tests it seems that the device limits the real battery capacity by not allowing it to be charged to its maximum capacity. A reply to what I wrote can be found by looking at some system files that are located in /sys/class/power_supply/battery. In particular, looking at the file called charge_full (screenshot below) you can see how the value of the file is much lower than the real battery capacity. I hope someone more competent than I can understand how to solve this hateful problem and I also invite you to check the value to try to better understand the cause of this problem.
I'm using miuimix 12.0.2 stable and the capacity is not 3300, either.
---------- Post added at 10:03 AM ---------- Previous post was at 09:59 AM ----------
And sorry i don't know how to post a picture, mine is 2943.
I know that batteries won't be forever and are always decreasing during the year but I think Xiaomi do a good job. I have some devices from 4 years ago and they reduced their batteries just a little. In the case of Mi 9 I have it since March 2019 and my battery still being the same. I charge it from 10-25% to 100% just some times I charge it until 80-90%, maybe every month I let it to 0% I wait for a while and charge it again to 100%.
Sent from my MI 9 using Tapatalk
From the photo you posted it doesn't seem that your battery is fully charged .. we have done other research and we have discovered that most likely Xiaomi has inserted in the kernel a sort of programmed obsolescence on the battery.
Can you disclose some of the research you done on the kernel it seems interesting. I have checked with Aida64 my battery before and it never charges to 3300 even if you leave the phone plugged in the value will keep increasing but once you plug it out it drops...still getting about 5 hrs sot so not bad...I wonder if you change that value in the full charger screen you posted what will happen?
"From these tests it seems that the device limits the real battery capacity by not allowing it to be charged to its maximum capacity. "
Actually it's better for battery life longterm to keep the device in the middle - never 0, never 100
I've certainly lost no battery life in the year + I've had the Mi 9
You are doing a good job of using the phone in the 20 to 80% range. But do you charge it at the lowest possible temperature? Temperature is a battery's worst enemy. Wireless charging is a joke. It's a glued heater in the battery.
I for instance, almost all the times charge it in front a mini fan. With this I can charge it 5ÂșC below normal temp charge.
And like @cezikos said, use quickcharge only on emergencies. Use at max a 1.5Amps charger. Quick charge is a marketing thing. The chemistry of the batteries are almost the same in this 10 years.
Mi mi9 have one year and the battery is 100%.
The important thing that you should precise is a type of charger that you are using. Do you use Quick Charge? If Yes, then battery capacity will be dramatically degrated. I use 5V 0.5-1.5A charger, it depends how fast I need to charge the Phone.
The next thing is a battery temperature, not Only while charging the Phone but also when you are using it. I`m using CPU Monitor and it's overlay to see the battery temp, you can also configure alerts when battery is starting to overheat.
Heavy Gaming decreases the life of the battery, there are a lot of variables that you have to cobsider, not only "programmed obsolescence"
I had the same problem. Hopefully the battery could make 3 hours of screen, the strange thing was that suddenly it began to last very little, and I was with that problem for a couple of weeks, so I decided to calibrate the battery hoping to have some results and now the battery lasted again approximately 7 hours of screen. Try to make the battery run out from 100% to 0%. The system will not let you start because it calculates that it has no battery, so what I did was leave it in recovery mode and with the screen always active, until it turns off completely, then with a 5V 1A charger. With the phone turned off, charge it until it reaches 100%. I did it three times and the battery was back to the way it was before. You could try to do the same and I hope you can solve that problem.
Sorry for bad English
I tested, I put the phone to play videos until it turned off. In 1% I cleared battery stats.
Then plugged the charger and entered the TWRP and unplugged. Put the backlight to maximum, and the phone stayed on more than an hour!
Then I plugged the charger 1.5A and let it charge to max.
It worked, now the phone has a steady discharge, not discharge 100% to 80 in an hour.
I will do this procedure from time to time. not the best for the battery, but is needed in mi9...
It's an absurd that this problem exists in 2020, my galaxy S2 don't have such harsh problems with something so simple and basic like battery management!
Battery on my Mi9 (mildly used in one year) lost 500 mAh.
Confirmed, with this trick, in doing it ONE time, I have the phone running well again, more than 8h screen on.
0.5 discharge in sleep.
.eu 20.3.19
onolox said:
I tested, I put the phone to play videos until it turned off. In 1% I cleared battery stats.
Then plugged the charger and entered the TWRP and unplugged. Put the backlight to maximum, and the phone stayed on more than an hour!
Then I plugged the charger 1.5A and let it charge to max.
It worked, now the phone has a steady discharge, not discharge 100% to 80 in an hour.
I will do this procedure from time to time. not the best for the battery, but is needed in mi9...
It's an absurd that this problem exists in 2020, my galaxy S2 don't have such harsh problems with something so simple and basic like battery management!
Click to expand...
Click to collapse
Thanks! I just don't know how to clean the battery status...
You will need root.
Then are several apps that can do it. Like l speed or adiutor.
And now again confirming, in one month the phone is completely lost regarding battery again, just 3h SOT from 80 to 20. There's some pretty **** up code regarding battery in xiaomi android.
I have no problems at all using it since release.
newest xiaomi eu.
I also have problems with battery drain...
Hello guys, just want to share with you a little trick that just helped me get better SoT. First of all, I just want to mention that I'm on the newest xiaomi.eu rom (20.8.13) and that AccuBattery is showing that my battery is at 2500mAh estimated capacity. (That might be different in reality, because it's only after one charging, so don't believe it that much). Lately I noticed a significant drain while the phone was idle (screen turned off). It was draining like 1-2% every hour and I could barely get over 5h SoT. So I investigated a little bit, and found a solution on reddit. The thing was that I had many apps on autostart. If you want to check them and turn it off then open Settings > type 'autostart' in the search bar > open it > 3 dots > show system apps > turn off every unnecessary app that you think don't need that option. I turned off every app, except: Gmail, GPay, Google Photos, Clock, Calendar, Bank app, Weather app and the app called 'safety system addon' - it might be called different because I'm not on english language on my phone. I left them on just in case to have notifications/synchronization, though i don't know if it's necessary. After that there was almost 0% idle drain over the day. Now I'm on 5h4m SoT and still have 25% of battery left. The result might be even better, cause I did this trick just today while my phone was on 90-85%.
Give it guys a try, hope it will improve your daily experience with Mi 9.
P.S. Let me know guys If I could turn off the before mentioned apps and still get notifications and sync from them.
Mine reports 2800mah, debloated with Szaki tool all autostart apps disabled also did factory reset after miui12 update.
Really sad how bad miui12 has turned for me. Im having way worse battery life compared to miui11 the idle is mostly the same its just the battery doesn't last as it used to last with miui11.
onolox said:
I tested, I put the phone to play videos until it turned off. In 1% I cleared battery stats.
Then plugged the charger and entered the TWRP and unplugged. Put the backlight to maximum, and the phone stayed on more than an hour!
Then I plugged the charger 1.5A and let it charge to max.
It worked, now the phone has a steady discharge, not discharge 100% to 80 in an hour.
I will do this procedure from time to time. not the best for the battery, but is needed in mi9...
It's an absurd that this problem exists in 2020, my galaxy S2 don't have such harsh problems with something so simple and basic like battery management!
Click to expand...
Click to collapse
I can confirm this. AIDA64 said my battery was at 2550mah capacity when fully charged. I followed this procedure and now after being fully charged, it says 3125 mah, which is much better.
I'm curious about the screen on time now. Me happy. Thanks!

Categories

Resources