yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] CharlieMHz:
I have a little issue/suggestion to make, which is when the device reaches the selected percentage, it will stop the charge, which is fine, but the battery then almost immediately drops by 1%, which brings it back to charging again. And then only it reaches the desired percentage again, and stops charging.

It's not a big issue, it's just a little annoying, as the charging sounds play 3 times during this process.

Is this the right place to post about this?
[Android Apps and Games] hgmichna:
Fast oscillation between charging and discharging

The recommended method is to set the recharge point at least two percentage points lower, not just one, for example, charge to 80%, recharge at 78%. This seems to work on all phones.

Some phones may work well at only one percent distance, others won't.

Yes.
[Android Apps and Games] CharlieMHz:
My recharge point is 5% lower.
[Android Apps and Games] hgmichna:
Fast oscillation between charging and discharging

You had written that your SoC (State of Charge) level sinks by 1% when charging stops. So, if you set the app to 80% and 75% and the phone goes from 80% to 79%, it should not charge. It should only begin to charge after the SoC has sunk to 75%.

If this is not so on your phone, then something else is wrong.
[Android Apps and Games] post-mortem:
*74% (i.e., less than 75%)
[Android Apps and Games] hgmichna:
Quoting habits

Please improve your quoting. Very long quotes of well-known content are not the best idea.
[Android Apps and Games] thepandas:
[MENTION=6898873]sriharshaarangi[/MENTION] I have MI A1, Though there is control file available for this device ((qpnp-smbcharger-18(exprimental)) currently using this and i have also used battery_charging_enabled. i do not find any difference in both of them, moreover though i have not checked 'Always handle power events' still the device keeps its state contant to 80% (without discharging to lower limit of set value of 78%)

I just want to know wheather this is normal or some kind of misbehave in system ?

My current settings :

My Device - Xiaomi Mi A1

Limit charge - 80%

charge below - 78%

control file - qpnp-smbcharger-18 (exprimental)

enforce charge limit - enabled

Always handle power events - Disabled

Always write CTRL file - Disabled

Thanks for the app
[Android Apps and Games] Bradden1:
Anyone using this on a one plus 6?
[Android Apps and Games] TiZiO.Cover:
Works for me.
[Android Apps and Games] Krema+or:
Often overcharges on HTC u11 lineage 15.1

It runs in a background sometimes works but often goes way over 80
[Android Apps and Games] Infy_AsiX:
Sorry my reply took awhile. Sounds like it does hold for you then but doesn't let you specify the max voltage. You'll want to hold as much a voltage/percentage as you're willing to sacrifice cycle capacity and immediate capacity. The more time voltage is held higher will degrade. That's the limitation of this app only limiting percentage to say 80%, there's still a period of time where maximum battery voltage is applied, which adds degradation over time. It's still better than reaching or holding 100% but could still be better for longevity.
[Android Apps and Games] zarere:
I'm using this to control voltage_max

https://www.androidpit.com/forum/77...fe-by-reducing-the-charge-termination-voltage
[Android Apps and Games] hgmichna:
6 s charge-discharge cycle no longer happens

Some months ago there were complaints, some from me, that the phone went into a charge-discharge cycle with each phase lasting 6 s, leading to a hot phone and the battery gradually charging up to 100%.

I can report that I have not seen this again for at least 2 months on my OnePlus One with LineageOS 14.1 and recently 15.1.

I charge with different chargers, some delivering only 0.5 A, one delivering at least 1.5 A, some in between.

Needless to say, I'm quite happy that this problem seems to be gone.
[Android Apps and Games] post-mortem:
I do still get this problem, sometimes.
[Android Apps and Games] Infy_AsiX:
yeah same as I'd mentioned in this thread long ago. Can also set profiles, timers or alarms to trigger different levels.
[Android Apps and Games] beatschubser:
Just tried the app on my Moto Z Play with the wireless charging style shell, but it's not working :/ Set the limit to 55% and it loaded from 45% to 60% and counting.

Edit: Switching from "battery_charging_enabled" to "charging_enabled" seems to do the trick.
[Android Apps and Games] lukas222lukas:
automatically reset battery stats function yes or no ?
[Android Apps and Games] hgmichna:
Automatically reset battery stats function?

The setting has no effect on the phone's operation. It only determines which timespan you observe in the battery statistics.

So, if you have to ask, the answer is no.
[Android Apps and Games] lukasnemeckay:
Thank you.I answer because i have small battery drain at night. What do you think battery calibration could help me ?
[Android Apps and Games] guest4711:
No. The apps on any store which should "calibrate" your battery are fake. They display a lot of advertisings and hopefully do not more harm to your device like installing back doors or malware... (some of them require root!)

You cannot repair defective cells using a piece of software.
[Android Apps and Games] lukasnemeckay:
batttery consumption

thank you but have anybody the same problem like me ? you can see that in screenshots...I set the limit on 84% and everything work well but...Phone charged and i went to bed with 82% and a look on percentage at the morning and i see 60% of battery.. What is the problem? i have lg g3..When i had LG G2 everything was like this, but when i charge the phone on 100% it was ok.
[Android Apps and Games] guest4711:
What was the lower limit set up by you? (Perhaps something like 50% or any other value <= 60%?)
[Android Apps and Games] lukasnemeckay:
78 is my lower limit but my phone was unpluged from charger
[Android Apps and Games] post-mortem:
Pick from one of the following:

Leave the phone plugged into the charger all night long

Change the software

Change the hardware

Change nothing (live with it)
[Android Apps and Games] Sudhakar_k:
Thank you so much for this wonderful app, it works great and flawlessly in my Redmi 3S Prime which is running on Franken Rom
[Android Apps and Games] TiZiO.Cover:
Has anybody gotten this to work on a OnePlus 6 yet?
[Android Apps and Games] danci1973:
Hello,

I'm using this app on a Samsung Galaxy S7 and it works perfectly with a wired charger. It also somewhat works with wireless QI charger - the battery isn't charged beyond the set limit, however the charger is still active, it's still trying to charge the phone, so that the phone eventually gets quite hot.

If I disable the app and let the battery charge up to 100%, the charger somehow 'knows' and changes it's status light from blue to green and stops charging, so that the phone doesn't get quite as hot.

I have no idea how this is accomplished - maybe there is some NFC communication between the phone and the charger? If so, could the app do the same to deactivate the QI charger when the set limit is reached?
[Android Apps and Games] MajinkenSword:
Hi, question, which is better, Battery Charge Limit or Reducing the Charge Termination Voltage?

Also, MCS and Battery Charge Limit work the same in principle, yes?

To my understanding, the 3 ways mentioned, limit your charge to a certain percentage or voltage, preventing your phone to charge at its max, therefore, reducing its degredation. Is there a caveat somewhere in using one over the other?

I'm currently using an 80 78 setup on Battery Charge Limit since MCS through Magisk doesn't support my Huawei P20 Pro.

Thanks in advance! ?
[Android Apps and Games] Dramorian:
Doesn't work on Asus Z380KL, continues to charge.
[Android Apps and Games] MajinkenSword:
Try changing your control file. The default one didn't work for me.
[Android Apps and Games] zarere:
Hi I'm using both (limit the voltage to not more than 4.2V and charge to not more than 75 %.) I've never used MCS before so I can not comment on it.The caveat using only limit to specific % is that the voltage can go over 4..2V and making battery dying faster.When I was using only charging to specific % on battery I saw that my voltage was going over 4.3V and making battery real hot which is also making battery going to its knees faster.More info can be seen here:

http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
[Android Apps and Games] bam80:
Did you mean My Charging Controller (mcc)?
[Android Apps and Games] MajinkenSword:
Hi, I am referring to the Magic Charging Switch...

https://xdaforums.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427/page122 - sorry, dunno how to hyperlink using XDALabs app...

Also, Reducing the Charge Voltage Termination doesn't work for me all though my device is properly rooted. I tried manually updating max_voltage using root explorer and via Tasker, no luck in updating it. Always gets stuck on 4385 which is the default setting ?
[Android Apps and Games] zarere:
Whats your output from:

echo '4200' > /sys/class/power_supply/battery/voltage_max

and then

cat /sys/class/power_supply/battery/voltage_max
[Android Apps and Games] MajinkenSword:
Here's what I get:

14.33.42/E Run Shell: ->

14.33.42/E Run Shell: ->

14.33.42/E Run Shell: ->

14.33.42/Shell runBackground echo 4200 > /sys/class/power_supply/battery/voltage_max root: true timeout: -1

14.33.42/Shell start process-thread ID 199

14.33.42/E add wait type Shell1 time 2147483647

14.33.42/E add wait type Shell1 done

14.33.42/E add wait task

14.33.42/E Error: 1

As for voltage_max, it still shows 4384
[Android Apps and Games] Dramorian:
I have tried previous versions, they don't work at all as well (supersu root)
[Android Apps and Games] Apex Predator:
Any idea when v1.1.1 will make it to F-Droid?
[Android Apps and Games] h_jaguar:
Set Ctrl file as input_suspend(pixel 2/xiaomi 6)

通过我的 HTC 2Q4D200 上的 Tapatalk发言
[Android Apps and Games] baldybill:
Someone told me that you can either let the battery level drop down before charging it again OR you can "pause" at a specific percent and then the phone pulls power from the charger to supply itself but doesn't charge the battery.

How do you switch between the "pulling power from the charger" and the "dropping a few percent and then recharge"?
[Android Apps and Games] post-mortem:
It's not up to us; it depends on the hardware.

Many people consider being able to "pull power from the charger" as a feature.
[Android Apps and Games] bam80:
Strictly speaking, I would say it's not.

From what I could see from charging driver code (kernel-space), it's definitely possible software-controlled "pull power from the charger" mode. At least on Qualcomm-based solutions.

PS:

by default, this mode occurs when phone reaches 100% charging. But it's software-controllable anyway.

Not sure if it possible to do it without driver-code changing though..
[Android Apps and Games] baldybill:
So, on my LG v20 (US996), whatever I set the limit to, the phone charges to that limit and stops. The App and the System then say it is "discharging" but the percentage never drops. Is that due to it pulling from the charger instead? Or do I have a setting wrong? (By the way, I don't recall changing any settings besides the limit and the temp to Fahrenheit).
[Android Apps and Games] bam80:
[MENTION=2823485]baldybill[/MENTION], from my understanding your phone's firmware just handles it this way by default. Not everyone so lucky, but charge control chip may be the same, and provide that possibility anyway. So it's not hardware restriction, but rather software
[Android Apps and Games] 1goodm:
How did you get it working for SGT 10.1; AOSP 7.1.2? I have a root with supersu but the charge goes up to 100% every time.
[Android Apps and Games] billchio:
dex station

can you add dex station support?
[Android Apps and Games] lorreca:
Seem working fine also in last release Emui 8.1 (P20 Pro) with root. Thanks to dev.
[Android Apps and Games] Tetangga:
thank you for making this app, working good on mi5 base android 8.1 lineage OS 15, before this room don't have this feature, charge 100℅ and won't stop :eek:
[Android Apps and Games] d3bil0x:
The battery_charging_enabled works on oxygenOS 3.5.4 on oneplus 3T (and that's the reason why I stayed on 3.5.4 :( ).

Unfortunately on oxygenOS 4 & 5 works only the charging_enabled so far (I have not tested the newest oxygenOS 5.0.4 yet).

The battery_charging_enabled advantage over charging_enabled, which I noticed, is that the phone is powered entirely by the charger omitting the battery (if the power consumption does not exceed the capacity of the charger), which in the case of intensive use of the phone with a hooked charger, extends battery life.

The charging_enabled uses the battery all the time and is only recharged when exceeds the set limit.

Do I correctly notice the practical difference in action between the battery_charging_enabled and the charging_enabled?
[Android Apps and Games] cyryll09:
Working with OxygenOs 5.0.4

It's working with my Oneplus 3t OxygenOs 5.0.4 but you have to use the generic charging_enabled as control file.
[Android Apps and Games] Cobblestone-TLT:
Hello!

I use this app on my Huawei P10 Plus with Android Oreo onboard (C636B370) and it works correctly, BUT ONLY if I use non-stock charger! When I use my stock AC-charger it's tottaly don't work (it's don't limit charging level). Maybe for normal and fast charging mode different control files are responsible?
[Android Apps and Games] post-mortem:
How many mA does your non-stock charger output?
[Android Apps and Games] hgmichna:
Charging current

Another question lurks behind this one. Unless either the charger or the USB cable signals high-current capability by shorting the data lines, the phone will only draw 500 mA, no matter how much current the charger could deliver.

Almost all Android smartphones adhere to the Common EPS standard, see:

https://en.wikipedia.org/wiki/Common_external_power_supply
[Android Apps and Games] Cobblestone-TLT:
Tried several, 500 mA (USB on my PC), 1000 mA (iphone stock charger), 2000 (2400?) mA (charger of my previous Redmi note 3 pro)… with all of them it works!

My stock Huawei charger output: "5V-2A or 4.5V-5A or 5V-4.5A" (from its lable).

Not my case, I think.

1. I use the original cable and it is difficult to imagine that it shorting something, that it should not.

2. The charge is really fast, not from 500 mA.
[Android Apps and Games] post-mortem:
If you're using the same cable with all of the chargers, then it doesn't matter.

It's not impossible that your particular device uses multiple control files, but we can't be sure without some detective work. I think the first question to ask is, "Have you watched your phone while it is being charged?" Specifically, you can set launch the app & set the upper charge limit to 1-2% above whatever the phone is currently at, then watch and see what happens when the set point is reached. Does it briefly stop and then restart charging (and you get the toast message), or does it just keep charging?
[Android Apps and Games] Cobblestone-TLT:
I tryed as you wrote. I am using the same cable, charged device to 80% via iPhone charger and it stops (notification changes from 'charging to %setpoint' to 'keeping charge at %setpoint'), if I disconnect cable and connect to my stock charger - the charge will continue, if I disconnect it again and connect it back to iphone (or other non 'fast' charger), the charge will NOT continue.

When I use stock and set point is reached, notification changing as usual ('charging to %setpoint' -> 'keeping charge at %setpoint'), but in fact charging is continue... up to 100% if don't disconnect cable manually.

One more time: it works correctly with all other non 'fast' chargers which I have, but not with my stock Huawei fast charger.
[Android Apps and Games] post-mortem:
So the app thinks that it has stopped the phone from charging, but charging continues. Is that right?
[Android Apps and Games] Cobblestone-TLT:
Yes, that's it! But only if it plugged to stock huawey charger, in other cases charging stops.
[Android Apps and Games] hgmichna:
Charging current

In your case the data like shortcut is in the charger, if the phone draws more than 0.5 A.
[Android Apps and Games] Cobblestone-TLT:
So… my stock charger is just incompatible with this app, right? Well, if that's it, it's not a big problem for me, I have many others)

Thanks for your support!
[Android Apps and Games] hgmichna:
Charging current

I got the impression from some remarks here in the forum and from my own experience that the app fails with fast chargers on some phones. Nobody knows why.

The workaround is to use a weaker charger that outputs only 1 A to 1.5 A at most (and gradually lowers the voltage when the phone tries to draw more than that).

But I'm not sure. You may have to experiment.
[Android Apps and Games] Cobblestone-TLT:
I already experimented with 2A charger, and it works perfect, so this is not problem at all)

Now I know that this app don't work correctly with 'fast-charge' chargers, I'll take it into account…
[Android Apps and Games] post-mortem:
You could try experimenting with other control files to see what happens.

On my previous phone, thus app did not work predictably with a 700mA charger, but worked perfectly on 500mA. I never figured it out.

Thus phone? Works great, even with fast charging. :confused:
[Android Apps and Games] Cobblestone-TLT:
I don't know wich other control files I can experiment with, and I already have great work with other 2A charger. Therefore, I am completely satisfied with the achieved result, thanks)
[Android Apps and Games] shakathesaint:
I'd be very interested too!

Thanks
[Android Apps and Games] ChemoNL:
It works partially for me.

I need to retoggle the service once I connected my charger. But it blocks charging during the day when I connect my phone via USB
[Android Apps and Games] hgmichna:
Rapid charge-discharge cycle

Today I had a chance to observe the 6-second-charge-6-second-discharge cycle in a bit more detail. It hadn't happened to me in quite a while, but today it happened on a charger whose plug does not sit tight in the phone's socket. This means that occasionally there are power breaks after inserting the plug and while I put down the phone. This may be one possible trigger.

I unplugged the phone and used it until the percentage sank below the lower level, then I re-inserted the charging plug.

After a short while the phone reached the upper percentage limit and immediately went into the 6-second cycle again. I measured the time and found that the phone charges for exactly 6 s, then stops charging for also exactly 6 s, then charges again for 6 s, and on and on.

After I pulled the plug I noticed that the app was still active and showing its notification. Perhaps this is an indication of what's going wrong? The thought occurred to me that it looks as if two instances of the app are running at the same time.

If the 6 s discharge time span is programmed in the app, then one of the very simple ways to alleviate the problem would be to increase this time to 6 minutes or some other relatively long time. I would not mind if my phone were charged for 6 s every 6 min. I've said that before. Of course, complete understanding and resolution would be even better, but perhaps not necessary.

The phone is a OnePlus One with LineageOS 15.1 without any special, deep enhancements.
[Android Apps and Games] post-mortem:
It could be made into an option in advanced settings. Default value would be 6 seconds, but the user could choose any number.
[Android Apps and Games] hgmichna:
Rapid charge-discharge cycle

I am generally opposed to settings, if they can be avoided. This one, I think, would serve no purpose.
[Android Apps and Games] post-mortem:
The hard-coded value of 6 seconds is working for most users, but not all. If there is some other number which will work better for all users, by all means we can hard-coded that value. As long as different users are finding different utility out of the app with different settings, I would say it does serve a purpose.
[Android Apps and Games] JackOfOwls:
This will be one of the first apps I install when I get my Xiaomi Redmi Note 5 rooted in about 8 more days (damn you Xiaomi and your 2 week waiting period!). Seems really useful.
[Android Apps and Games] Eungeutho:
Battery Charging Disabler after reaching 100%

Battery Charging Limit seems good enough... But is there an app that totally disables charging/even trickle charging when an android device is at full charge even if the charger is still plugged in to the device. I want it to work even if my device is turned off. It's like when I leave my device off and charging overnight then after 4 hours, it reaches full charge state, red that just turned to green led would just light up for a short moment then suddenly the battery disabler app would totally disables charging including led function since charging too much (even for trickle charging) could degrade battery capacity gradually. I'm having a hard time, every morning, unplugging my turned off phone when it is fully charged already due to charging overnight. I always root any of my androids and I would gladly pay if you can make this app possible. Thank you!
[Android Apps and Games] bam80:
Eungeutho, usually phones already disable charging when at full charge, enabling it again only when battery discharges a little. You could see it in Status line of the app.

Don't worry about green led - it will light at full charge regardless of trickle charging going or not.
[Android Apps and Games] hgmichna:
Full charge

I agree fully and would only like to add that, trickle-charging or not, keeping the battery at full or nearly full charge stresses it and thus shortens its lifetime.

Since Li-ion batteries have a very low self-discharge, the voltage would remain high, regardless of whether you trickle-charge it with a current that would have to be tiny. But, as mentioned in the quote above, most smartphones do not trickle-charge after reaching 100%. They also display fantasy figures. They may, for example, wait until the charge goes down to 98% or 95% while still happily showing 100% to the user.

I don't know whether most phones, after reaching 100%, run the phone from charger current while disconnecting the battery or whether they just switch off the charger and switch it on again after the phone has used up a few percent from the battery. For all practical purposes it hardly matters.
[Android Apps and Games] bam80:
If the Status is FULL, battery is not charging and phone is powered from the charger.

Otherwise, if phone gets power from the battery - the Status would be Discharging.

When at full, battery discharges totally from self-discharging.
[Android Apps and Games] hgmichna:
Full charge

If you believe what the phone shows, that is. There is no guarantee that the phone is honest near 100%.
[Android Apps and Games] bam80:
hgmichna, I didn't tell anything about percentage. I talked about Status, which is common for Android. And I looked at the driver source code, so I know what I am talking about. At least for my phone ;)