Possible to automatically disable fast charging at night? - Tasker Tips & Tricks

Since I don't need fast charging at night while sleeping, I'm wondering if it'd be possible to automatically disable fast-charging between certain hours, and then re-enabling it in the morning. Would this be possible (and without root)? TIA

Coldblackice said:
Since I don't need fast charging at night while sleeping, I'm wondering if it'd be possible to automatically disable fast-charging between certain hours, and then re-enabling it in the morning. Would this be possible (and without root)? TIA
Click to expand...
Click to collapse
Search for advanced charging controller.
It requires Magisk and, for some functions, kernel support.
Enviado de meu HD1903 usando o Tapatalk

Coldblackice said:
Since I don't need fast charging at night while sleeping, I'm wondering if it'd be possible to automatically disable fast-charging between certain hours, and then re-enabling it in the morning. Would this be possible (and without root)? TIA
Click to expand...
Click to collapse
Yes, it's possible in Tasker, w/o root. See attached Task. I run this at certain times.
You'll need to use Custom Setting, so this means running the appropriate permissions via ADB.
View attachment Fast_Charging.tsk.xml
Sent from my Note8

Related

Extended standby app list

Trying to understand the app exclusion list. If I turn on extended standby, my understanding is no apps can communicate when the screen is off. Does putting an app on the list still allow it to do so? Ie would I still get live hangouts messages?
Yes if you put apps in the list those apps are still allowed to use data with the screen off.
Skickat från min LG-V500 via Tapatalk
Thanks. What about queue background data? Is there any way to still get push notifications?
I'm actually finding extended standby to cause issues because the apps that can't communicate just keep trying and keep the phone awake
Bump
km8j said:
I'm actually finding extended standby to cause issues because the apps that can't communicate just keep trying and keep the phone awake
Click to expand...
Click to collapse
You need extended standby to be on though if you want to use STAMINA mode. They are basically one and the same. If you notice when you have ES on and turn it off, it turns off the STAMINA mode switch too.
RockStar2005

Naptime, Greenify, Aggressive Doze or none?

