Question Automatic shutdown according to battery percentage app or Magisk module. - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

As the title says, is there any app or Magisk module that can automatically shutdown your device according to battery percentage?

ahhh we have almost the same issue but my issue is whenever my battery percentage reach 20% wifi get disconnected i need to to setting and wifi and click scan again for it to get reconnected i think it is some sort of battery saver
i hate it whenever i'm playing it disconnect me

Actually, I'm not asking about an issue.
I'm asking if anyone knows of an app or module for Magisk that can shutdown the device accordingly to battery percentage.
I'd really like to set my phone to shutdown when the battery hits 15%.

Nemix77 said:
Actually, I'm not asking about an issue.
I'm asking if anyone knows of an app or module for Magisk that can shutdown the device accordingly to battery percentage.
I'd really like to set my phone to shutdown when the battery hits 15%.
Click to expand...
Click to collapse
Macrodroid can (with root). It's like a simpler tasker app. I'll pm you my telegram link, i can send you a quick video if you like...?

Nemix77 said:
Actually, I'm not asking about an issue.
I'm asking if anyone knows of an app or module for Magisk that can shutdown the device accordingly to battery percentage.
I'd really like to set my phone to shutdown when the battery hits 15%.
Click to expand...
Click to collapse
ohh you don't have my issue?

reg66 said:
Macrodroid can (with root). It's like a simpler tasker app. I'll pm you my telegram link, i can send you a quick video if you like...?
Click to expand...
Click to collapse
I do at 20% although 30% or higher be better.
After 20% there's a lot less usable power available and charging from that low is more stressful on a Li especially if fast charging.

I'll do 20% shutdown and 90% battery charging stop.
That's 70% usable power, I can't do anything better than that.

Nemix77 said:
I'll do 20% shutdown and 90% battery charging stop.
That's 70% usable power, I can't do anything better than that.
Click to expand...
Click to collapse
I generally do 40 - 70% or so. On my device it's 3 hrs on SOT and take 15 minutes to fast charge.
Li's like frequent midrange power cycling; use it if it fits your needs.

Nemix77 said:
As the title says, is there any app or Magisk module that can automatically shutdown your device according to battery percentage?
Click to expand...
Click to collapse
Magisk module : Advanced Charging Controller (acc)
https://forum.xda-developers.com/t/advanced-charging-controller-acc.3668427/
It has features as:
Shutdown at set percentage, eg. 20%
Stop charging when reach a percentage, eg. 75%
Cool down charging, so the device and battery won't be very hot using temperature detect on battery.
Charging voltage/current limitation.
Charge cool down as set, eg. 50 seconds charge and 10 seconds cool down without charging, then repeat.
Read the README in github.
ACC app has some issues. Module is working better and updated.
The module will need you to manually edit the settings profile, and you need to use command line.
If you just want to stop charging at certain percentage, Battery Charge Limit is enough.
On F-droid
https://f-droid.org/en/packages/com.slash.batterychargelimit/
Play store
https://play.google.com/store/apps/details?id=com.slash.batterychargelimit&hl=en&gl=US
Both need root.

I use Battery Charge Limit already on my Mi Pad 4.
Advanced Charging Controller seems to have a lot more features.

I haven't been able to get ACC with ACCA (GUI) or Battery Charge Limit to work on the Poco F3 with Xiaomi.EU rom and root.
None of the control files work on both apps.

AccA is faulty.
Use the Magisk module.
You might want to ask cutsom ROM developers because they had managed to get smart charge working, so there's definitely control file that works.

I got Acc with AccA working!
I was testing the charging switches without plugging in the charger, my bads...
Some how Battery Charge Limit does not work, it's a simpler app and I used it with my Mi Pad 4 so I thought it would just work with the Poco F3.

Nemix77 said:
I got Acc with AccA working!
I was testing the charging switches without plugging in the charger, my bads...
Some how Battery Charge Limit does not work, it's a simpler app and I used it with my Mi Pad 4 so I thought it would just work with the Poco F3.
Click to expand...
Click to collapse
Check ACC control config what control file your phone uses, then see in Battery Charge Limit if you can select that control file manually.
I think it can also manually write the control file, but not quite sure.

pl1992aw said:
Check ACC control config what control file your phone uses, then see in Battery Charge Limit if you can select that control file manually.
I think it can also manually write the control file, but not quite sure.
Click to expand...
Click to collapse
Yeah I figured that, but since I have Acc with AccA working there's really no need to go back to Battery Charge Limit.

