Change vale for battery statistic restart - Xiaomi Redmi 3s Questions & Answers

Hello,
Is it possible to change a value on which battery statistic will be restarted (Default is 90%), I would like to make it lower.
Best regards!

Related

HELP: Battery level indicator blocked!!!

Hi,
I have a Asus P525 and I have this problem:
the battery level indicator is ever blocked to the value "84%". The led of the PDA indicate correctly the charge and the full level of the battery, but in WM5 the level is ever 84%.
I tried to instal new version of ROM and Radio, I tried to hard reset the PDA and I tried to remove and insert the battery, but notting.
The level of the battery is ever 84%.
What I can do?
Thank you very much in advance to all.
Davide

battery metter unreliable

i have noticed that the battery metter is completely unreliable
for example it shows 28% left (btw, i installed FInixNOverBattery for percentage indication) and after a soft reset it shows 41%
or it shows 50% and after soft reset it shows 31%
in this way i can never estimate how long the battery will last
does anybody faced this issue? any solution fot it? (i also tryed to calibrate by completely drain the battery followed by complete charge withe the device turned off)
thank you in advance!
noris08,
it is completey normal to experience big jumps in % after a reboot. The battery % is just a representation of the actual voltage of the LiPoly battery, which usually recovers (rises) quite a bit when there is no load on the battery (even for a short time).
maybe what you say it is true, but i never experienced this behaviour with any of my previous phones. and i had a few, including wm for a few years
and variations of 10-15% - i find them too big
I noticed the same thing. Any explanation for this? Or it is just that FInixNOverBattery is not reliable/compatible/accurate ?
Voltage may vary/jump around due to environmental changes and power consumption or voltage sensor may be insufficiently accurate to provide reliable voltage readings for 1% steps. This is one of the reasons why many battery drivers in WM only provide remaining charge percentage in 10% steps.
In this light, voltage on its own is not a sufficient indicator of remaining charge percentage. Other parameters, such as voltage deviation and other factors, such as power consumption and temperature may need to be taken into account to obtain a more accurate evaluation.

Possible way to get great battery life?

Hi I was thinking what if there was a way to manualy set the properties for the batterystats.bin file or if someone with really good battery life uploaded their battery stats file if we would end up getting the same battery life? I was going to give it a try but I can't seem to fine the values I need in the battery stats file soo...
Will someone that properly calibrated their battery or someone that gets amazing battery life upload their battery stats so I can try this and report back...maybe we can save us all valuable time by not needing to calibrate the battery every time we flash a rom! let's try it!
trh1341 said:
Hi I was thinking what if there was a way to manualy set the properties for the batterystats.bin file or if someone with really good battery life uploaded their battery stats file if we would end up getting the same battery life? I was going to give it a try but I can't seem to fine the values I need in the battery stats file soo...
Will someone that properly calibrated their battery or someone that gets amazing battery life upload their battery stats so I can try this and report back...maybe we can save us all valuable time by not needing to calibrate the battery every time we flash a rom! let's try it!
Click to expand...
Click to collapse
it depends on the Rom u are using....
For eg... I use CM7 and reaching a very great battery life but, I have flashed a new ernel (LordModUE 8.5), than I have flashed a PUV to undervolt the CPU. With No frills I set up the CPU in this way: 122 Mhz frq min and 1075 Mhz max freq...Ondemand Governor and VR like Script.
Than I leave only one mail on push and every widgets are upgraded when opened and not automatically.
Also the weather geo-localization is manually when opened.
Display light manually regulated on 15% and not on auto....
Display time on 30 second.
Sleep time set on 09.00 p.m. and wake up on 5.00 a.m..
When I sleep my device is in fly mode.
The Radio version is the latest with his relative RIL.
Good luck friend.....
greetings from Italy

CM10 Green Lens battery issues