Hi, what are you using to increase your battery life? I have never used such an apps (only doze of course) but now with Oreo I have quite an idle battery drain so wanted to try something.
What do you recommend and what do you use?
Naptime? Naptime with franco kernel? Grenify? Naptime+Grenify? Naptime+Grenify+aggressive doze? Since some time Greenify has similar options to Naptime but what I read naptime works better? Is there any advantage of using paid versions?
None, those apps are useless.
If your ROM has it, use Privacy Guard. That's all.
I have also replied to you at the other topic that you were asking something similar.
I am using Doze+Boeffla kernel+Akt profiles+Naptime.
Maybe it's an overkill, but it allows me to have almost 0% consumption during night.
Sent from my ONEPLUS A3003 using Tapatalk
do you have aggressive doze on?
What AKT profiles are you using and how? You just install their APK and select what you want? And of course for that you need root, right?
I've literally tested on Oreo using without any that kind of apps, vs using it, and actually, i found out that it didn't really do any noticable difference. So on oreo i feel its quite unneccessary.
jakobWango said:
I've literally tested on Oreo using without any that kind of apps, vs using it, and actually, i found out that it didn't really do any noticable difference. So on oreo i feel its quite unneccessary.
Click to expand...
Click to collapse
I would use a wakeblocker. NOS has one built in.
https://github.com/MrLast98/scripts/blob/master/Wakelocks.txt
Those are the wakelocks I block. It gives me about 5 hours SOT vs 3.5. Don't have to charge for 2-3 days, granted I use my phone much less than other people.
ZVNexus said:
I would use a wakeblocker. NOS has one built in.
https://github.com/MrLast98/scripts/blob/master/Wakelocks.txt
Those are the wakelocks I block. It gives me about 5 hours SOT vs 3.5. Don't have to charge for 2-3 days, granted I use my phone much less than other people.
Click to expand...
Click to collapse
Do you mean by installing a wake blocker from playstore ? Or whats that txt file ? xD
jakobWango said:
Do you mean by installing a wake blocker from playstore ? Or whats that txt file ? xD
Click to expand...
Click to collapse
I meant the wakeblocker that is built in with Nitrogen OS 8.1. Thats a list of wakelocks to block.
ZVNexus said:
I meant the wakeblocker that is built in with Nitrogen OS 8.1. Thats a list of wakelocks to block.
Click to expand...
Click to collapse
Oh. Well i use OOS so it's not really workable then.
Anyway, i get 5.5h SOT with stock OOS anyway also so i don't really feel the need of any bogus greenfify, naptime
RASTAVIPER said:
I have also replied to you at the other topic that you were asking something similar.
I am using Doze+Boeffla kernel+Akt profiles+Naptime.
Maybe it's an overkill, but it allows me to have almost 0% consumption during night.
Sent from my ONEPLUS A3003 using Tapatalk
Click to expand...
Click to collapse
Could you maybe share with us what settings you use ? What governors, tcp settings, scheduler .. etc
Thanks in advance !
talpes said:
Could you maybe share with us what settings you use ? What governors, tcp settings, scheduler .. etc
Thanks in advance !
Click to expand...
Click to collapse
Nothing special.
All defaults.
At AKT the extreme battery profile is on.
Sent from my ONEPLUS A3003 using Tapatalk
I use ForceDoze. The only reason I need it is that it works around the Mobile Radio Active bug. If you do not experience this bug, you don't need these apps.
I use L-Speed's aggresive doze + AKT Nameless Battery profile
7-8h SOT
for the AKT profiles do you need to have root? As I see it works even on stock kernel.
My SOT is terrible, from morning til evening I can get it fine, but I sometimes I need my phone for 2 days without charging and then it is a problem. My idle drain is quite high.. and it is mostly from the system or something.
terragady said:
for the AKT profiles do you need to have root? As I see it works even on stock kernel.
My SOT is terrible, from morning til evening I can get it fine, but I sometimes I need my phone for 2 days without charging and then it is a problem. My idle drain is quite high.. and it is mostly from the system or something.
Click to expand...
Click to collapse
Yes u need root.for AKT.profiles.
And it's not an easy task to spend 2 days.without charging.
Get a Power Bank in this case.
Sent from my ONEPLUS A3003 using Tapatalk
I have a problem with wifi or overall internet connection. You can see in the graph that when I had wifi off my idle usage was almost zero, and the next night it dropped 10%. I don't really have weird wakelocks or apps running, it's phone idle, android system and android OS
Sent from my OnePlus 3T using XDA Labs
terragady said:
for the AKT profiles do you need to have root? As I see it works even on stock kernel.
My SOT is terrible, from morning til evening I can get it fine, but I sometimes I need my phone for 2 days without charging and then it is a problem. My idle drain is quite high.. and it is mostly from the system or something.
Click to expand...
Click to collapse
If you don't use battery hungry apps like snapchat or whatsapp you should clean flash your rom
phoberus said:
If you don't use battery hungry apps like snapchat or whatsapp you should clean flash your rom
Click to expand...
Click to collapse
No the only social app I have is messenger lite, no snap chat, Facebook and other stuff like this. Mostly notifications comes from Gmail only.
I did clean flash once already, same stuff
Sent from my OnePlus 3T using XDA Labs
Disable "WiFi scanning on all the time" under WiFi settings. Your WiFi does not shut down in idle Mode.
scanning is OFF but wifi during sleep is ON, without this I will not get notifications after some idle time during the day

How to enable flash light when battery is at 15% or lower??

Hi, does someone know how i can enable flash light when battery is 15% or lower? I have a sm-n960f
TheKingOfQueens said:
Hi, does someone know how i can enable flash light when battery is 15% or lower? I have a sm-n960f
Click to expand...
Click to collapse
Maybe try a third party app from the play store. I think the built in one is hard fixed not to allow flashlight below 15% no option to enable it
I thought there would be maybe something like a root solution cause i have root, but couldnt find a solution til now

Opinions about battery idle