Nemix77 said:
Yeah I figured that, but since I have Acc with AccA working there's realy not need to go back to Battery Charge Limit.
Click to expand...
Click to collapse
Just to clear the things that you've already said
You mean ACC with AccA is working properly? If not, is there any problems with using ACC with AccA app?
I used ACC with AccA app before on my raphael times with EvoX Custom ROM, works well and haven't encountered any problems with using with ACC via AccA App

Related

Limit battery charging (root is required)

Since Lenovo P2 has an incredible battery life you rarely have to make full charges. I've been searching a long time for a method to set a charging limit, for instance at 80%, to preserve the battery health. It is possible to use the BCL app, Tasker as well as the Magisk Charging Switch module.
The path of the battery files responsible for the charging is /sys/class/power_supply/battery where you'll find two interesting files, battery_charging_enabled and charging_enabled.
There's only one problem; as soon as the screen turns off any limit set by you will be ignored. Now, there has to be a way to force the charging to stop while the phone is in idle state. Any ideas? I've already tried the obvious solution to whitelist BCL, Tasker respectively Magisk in the battery optimization settings, but it didn't work.
RR-O-v6.2.1-20190130-kuntao-Unofficial + battery charge limiter
RR-O-v6.2.1-20190130-kuntao-Unofficial + magisk + Battery Charge Limit works for me
I guess your limiters go to sleep when the screen goes off. Try to force that the screen stays on. Try to exclude them in the battery saving options. If you try the app Battery Charge Limit than it is working for me with a normal charger but not while chargeing through a PC.

Battery charging pausing/resuming

Do you know an app, which stops battery charging at specific battery level? I have tried few of them from magisk respository, however neither of them supports Lenovo P2.
mbemba said:
Do you know an app, which stops battery charging at specific battery level? I have tried few of them from magisk respository, however neither of them supports Lenovo P2.
Click to expand...
Click to collapse
Did you try this?
https://forum.xda-developers.com/android/apps-games/root-battery-charge-limit-t3557002
Not working unfortunately :c
mbemba said:
Do you know an app, which stops battery charging at specific battery level? I have tried few of them from magisk respository, however neither of them supports Lenovo P2.
Click to expand...
Click to collapse
https://forum.xda-developers.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427
timytimy said:
https://forum.xda-developers.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427
Click to expand...
Click to collapse
Not working too
@mbemba Battery Charge Limit is working with the P2.
Kontex said:
@mbemba Battery Charge Limit is working with the P2.
Click to expand...
Click to collapse
Did you try it on your own? If yes could you send me your configuration?
@mbemba
I'm using the control file "Generic charging_enabled" . Nothing else is selected. But at the moment I'm not sure if it only does a cosmetic change. The program is possibly stopping the battery counter at 80% while charging continues.
Kontex said:
@mbemba
I'm using the control file "Generic charging_enabled" . Nothing else is selected. But at the moment I'm not sure if it only does a cosmetic change. The program is possibly stopping the battery counter at 80% while charging continues.
Click to expand...
Click to collapse
I have been using it for a while and i think that it is working in fact. Thanks for a help
mbemba said:
I have been using it for a while and i think that it is working in fact. Thanks for a help
Click to expand...
Click to collapse
@mbemba @Kontex
I am happy to know that someone has this working with the P2, there is some hope!
However, as many others remarked until recently (here and here), I also notice that as soon as the screen goes off, the background charging resumes.
I wonder which is the trick in your case. Do you configure your P2 not to sleep when charging? That is, then the screen is always on...
Lucio73 said:
@mbemba @Kontex
I am happy to know that someone has this working with the P2, there is some hope!
However, as many others remarked until recently (here and here), I also notice that as soon as the screen goes off, the background charging resumes.
I wonder which is the trick in your case. Do you configure your P2 not to sleep when charging? That is, then the screen is always on...
Click to expand...
Click to collapse
Check your options, maybe sth is different, because my P2 isnt charging even when the screen is off.
@Lucio73 You can set "keep the screen active" in the developer options while chargeing. But for me it works with screen off, too. You should check your battery saving options. Maybe you force battery limiter to go to sleep when the screen is off. I further have to make a note that it is only working with socket chargers. I doesn't limit chargeing while it is attached to an USB port of a PC. An other option is to test a lower limit like 70%.
I noticed that the chargeing status changes within minutes after hitting the limit if you attach it afterwards to an USB-PC-Port. The limit is set to 73% for example. The Lenovo P2 is charged through a socket charger until 73%. The charge status increases within a few minutes from 73% to 80% when the P2 is attached to a PC afterwards . So there seems to be an offset of about 7%.
RR-O-v6.2.1-20190130-kuntao-Unofficial + magisk + Battery Charge Limit works for me