Hello! I flashed CM10 on my green lens defy quite some time ago (2 months) and I had no problems at first. Then after flashing a new nightly (can't remember which one exactly, probably the 0904 one) I noticed that my battery is draining much faster than usual. Then two battery drops appeared - from 69% to 50% and 35% to 19%. My Defy shut down automatically once and I connected the charger to it ... the phone booted itself to the screen where it shows that it charges the battery and it showed 49%. Then I booted my Defy as usual and the battery icon showed only 4%. Hope I was clear and you guys can understand me! Is there a fix to that? Thanks in advance!
P.S. Forgot to mention I'm using Quarx's ROMs, if that's of any help.
Sent from my MB525 using xda app-developers app
u have to use battery fix search in forum ,u can find it
Thanks, I tried using red lens battery fix with no success. I tried wipe data and flashing the latest Quarx CM10 nightly and again - no success. I tried to use CM7 Kernel instead of Epsy's Kernel - NO success.
I have the same problem..help someone!!!
"Recently many users of the Motorola Defy phone have encountered sudden drops in battery charge after installing a new ROM. Such as, drops from 67% to 49%, from 34% to 19%, from 7% to 4%, etc.
I also have encountered such problem when installed CM7.2 after being used stock Froyo ROM for more than an year. I had searched forums for possible fix, but no method has helped.
Finally, I have made some tests with my phone and found interesting points about Defy battery that explain battery percentage drops.
Our Defy have very simple battery controller (it is referred as cpcap by Motorola). The controller does not calculate and provide battery percentage. It provides only a battery voltage and a current. The battd daemon do the battery percentage estimation. It seems some overcomplicated estimation algorithm is used to do that (I've seen the Coulomb counter technique is mentioned in the battd sources).
There are several battery percentage checkpoints at 5%, 20%, 50%, 80%, 100%. It seems the battd daemon have a voltage-percentage mapping table for these checkpoints. When a battery voltage reaches a checkpoint value then the percentage is immediately set to a corresponding value. All other intermediate percentage values are estimated by the battd daemon. The estimation is based on a battery capacity (requested from the battery itself) and the active current. A stock battery reports 1500 capacity. A 1700mAh Chinese battery, I also have, reports only 1200 capacity battd stores the last calculated battery percentage and voltage in the /data/battd/cc_data file. Data from the /data/battd/cc_data file is read on start-up and the percentage from this file is used as base and reported to the system. When battery is drained, the percentage is decremented. When you delete the cc_data and reboot, battd uses the current voltage and looks for the nearest checkpoint voltage value and sets the percentage accordingly.
How have I found the checkpoint values above?
Assume we have a brand new original Defy battery and it shows 25% of charge.
If you delete the cc_data file and then reboot the phone, battd will recreate the file and request the battery controller(?) for the current battery status. The controller will return 50% and battd show 49% to you (not 49% not 50%, due to rounding to the lowest integer). But the real charge is 25%! Now let the battery discharge. It will show to you 48%, 47%, 46%, etc. Great! But at 40-44% you get the instant drop to 19%, since the battery controller had reported real 20% charge at that point and battd has been forced to sync its estimated charge value to the real charge value.
When a battery is wearing its actual capacity is decreased. For example, it may be 1300 mAh after an year of usage. But battery still reports it have 1500 capacity and battd uses this capacity for its calculations. battd should decrement percentage a bit faster for this worn battery, but it still use the same decrement speed as for a new 1500 battery. When battery voltage reaches a check point value, battd updates percentage to corresponding checkpoint value and you register a drop.
battd has some battery information and correction data in the /pds/public/battd folder. This data helps battd to estimate battery charge more correctly. This folder contain 3 files:
Code:
batt_offset_data
batt_phasing_data
batt_tuning_data
Without this correction data you may encounter slight drops even on a new stock battery,
For Defy there at least 2 versions of battd. (Defy+ uses a different battd) Let's name them as old and new ones. To find out which version you have, check the size of the /data/battd/cc_data file.
cc_data = 16 bytes - old battd,
cc_data = 24 bytes - new battd.
Early stock Froyo ROMs have the old battd, newer stock ROMs have the new battd. CM7.2 is bundled with the new battd.
Is the battd version makes any difference in the battery readings? YES. The difference is in a user account which is used to run a battd daemon.
The old battd uses the mot_accy user account, The new battd uses the system account. The corresponding owner and group should be set for the /pds/public/battd folder and files inside it. Otherwise battd will not be able to read battery data from the /pds/public/battd folder and defaults will be used, which cause inaccurate estimations.
If you have used stock old Froyo ROM or old custom ROM, you had the old battd. The /pds/public/battd folder has permissions for the mot_accy user account only.
You install the CM7.2 ROM with the new battd and it can not read battery data from the /pds/public/battd folder, since battd is run under the system user account. You have inaccurate battery estimation and percentage drops even on a brand new battery.
That's why installing the old battd (and its companion lib libbattd.so) on CM7.2 resolves battery drops issue for some users.
If you are using CM7.2 or any newer CM you can just change the owner and group for the /pds/public/battd folder and files inside it. Set both owner and group to system and the new battd will be able to read battery data files.
If you still have battery drops then your battery is worn to some degree and battd can not estimate its charge properly between checkpoints.
Is it possible to correct this? Probably yes.
I was able to adjust checkpoint voltage values and eliminate drops on checkpoints. BUT the discharging speed is still the same and I have good discharge without drops from 100% to 10% and phone is turned off on 10% since a battery reaches critical voltage of 3.050V.
To adjust checkpoints it is needed to change the /pds/public/battd/batt_offset_data file. I have changed the last 3 bytes to 0xA0. It offsets voltage value for checkpoints on 50%, 20% and 5%.
The batt_phasing_data file have not helped at all in my tests. It contains correction values for displayed voltage, temperature, current.
The batt_tuning_data file is total mystery atm.
So the goal is to find a way to force battd to decrement percents faster for worn batteries. The simplest way is to patch the battd with hardcoded capacity value (e.g. 1300) instead of reading this value from the battery.
The other (better) option is to create a custom battery driver and use a very simple mapping from current voltage to percentage. Such method is used to display battery status in touch boot menu. Also Quarx started a custom battery driver some time ago in his git repository.
Important:
The battery calibration is a myth! The /data/system/batterystats.bin file is not related to battery charge/life/status (exactly as Google devs stated earlier).
In case of our Defy, charge the battery to 100% and keep charging for few hours after that. Then disconnect it battd will display correct 99%. That's all you need when changing ROMs or batteries! Do not waste your time on "battery calibration"!
Conclusion:
Find out which version of battd you are using.
Check owner and permissions for the /pds/public/battd folder and files inside it. Correct owner/permissions if needed.
Charge your battery to 100% and keep charging for few hours more.
If you still have battery percentage drops after that, your battery is worn to some degree. The sum of dropped percents indicates how bad is your battery (-10%, -15% etc, compared to a new battery). There is no way to magically increase real life for this battery. Drops just a display issue due to crappy cheap battery controller in our Defy and weak battd estimation logic. That's why stock ROMs have 10% steps for battery charge - to hide such issues."
Here from this thread: http://forum.xda-developers.com/showthread.php?t=1778492&highlight=battery

Battery problem

When my smartphone is on, the batterylevel remains constant. But when I reboot it, the battery level decreased drastically --> See image
Has someone a solution for this? I've already tried to recalibrate te battery, but it hasn't helped...

Categories

Resources