Good Day XDA Friends!, I would like to take opinions from you guys to a feature that may exist without us knowing (not sure).
As this post indicates(https://android.stackexchange.com/q...tery-but-use-connected-power-to-run-the-phone) Redmi note 8 supports BATTERY IDLE CHARGING which means using the phone plugged and while using it, it uses the plug itself to sustain charge and not the battery itself. This may prolong the battery life by lessen the battery cycles like laptops that have conservative modes. With that I would like to gather some insight about this feature if it will have some problems with the battery especially when doing something that is intensive. Thanks for the reply!
Great info !
i hope custom rom makers implement this feature in their roms ...
loopypalm said:
Great info !
i hope custom rom makers implement this feature in their roms ...
Click to expand...
Click to collapse
I think it's a kernel side not in custom rom. It works in every custom rom with specific kernel that supports idle charging
how to enable it?
nneko904 said:
how to enable it?
Click to expand...
Click to collapse
I use ACCA Advanced charging controller app, there is an option within that to enable the OP mentioned feature. But of course, the Kernel has to support it, for it to work. But if your ROM does not support it, it is just a question of flashing a custom kernel.
ACCA can be downloaded from here or installed from the Magisk repo, although the Magisk repo version only has the Terminal to manage configuration changes.
HatchetEgg said:
I use ACCA Advanced charging controller app, there is an option within that to enable the OP mentioned feature. But of course, the Kernel has to support it, for it to work. But if your ROM does not support it, it is just a question of flashing a custom kernel.
ACCA can be downloaded from here or installed from the Magisk repo, although the Magisk repo version only has the Terminal to manage configuration changes.
Click to expand...
Click to collapse
thank you, could you recommend custom kernel to use?
nneko904 said:
thank you, could you recommend custom kernel to use?
Click to expand...
Click to collapse
I personally use Universal although it's implementation of Battery idle has only just been added, unfortunately I am unable to provide a direct link to it, but it can be found in the RN8 telegram group.
HatchetEgg said:
I personally use Universal although it's implementation of Battery idle has only just been added, unfortunately I am unable to provide a direct link to it, but it can be found in the RN8 telegram group.
Click to expand...
Click to collapse
i tried the kernel but it doesnt go well... phone starting took too much time and that sudden brightness after booting (im using bliss)
is there another one you could recommend?
nneko904 said:
i tried the kernel but it doesnt go well... phone starting took too much time and that sudden brightness after booting (im using bliss)
is there another one you could recommend?
Click to expand...
Click to collapse
about the 1st screenshot, is that an app to manage the kernel ?
does it came with the kernel zip ?
loopypalm said:
about the 1st screenshot, is that an app to manage the kernel ?
does it came with the kernel zip ?
Click to expand...
Click to collapse
It is a separate app that allows you to tinker with other charging techniques. For example you can specify a cooldown rate when the battery is getting to hot, it allows you to use Battery idle providing the kernel supports it, plus more. The app is called Advanced Charging Control App AccA for short there is also a Magisk module in the repository for ACC but that is all command line. But it you install the app it does install that module as the app is just the GUI for the module.
---------- Post added at 11:32 AM ---------- Previous post was at 11:26 AM ----------
nneko904 said:
i tried the kernel but it doesnt go well... phone starting took too much time and that sudden brightness after booting (im using bliss)
is there another one you could recommend?
Click to expand...
Click to collapse
Sorry that's my fault, you have to make sure your device is plugged in inorder to do the test properly otherwise it will fail.
HatchetEgg said:
Sorry that's my fault, you have to make sure your device is plugged in inorder to do the test properly otherwise it will fail.
Click to expand...
Click to collapse
there is built in smart charging in the rom i used, do i also need to disable it to make acca work properly?
could you kindly screenshot your acca settings, i really confused and dont want to mess up my device
nneko904 said:
there is built in smart charging in the rom i used, do i also need to disable it to make acca work properly?
could you kindly screenshot your acca settings, i really confused and dont want to mess up my device
Click to expand...
Click to collapse
Yes I would advise to disable any smart charging that's built into the ROM.
The developers do mention to check out the battery university link before using it. But the app does have its own profiles built in which can be accessed on the middle button, generally the the default profile is good enouth.
I could share my own personal settings but they definitely wouldn't be ideal for everyone, especially since I manually limited the charging current to 800ma. Which would mean it would take longer to charge the battery to the charge limit.
HatchetEgg said:
Yes I would advise to disable any smart charging that's built into the ROM.
The developers do mention to check out the battery university link before using it. But the app does have its own profiles built in which can be accessed on the middle button, generally the the default profile is good enouth.
I could share my own personal settings but they definitely wouldn't be ideal for everyone, especially since I manually limited the charging current to 800ma. Which would mean it would take longer to charge the battery to the charge limit.
Click to expand...
Click to collapse
please share your personal settings :good:
nneko904 said:
please share your personal settings :good:
Click to expand...
Click to collapse
Please see the attached screenshot for my person current settings.
HatchetEgg said:
Please see the attached screenshot for my person current settings.
Click to expand...
Click to collapse
works well and i love it :laugh:
nneko904 said:
works well and i love it :laugh:
Click to expand...
Click to collapse
Do you face issues with battery idle mode?
Areption said:
Do you face issues with battery idle mode?
Click to expand...
Click to collapse
what kind of issues? no one has ever reported any issues regarding battery idle mode in supported devices, at least i never encountered it both here and in telegram group
probably issues will arise if the charger and cable is not compatible
im using it intensely these days, playing mmorpg while multi tasking watching youtube or browsing
what i notice is phone's temperature actually does not as hot when using the battery and if you afraid if the power might be too high you could just adjust it using acca module although it was unnecessary
you could just try, do at your own risk :laugh:
for me having phone running like laptop is really useful
nneko904 said:
what kind of issues? no one has ever reported any issues regarding battery idle mode in supported devices, at least i never encountered it both here and in telegram group
probably issues will arise if the charger and cable is not compatible
im using it intensely these days, playing mmorpg while multi tasking watching youtube or browsing
what i notice is phone's temperature actually does not as hot when using the battery and if you afraid if the power might be too high you could just adjust it using acca module although it was unnecessary
you could just try, do at your own risk :laugh:
for me having phone running like laptop is really useful
Click to expand...
Click to collapse
I mean, when you disable battery idle, it keeps it on...
Areption said:
I mean, when you disable battery idle, it keeps it on...
Click to expand...
Click to collapse
i dont understand what you mean
nneko904 said:
i dont understand what you mean
Click to expand...
Click to collapse
Ummm... Do you know what battery idle mode is?

Limit Battey Charge % Android 11

Anyone found a consistent way to limit battery charge % on Android 11? The custom settings I used with Battery Charge Limit app on 10 work intermittently on 11. Often times I'd wake up to 100% charge.
Currently I'm using Advanced Charging Controller magisk module with it's accompanying AccA app but often AccA gets killed in the background even after not optimizing it in battery optimization. The only workaround I've found is to create a macro that opens AccA every time I plug in the charger. With that step it's consistent but I'd like to find something not so hacky.
I've been running A11 for about a week and did not encounter any issues with Battery Charge Limit. Maybe make sure that it's not battery optimized? I have it "not optimized" because I'm paranoid about it, rather than having direct problems.
jljtgr said:
I've been running A11 for about a week and did not encounter any issues with Battery Charge Limit. Maybe make sure that it's not battery optimized? I have it "not optimized" because I'm paranoid about it, rather than having direct problems.
Click to expand...
Click to collapse
I made sure battery charge limit wasn't optimized. You're using the same custom setting from android 10? Maybe I'll try it again
This the settings you have?
Path Data: /sys/class/power_supply/charger/charge_disable
Enable Value: 0
Disabled Value: 1
hawkswind1 said:
I made sure battery charge limit wasn't optimized. You're using the same custom setting from android 10? Maybe I'll try it again
Click to expand...
Click to collapse
I didn't change anything at all... and honestly with all of the other A11 problems I've been having... I didn't even think to check that it was working. It just has been. I also double-checked with AccuBattery and the history never shows above my limit.
This is my control file settings as seen on the main screen:
Code:
/sys/class/power_supply/charger/charge_disable, 0, 1
jljtgr said:
I didn't change anything at all... and honestly with all of the other A11 problems I've been having... I didn't even think to check that it was working. It just has been. I also double-checked with AccuBattery and the history never shows above my limit.
This is my control file settings as seen on the main screen:
Code:
/sys/class/power_supply/charger/charge_disable, 0, 1
Click to expand...
Click to collapse
I think that's the custom setting probably restored from your Google backup. Same one I was using. I'm gonna try it again though, thanks
hawkswind1 said:
Anyone found a consistent way to limit battery charge % on Android 11? The custom settings I used with Battery Charge Limit app on 10 work intermittently on 11. Often times I'd wake up to 100% charge. Currently I'm using Advanced Charging Controller magisk module with it's accompanying AccA app but often AccA gets killed in the background even after not optimizing it in battery optimization. The only workaround I've found is to create a macro that opens AccA every time I plug in the charger. With that step it's consistent but I'd like to find something not so hacky.
Click to expand...
Click to collapse
Have you tried Accubattery? Along with charge limiting it has other useful features, including reporting battery capacity vs. new (under health).
v12xke said:
Have you tried Accubattery? Along with charge limiting it has other useful features, including reporting battery capacity vs. new (under health).
Click to expand...
Click to collapse
Accubattery is fine and all for reporting and giving an idea of where you want to stop charging... but it has no ability to limit charging. The only thing it can do is nag you to take the phone off the charger. This thread is about root applications actually blocking the phone from charging past a certain level without making the user do anything or even notifying the user about what's being done.
I realize this is a couple of months old. but I just got a new OnePlus 8T, now rooted, and I'm trying to use Battery Charge Limit on it. I can't quite figure out the settings to have it work consistently. Let's say the phone is already at 100% when I plug it in. Battery Charge Limit starts, but then it flip-flops between Charging and Not Charging, starting and restarting. The phone woke me up last night because it was making a ding every time Battery Charge Limit flipped between charging and not charging. One would think that if the phone was at 100% Battery Charge Limit would turn off charging and let it drop down to my 85% limit and then back up to 91%, but never got above 91%. Thoughts? Thanks.
rcbjr2 said:
I realize this is a couple of months old. but I just got a new OnePlus 8T, now rooted, and I'm trying to use Battery Charge Limit on it. I can't quite figure out the settings to have it work consistently. Let's say the phone is already at 100% when I plug it in. Battery Charge Limit starts, but then it flip-flops between Charging and Not Charging, starting and restarting. The phone woke me up last night because it was making a ding every time Battery Charge Limit flipped between charging and not charging. One would think that if the phone was at 100% Battery Charge Limit would turn off charging and let it drop down to my 85% limit and then back up to 91%, but never got above 91%. Thoughts? Thanks.
Click to expand...
Click to collapse
It's possible it's not configured correctly for your phone. You can also just disable that notification channel, since mostly it's just annoying. It constantly fliping might mean that there's more than one control file for your phone type and it's using an ineffectual one that the OS is overriding immediately. For example, the default one it detects for Pixel 4's is not the one it should use.
jljtgr said:
It's possible it's not configured correctly for your phone. You can also just disable that notification channel, since mostly it's just annoying. It constantly fliping might mean that there's more than one control file for your phone type and it's using an ineffectual one that the OS is overriding immediately. For example, the default one it detects for Pixel 4's is not the one it should use.
Click to expand...
Click to collapse
Thanks for the reply. The problem is that I use the notification to trigger Tasker profiles, so I was hoping to figure out a way to get it to stop flipping back and forth while also retaining the notification. I think it's just the standard control file since it's a OnePlus phone, but I'm not sure I can figure out otherwise. When I first start using BCL, I found the control file and was able to manipulate it with a SQL editor and Shell commands in Tasker, but I haven't poked around the OnePlus 8T that much yet.
Just as a PSA, I think Adaptive Charging from the January update can conflict with this. On days where I set a morning alarm, I found that my battery was more full than it should be. I suspect that Adaptive Charging does something that Battery Charge Limit cannot block. I won't know for a few days if turning this off in settings fixes things 100% or the January update just really screws with this.
Battery Charge Limit settings for pixel 3
Hi all, I like the app, Battery Charge Limit (root required), but was wondering how to set the control file. I works fine with Xperia (with/without Lineage), but doesn't work with Pixel 3 stock firmware (Android 10). And finally found how to...
forum.xda-developers.com
Well, as a root method it does seem to work. Depending on your taste, it might be cleaner than an app toggling a different variable. Of course you need an app to set the file back to 100 when you want it. Some Tasker widgets work for my purposes... could probably make it a QuickSettings toggle in the shade, actually.
Bottom of that thread, I was wondering specifically if there might be way to force an unrooted device to think it met one of these conditions, so it only charges to 80%.
Specific post link:
Battery Charge Limit settings for pixel 3
Hi all, I like the app, Battery Charge Limit (root required), but was wondering how to set the control file. I works fine with Xperia (with/without Lineage), but doesn't work with Pixel 3 stock firmware (Android 10). And finally found how to...
forum.xda-developers.com
i.e.
... your phone automatically limits charging to about 80% under certain conditions:
Continuous charging under high battery drain conditions, like game play.
Continuous charging for four days or more.
I've done very little research on this, but I expect the ways to fool the phone into thinking those things are happening is even more complicated than using that root file control. Meaning also requiring root but manipulating other control files.
I suppose you could have a case and a ribbon USBC connector that fools the charging logic into thinking it is constantly connected to a hardware charger even though it's still at a net negative power. After 4 days of having the case on, it might work. I don't know why anyone would have already built something like that, however.
I would root my phone but, as my daily driver, I need things like banking apps to work. They (at least some) detect rooted phones and refuse to load as a security measure (which is probably a good thing) :-(
Banking apps are usually just a frontend to their website used API. They have no problem with you using a browser on a rooted phone or Linux PC, etc. Any app that stores sensitive data on your phone and relies 100% on the filesystem being locked down was created wrong and lazily. The only thing about banking apps that might be legitimate is when things like unique CC info is stored for NFC and using a TPM can't be assured. Most banking apps, however, do not store anything sensitive on your phone aside from a login token which all websites also do. (it's called a cookie)
My personal preference is that no app is better for me than being able to root my phone. I don't play mobile games that want to keep you from cheating and I don't even care about Google Pay, which I'm not sure has legitimate need to block root either... they just do it to keep banks happy, which as I suggested, I think they're full of BS.
The only thing more BS than this no-root nonsense from app companies is when carriers do it by locking bootloaders. I try to re-use my phones for as long as possible and without the ability to limit battery charge, the batteries swell and die quickly, every time. It's good news that Google added code where phones plugged in constantly will limit charge automatically... but I doubt there is a way to trick it from the outside. (without root)
Hmmm. Maybe lazy programming, but I'm not ready to change my Bank so I can root my phone
Back to the topic... I don't think I'm ready to trust the /sys/devices/platform/soc/soc:google,charger/charge_stop_level method. Several times I found my phone at low battery and not pulling any current from the USB port, but not losing charge either. It had put itself into a stalemate where it was stuck below 10% for hours. Resetting the value from 60 to 100 allowed charging again. The battery charge limit app never really caused this. So I guess I'm going back to the full app method.
jljtgr said:
Back to the topic... I don't think I'm ready to trust the /sys/devices/platform/soc/soc:google,charger/charge_stop_level method. Several times I found my phone at low battery and not pulling any current from the USB port, but not losing charge either. It had put itself into a stalemate where it was stuck below 10% for hours. Resetting the value from 60 to 100 allowed charging again. The battery charge limit app never really caused this. So I guess I'm going back to the full app method.
Click to expand...
Click to collapse
I would like to definitely solve this problem I have been struggling with for years. What did you do, can you please help me? It seems extremely similar to what you wrote here.
I have been using battery charge limit on my Xiaomi Mi Mix (1st model) since android 7.1 (lineageos) (and I might have messed with a couple files, not sure, can't remember). When updating to android 9 (lineageos) couple years ago I started having the problem you described. Also I notice sometimes I plug the phone at safe levels such as 35% or 60% and it doesn't charge same thing. Also it only charges with certain chargers and not others.
Earlier today it was 11% battery, could not boot android, didn't charge. I got the idea for the first time to try booting in TWRP (on+volume up buttons) and it immediately started charging at full speed. So there's obviously nothing wrong in the hardware, it's software or just config.
I would like to definitely solve this problem, but I don't understand exactly what you did on your side to fix it. Please reply or message me if you have any suggestion Thank you!

Categories

Resources