Question Limit Battery Charge

On my OnePlus 7 Pro I used the battery charge limit app to limit my battery charging to 85% for battery health since I was going to keep it awhile (2 years). Anyways, the same app doesn't work on the OP9 Pro and I tried Advanced Charging Controller Magisk module and that didn't work either. Looking for ideas if anyone knows of something else to try. Since this phone charges so darn quick, it's even less of an issue to limit the battery max percentage and the ideal phone to do such a thing.
bulletbling said:
On my OnePlus 7 Pro I used the battery charge limit app to limit my battery charging to 85% for battery health since I was going to keep it awhile (2 years). Anyways, the same app doesn't work on the OP9 Pro and I tried Advanced Charging Controller Magisk module and that didn't work either. Looking for ideas if anyone knows of something else to try. Since this phone charges so darn quick, it's even less of an issue to limit the battery max percentage and the ideal phone to do such a thing.
Click to expand...
Click to collapse
Acca works great for me. Are you on the newest magisk canary? I am.
Burt Squirtz said:
Acca works great for me. Are you on the newest magisk canary? I am.
Click to expand...
Click to collapse
I'm on the latest stable. I may try that.
Try a non warp/dash/whatever cable/brick with ACC
Same problem with Acca, will try the Battery Charge Limiter from Play Store
I've just been using AccuBattery which notifies me when charge reaches the level I set (I use 90%) and unplug it when it alerts me. That won't help if you charge it at night, but for daytime charging the phone is usually plugged in right next to me.
Burt Squirtz said:
Acca works great for me. Are you on the newest magisk canary? I am.
Click to expand...
Click to collapse
Just installed latest Magisk Canary and ACC module with ACCA app doesn't stop the charging on any charger I've tried. Anything else you did?
solved the problem physically. I use a smart plug with an auto stop timer, not the best solution but it gets the job done mostly.
linnil said:
solved the problem physically. I use a smart plug with an auto stop timer, not the best solution but it gets the job done mostly.
Click to expand...
Click to collapse
How would you get it to stop at a specific percent though? If there's some sort of timer to stop at a detected voltage, that could work.
bulletbling said:
How would you get it to stop at a specific percent though? If there's some sort of timer to stop at a detected voltage, that could work.
Click to expand...
Click to collapse
nah, i simply set it to a set timer, for me that is 25 minutes.
As you are saying this, it makes me think that it is not hard to do a script to do this automatically. . too much work for this tho, but totally doable with samsung smartthings.
linnil said:
nah, i simply set it to a set timer, for me that is 25 minutes.
As you are saying this, it makes me think that it is not hard to do a script to do this automatically. . too much work for this tho, but totally doable with samsung smartthings.
Click to expand...
Click to collapse
It probably wouldn't be too difficult, but since we already have some apps and Magisk modules to do this, which worked great on my OP7 Pro, I'd like to get it working like Burt Squirtz said he was able to do. I'm just annoyed that I can't get it to work on my OP9 Pro.
After having tried both AccA and the Battery Charge Limit, unfortunately I must say that none worked for me. I miss do much the smart charging feature from pixel-inspired ROMs I used on my Xiaomi phone.
I appreciate the attempts mentioned above, but does anyone have a working method to automatically stop charging at 80%?
stazz83 said:
After having tried both AccA and the Battery Charge Limit, unfortunately I must say that none worked for me. I miss do much the smart charging feature from pixel-inspired ROMs I used on my Xiaomi phone.
I appreciate the attempts mentioned above, but does anyone have a working method to automatically stop charging at 80%?
Click to expand...
Click to collapse
Definitely following this for that as well. What's good is that OnePlus has an option in the settings to do adaptive charging. I've already had it learn my wake up time and it will not start charging the battery until a little before I wake up. I get a little notification that my phone will not continue charging until a specific time. Very neat!
stazz83 said:
After having tried both AccA and the Battery Charge Limit, unfortunately I must say that none worked for me. I miss do much the smart charging feature from pixel-inspired ROMs I used on my Xiaomi phone.
I appreciate the attempts mentioned above, but does anyone have a working method to automatically stop charging at 80%?
Click to expand...
Click to collapse
same for me, both acca and battery charge limit (playstore) do not stop phone from charging once set limit is reached
bulletbling said:
Definitely following this for that as well. What's good is that OnePlus has an option in the settings to do adaptive charging. I've already had it learn my wake up time and it will not start charging the battery until a little before I wake up. I get a little notification that my phone will not continue charging until a specific time. Very neat!
Click to expand...
Click to collapse
how did this happen for you, and do you mean optimized charging in batt settings? I think it is because I charge my phone at random times that it does not do anything at the moment
thirtythr33 said:
how did this happen for you, and do you mean optimized charging in batt settings? I think it is because I charge my phone at random times that it does not do anything at the moment
Click to expand...
Click to collapse
That is correct. It's Optimized Charging.
Has anyone managed to get on top of this in the meantime? Myself, I'm using the Accubattery's sound alert, but I'd love to stop charging automatically when it reaches the limit.
I think, I fond the reason, but no solution.
I am using all time Tasker to control charging limit. I's doing the same way like Battery Charge Limit and AccA: By copying the file "charging_enabled" into /sys/class/power_supply/battery/ .This was working until OP8pro. Unfortunately, all this apps suddenly have no writing access to this directory. Not even on rootet device.
So if anyone have idea, to make /sys/class/power_supply/battery/ writeable again, please tell.
g
dlareghoe said:
I think, I fond the reason, but no solution.
I am using all time Tasker to control charging limit. I's doing the same way like Battery Charge Limit and AccA: By copying the file "charging_enabled" into /sys/class/power_supply/battery/ .This was working until OP8pro. Unfortunately, all this apps suddenly have no writing access to this directory. Not even on rootet device.
So if anyone have idea, to make /sys/class/power_supply/battery/ writeable again, please tell.
g
Click to expand...
Click to collapse
A temporary workaround for Tasker users is to create a repeating notification once the battery reaches a certain limit. That's what I've done and it does the job for the meantime!
Use /sys/class/oplus_chg/usb/chg_enable, 1, 0 as the config file.
Thanks to B1tWeaver

Question High battery consumption on idle

My phone is usually on idle and not used due to my job. But Im noticing extreme battery consumption even when Im not using it. Never had this issue with other phones. Last night I checked the batter before sleep and it was at 67% at 1 AM, today its 62% at 7 AM so there must be an issue because it should only drain 1 or 2 percents during idle.
In battery settings the top app using the battery is phone idle.
Im on xiaomi.eu 12.5.6 rom but I had the same issue with stop 12.5.3 so I dont think it's because of rom.
I had great battery life with my last phone which was poco x3 nfc with the same settings and apps so it's not because of any third party apps either.
Anyone else experiencing the same problem?
With AOSP ROMs, I even had worst experience when I installed one of the custom kernels because they somehow didn't put the phone into deep doze correctly. But yeah, the idle consumption is quite high - even on stock Kernel.
Currently I use HavocOS and its stock Kernel - and SuperFreeze (from F-Droid store) to freeze most apps right after screen lock. Idle consumption has dropped to 0.1-0.2%/h as a result. I made a thread some days ago regarding this topic... see here.
Thanks. Im gonna try your guide but it's not the most noob friendly guide I've seen
Just Kidding, thanks for your time.
Oh, my thread wasn't meant to be a guide... I did put it in "Question" like you did, but a mod seems to have moved the thread to "General"
My "solution" is only temporary - at least I hope there are still developers out there who value a low idle drain more than fast charging and benchmark numbers...
esszett said:
... and SuperFreeze (from F-Droid store) to freeze ...
Click to expand...
Click to collapse
Sorry for the OT, could it be that the app. is called SuperFreezZ?
Have you noticed any good battery life gains with this app.?
Yeah, sorry, SuperFreezZ: https://f-droid.org/en/packages/superfreeze.tool.android/
For several months I had the problem that from a certain moment, the consumption at idle suddenly increased enormously (from 0.1-0.2 % to 2-3% per hour). Even if I manually forced all apps to stop, In Android's battery info "Android OS" and "Android System" showed up with double-digit percentages. I could only get the phone back to its previous behavior with a restart.
To date, however, it is not clear to me what triggered this. I suspected GCam for a while, then Osmand+, but I couldn't ever confirm that because the problem didn't start whenever I used those programs, just sometimes.
I never found a real solution for this, but SuperFreezZ did.
The best thing I've used for years now is Greenify, its hasn't received an update in more than a year but still works perfectly
Do we need root to use these apps? I remember using greenify before onmy older devices with root but havent used it for a while. Gonna see how much it drops tonight and then try to tweek some things and recheck it tomorrow night.
Weird thing is, I was getting an awesome battery life out of poco x3 nfc, could it be because of the cpu idle? Because that's the only thing that seems different between the 2 devices. (X3 even had an lcd which is supposedly less battery friendly)
Kianush said:
Do we need root to use these apps?
Click to expand...
Click to collapse
Yes.
Kianush said:
I was getting an awesome battery life out of poco x3 nfc
Click to expand...
Click to collapse
Unfortunately, hardly anyone notices this because most users do exactly what the F3 was designed for: Playing games.
I came from a 2.5 years old F1 and it lasts easily longer than the F3 although it has a smaller battery and a LCD screen... The F3 behaves anything but fully developed. These latest high-end SOCs (870, 888) are really powerful, but unfortunately not equally power-efficient. That's the reason why I throttled the CPU and undervolted the GPU. This dropped the active drain from ~8 %/h to <5 %/h on my device and my usecases.
esszett said:
Yes.
Unfortunately, hardly anyone notices this because most users do exactly what the F3 was designed for: Playing games.
I came from a 2.5 years old F1 and it lasts easily longer than the F3 although it has a smaller battery and a LCD screen... The F3 behaves anything but fully developed. These latest high-end SOCs (870, 888) are really powerful, but unfortunately not equally power-efficient. That's the reason why I throttled the CPU and undervolted the GPU. This dropped the active drain from ~8 %/h to <5 %/h on my device and my usecases.
Click to expand...
Click to collapse
Yeah. I used to underclock the cpu on my old phones but I dont know about undervolting. wouldnt it cause issues? I just used 3c toolbox app to set a lower max clock and a lower min clock for cpu cores. I read somewhere that rooting xiaomi.eu rom breaks some functions so I havent rooted it yet. do you have any info on that?
Kianush said:
Yeah. I used to underclock the cpu on my old phones but I dont know about undervolting. wouldnt it cause issues?
Click to expand...
Click to collapse
As long you don't push too hard with undervolting, it works quite well. See attached image (it's not mine, but I have oriented to it).
Kianush said:
I just used 3c toolbox app to set a lower max clock and a lower min clock for cpu cores.
Click to expand...
Click to collapse
I've never heard of it... This seems to be a powerful tool! Nice!
Kianush said:
I read somewhere that rooting xiaomi.eu rom breaks some functions so I havent rooted it yet. do you have any info on that?
Click to expand...
Click to collapse
Konabess doesn't need root, afaik. Extract the boot.img of your ROM and copy it into a folder of your device. Then use Konabess to modify the settings and repack it into a modified boot.img. This file you can flash with TWRP. No guarantee that it works for xiaomi.eu, but it works for AOSP (at least it worked for me).
Kianush said:
My phone is usually on idle and not used due to my job. But Im noticing extreme battery consumption even when Im not using it. Never had this issue with other phones. Last night I checked the batter before sleep and it was at 67% at 1 AM, today its 62% at 7 AM so there must be an issue because it should only drain 1 or 2 percents during idle.
In battery settings the top app using the battery is phone idle.
Im on xiaomi.eu 12.5.6 rom but I had the same issue with stop 12.5.3 so I dont think it's because of rom.
I had great battery life with my last phone which was poco x3 nfc with the same settings and apps so it's not because of any third party apps either.
Anyone else experiencing the same problem?
Click to expand...
Click to collapse
I'm ont he same rom as you and let me explain my experience.
My battery has been insanely good. Even with heavy usage over a period of 4 hours, which included 1.5hrs of SoT and pandora playing though bluetooth all 4 of those hours with dolby and viper enabled. Was at 100 and dropped down to 94%. So It may be an app or setting that you have installed causing problems and draining battery. The only battery saver addition I have installed is Universal GMS doze. Idle time for me It takes me about 5 hours to drop down 1%.
Zaiaku said:
I'm ont he same rom as you and let me explain my experience.
My battery has been insanely good. Even with heavy usage over a period of 4 hours, which included 1.5hrs of SoT and pandora playing though bluetooth all 4 of those hours with dolby and viper enabled. Was at 100 and dropped down to 94%. So It may be an app or setting that you have installed causing problems and draining battery. The only battery saver addition I have installed is Universal GMS doze. Idle time for me It takes me about 5 hours to drop down 1%.
Click to expand...
Click to collapse
Well if there is an app that is causing this, it should be shown in the battery settings. But the only thing that is eating up my battery is phone idle. So it might be a service or something. Im out of options right now unless I find a way to root this rom without facing new problems.... Worst thing with miui is that you cant do things like rooting as easy as other roms.
Btw, would you please tell me the settings and xiaomi.eu version you are on? Im on 12.5.6 stable and using 120hz + vivid color scheme and most of my apps are on blcok background activity except my messaging app. And Im losing battery on phone idle not the screen on time!
Ss below.(dropped from 92 to 82 woh only 30mins screen on time doing nothing but checking xda!) And 7hrs of those 9hrs I was asleep and the phone was on airplane mode + gps off!
You could try BBS or similar apps. Maybe it's an app which prevents the phone to go to deep doze (wakelocks).
BTW: MIUI sucks
Kianush said:
Well if there is an app that is causing this, it should be shown in the battery settings. But the only thing that is eating up my battery is phone idle. So it might be a service or something. Im out of options right now unless I find a way to root this rom without facing new problems.... Worst thing with miui is that you cant do things like rooting as easy as other roms.
Btw, would you please tell me the settings and xiaomi.eu version you are on? Im on 12.5.6 stable and using 120hz + vivid color scheme and most of my apps are on blcok background activity except my messaging app. And Im losing battery on phone idle not the screen on time!
Ss below.(dropped from 92 to 82 woh only 30mins screen on time doing nothing but checking xda!) And 7hrs of those 9hrs I was asleep and the phone was on airplane mode + gps off!
Click to expand...
Click to collapse
I switch my screen refresh rate down to 60hz but since your phone is idle it really shouldn't come into play unless you have always on display or turn screen on for notifications.
Rooting this phone is amazingly easy. Takes like 5mins if that. My Mi 9 lite took longer to root then this phone.
As far as an app draining battery, It more then likely not it since you saying phone idle, which in the past people have said if you phone has problems with signal this can drain a battery. For me this has been a major issue. With AT&T service I would loose double the amount of battery over night (I play pandora through out the night when sleeping). Also if you have apps that are heavy internet usage (unsure where you at but things like facebook and messenger drain tons and yet don't register battery drain on most analytics. And since you using a xiaomi.eu rom I know alot of those bg services are disabled or removed.
Zaiaku said:
I switch my screen refresh rate down to 60hz but since your phone is idle it really shouldn't come into play unless you have always on display or turn screen on for notifications.
Rooting this phone is amazingly easy. Takes like 5mins if that. My Mi 9 lite took longer to root then this phone.
As far as an app draining battery, It more then likely not it since you saying phone idle, which in the past people have said if you phone has problems with signal this can drain a battery. For me this has been a major issue. With AT&T service I would loose double the amount of battery over night (I play pandora through out the night when sleeping). Also if you have apps that are heavy internet usage (unsure where you at but things like facebook and messenger drain tons and yet don't register battery drain on most analytics. And since you using a xiaomi.eu rom I know alot of those bg services are disabled or removed.
Click to expand...
Click to collapse
Yeah thanks for the info. I used to root my devices easily by flashing magisk but it seems they have changed the method, though I found the method on a post on xiaomi.eu website and rooted my device.
Tried to lower cpu frequencies a little and use superfreez app. It seems better now but not as good as what you say...
Gonna play with settings a little bit more and wait for another xiaomi.eu stable update to see if it's a bug on this version.
Kianush said:
Yeah thanks for the info. I used to root my devices easily by flashing magisk but it seems they have changed the method, though I found the method on a post on xiaomi.eu website and rooted my device.
Tried to lower cpu frequencies a little and use superfreez app. It seems better now but not as good as what you say...
Gonna play with settings a little bit more and wait for another xiaomi.eu stable update to see if it's a bug on this version.
Click to expand...
Click to collapse
Someone made a auto script for it, but you will have to reflash rom and factory reset data. You really shouldn't have to change cpu feqs. Also uploading a screenshot of my last 2 hours. I know its only 21min of SoT but also 2 hours off charger but playing pandora as well as some other app usage but still at 100%
esszett said:
As long you don't push too hard with undervolting, it works quite well. See attached image (it's not mine, but I have oriented to it).
I've never heard of it... This seems to be a powerful tool! Nice!
Konabess doesn't need root, afaik. Extract the boot.img of your ROM and copy it into a folder of your device. Then use Konabess to modify the settings and repack it into a modified boot.img. This file you can flash with TWRP. No guarantee that it works for xiaomi.eu, but it works for AOSP (at least it worked for me).
Click to expand...
Click to collapse
Konabess without root won't start, any idea?
thanks
tojdvd said:
Konabess without root won't start, any idea?
Click to expand...
Click to collapse
Ah, ok... I thought you could load a separate boot.img - my fault, sorry!
Then you've to have root for Konabess...
Just to show what's possible with HavocOS 4.9 and 12.5.6 EEA firmware, see atached screenshot... It's with the stock kernel of HavocOS, but with the modifications I did mention here.
Running for almost 2 days
~8 hrs SOT (2 hrs of which with 120 Hz and 2 hrs of which with 100 % brightness, otherwise 60 Hz and brightness between 25 and 50 %) and still 50 % battery left.

Themes / Apps / Mods [MOD/magisk/root] Set charging limit to 80/85/90/95% v2

After some readings on: https://forum.xda-developers.com/t/limit-charge.4355851/
and https://forum.xda-developers.com/t/mod-magisk-root-set-charging-limit-to-90.4363477/
( Credits to @rickysidhu_ and @foobar66 )
There is a thing I found and tested:
"charge_stop_level" must be used together with "charge_start_level"
Spoiler: Details
If set start @40 / stop @60, the phone will begin charging when (and only when) the battery drops to 40%, and stops charging @ 60%.
(it defines a range, and the first time the user hit the range boundary activates this range function)
If set stop @90 without setting a start, the phone will refuse the 2nd time charging until the battery drops to default 0 (or the battery service/phone has been restarted)
(This explained many "phone not charging" reports in the above links posts)
I like @foobar66's magisk mod solution. It is simple and safe.
It has only 1 line of working script in the zip.
So I "clone" it with some different values (added the fix, so 2 lines of script code in each zip now, that's all it does)
These are for the lazy people who don't want to deal with advanced settings, and who want a 10-second trouble-free simple solution for battery health.
The 4 clones:
P6n_charginglimit_95.zip (charging limit to 95%, it should give you an extra ~30% battery life span in lab-tested theory)
P6n_charginglimit_90.zip (charging to 90%, an extra ~60% battery life span)
P6n_charginglimit_85.zip (charging to 85%, double the battery life span, recommended for joe and johns)
P6n_charginglimit_80.zip (charging to 80%, should give more than double the battery life span)
Those numbers are the best estimates from other battery research papers, no guarantee.
To install, pick the one you want and flash it in Magisk.
To uninstall, simply disable or remove it in Magisk.
A12.1 tested. It should work on A13.
Edit: A13 is also confirmed working.
Reply problems if you find any.
I use advanced charging controller, I stop charging at 81% and I can regulate voltage as well. Temperature triggers etc it's great.
How does it increase battery life by 30%?
Or you mean battery health ?
I use ACC plus Tasker to keep the battery entering idle mode at around 50% while plugged. I got my pixel 6 last November, now the battery gets 82 cycles so far.
ChongoDroid said:
I use advanced charging controller, I stop charging at 81% and I can regulate voltage as well. Temperature triggers etc it's great.
Click to expand...
Click to collapse
bush911 said:
I use ACC plus Tasker to keep the battery entering idle mode at around 50% while plugged. I got my pixel 6 last November, now the battery gets 82 cycles so far.
Click to expand...
Click to collapse
The thing is, ACC monitors/controls too many components in the system that I don't fully get, and I am not sure if it conflicts with built-in "smart charging" or other circuit controllers or not, and have to combine a Magisk backend module and a root-access frontend APP to make it work with so many details settings to setup....... It is just......too heavy?
(or I am too old to tinkering those things.....my sad middle-age life)
These .zips are the "10-second solution" for lazy folks.
It does only 1 thing, It is transparent and super snappy (only 2 lines of script, no binary), and it can hardly go wrong.....it just works.
Paz9 said:
How does it increase battery life by 30%?
Or you mean battery health ?
Click to expand...
Click to collapse
You are right Shakespeare, "life span" to be precise, sorry for my English ahahahah.
bush911 said:
I use ACC plus Tasker to keep the battery entering idle mode at around 50% while plugged. I got my pixel 6 last November, now the battery gets 82 cycles so far.
Click to expand...
Click to collapse
Would you like to share how (ACC + Tasker. Tasker project, everything)?
Thanks
E!ad said:
Would you like to share how (ACC + Tasker. Tasker project, everything)?
Thanks
Click to expand...
Click to collapse
Yes, this might be device dependent. It is better to choose and set proper charging switch which supports battery idle mode.
Latest AcC module must be flashed
kylechen said:
The thing is, ACC monitors/controls too many components in the system that I don't fully get, and I am not sure if it conflicts with built-in "smart charging" or other circuit controllers or not, and have to combine a Magisk backend module and a root-access frontend APP to make it work with so many details settings to setup....... It is just......too heavy?
(or I am too old to tinkering those things.....my sad middle-age life)
These .zips are the "10-second solution" for lazy folks.
It does only 1 thing, It is transparent and super snappy (only 2 lines of script, no binary), and it can hardly go wrong.....it just works.
You are right Shakespeare, "life span" to be precise, sorry for my English ahahahah.
Click to expand...
Click to collapse
It doesn't interfere with the built in stuff and you don't need magisk module anymore. It takes 20.9mb on system so it's not heavy, I also like being able to adjust on the fly (have it set to 70% for long home use and 85% for out and about)
ChongoDroid said:
It doesn't interfere with the built in stuff and you don't need magisk module anymore. It takes 20.9mb on system so it's not heavy, I also like being able to adjust on the fly (have it set to 70% for long home use and 85% for out and about)
Click to expand...
Click to collapse
Are you referring to the Tasker implementation or ACC?
Zilla0617 said:
Are you referring to the Tasker implementation or ACC?
Click to expand...
Click to collapse
Acc
Yay finally a solution that works. Pixel 6 here, A13 Stock
Thanks.
ChongoDroid said:
Acc
Click to expand...
Click to collapse
Could you share your config file? What phone and is are you using? Thanks
Zilla0617 said:
Could you share your config file? What phone and is are you using? Thanks
Click to expand...
Click to collapse
Pixel 6 pro stop charging at 82 and start at 76 that's all I used
ChongoDroid said:
Pixel 6 pro stop charging at 82 and start at 76 that's all I used
Click to expand...
Click to collapse
So when I setup acc stopping at 80% on Android 13 and its place on pixel stand 2, the charging oscillates on/off. It would charge for few minutes then stop and charge for few mins and stop. Are you experiencing this? This behavior did not occur with Android 12
Zilla0617 said:
So when I setup acc stopping at 80% on Android 13 and its place on pixel stand 2, the charging oscillates on/off. It would charge for few minutes then stop and charge for few mins and stop. Are you experiencing this? This behavior did not occur with Android 12
Click to expand...
Click to collapse
Oh weird I get the osculation on car charger but it was always random. It won't even charge on 13.
Change the switch to 0 should have it working I don't know if that causes the switch enough
ChongoDroid said:
Oh weird I get the osculation on car charger but it was always random. It won't even charge on 13.
Change the switch to 0 should have it working I don't know if that causes the switch enough
Click to expand...
Click to collapse
Hmmm I don't use the front end app. Maybe I should try it and see if the behavior changes. Which version of the app are you using?
Zilla0617 said:
Hmmm I don't use the front end app. Maybe I should try it and see if the behavior changes. Which version of the app are you using?
Click to expand...
Click to collapse
1.0.35
kylechen said:
The thing is, ACC monitors/controls too many components in the system that I don't fully get, and I am not sure if it conflicts with built-in "smart charging" or other circuit controllers or not, and have to combine a Magisk backend module and a root-access frontend APP to make it work with so many details settings to setup....... It is just......too heavy?
(or I am too old to tinkering those things.....my sad middle-age life)
These .zips are the "10-second solution" for lazy folks.
It does only 1 thing, It is transparent and super snappy (only 2 lines of script, no binary), and it can hardly go wrong.....it just works.
You are right Shakespeare, "life span" to be precise, sorry for my English ahahahah.
Click to expand...
Click to collapse
I strongly agree, just not worth having to deal with acc, getting idle mode to work, debugging, getting it to work again and hoping it still works. If I get the time to do so might write a module that integrates a slider in settings or as a quick setting to set to what percentage it should charge and executing those lines of code with that percentage.
kylechen said:
P6n_charginglimit_80.zip (charging to 80%, should give more than double the battery life span)
Click to expand...
Click to collapse
I peeked inside this one (as it's the one I'm successfully using), and noticed the following:
echo 79 > /sys/devices/platform/google,charger/charge_start_level
echo 80 > /sys/devices/platform/google,charger/charge_stop_level
Click to expand...
Click to collapse
I get the "80" for the charge_stop_level, but I don't understand why "79" is the charge_start_level value? (But I'm new at this, so..forgive my ignorance.)

Categories

Resources