Question Working Battery Charge Limit / AccA - Google Pixel 7a

Hi there,
i've been using the app "battery charge limit" on my htc u11 for years without any issues.
Now i've switched to P7a and the app doesn't work. If the battery reaches the set limit, it doesn't stop charging.
Same with AccA. I use the CalyxOS Rom with MicroG.
Any Ideas?

Probably a dumb question, but are you rooted? AccA is a frontend for the acc Magisk module.

yes root with magisk

BunkerBert said:
yes root with magisk
Click to expand...
Click to collapse
And Acca did ask if it should install the module, right? And it says "ACC Daemon is Running" at the top?
Maybe a kernel issue then. I only ever experienced issues with battery idle (drawing power directly from plug) with some kernels, everything else worked usually.

yes daemon is Running, but it seems to stop randomly
battery optimizing for acca / battery charge limit is off
edit: Battery Charge Limit App works now. Had to set the correct path to the control/systemfile ->
Pixel 7a:
/sys/devices/platform/google,charger/charge_stop_level
Enable Value: 100
Disable Value: 5

Related

Charging battery

Hi since i install diferent rom 8.1 my battery stop charging at 90% i am actually on aicp 8.1, but when i return on nougat my battery charge at 100%
I don't know why
I cant say nothing specific because i havent used that ROM, but in Magisk Manager is Module called Magisk Charging Switch that stops charging at 90% default or at your desired % to save battery lifespan. Maybe its implemented in ROM (if you arent using this module) and maybe its just a simple bug.
RootedCore said:
I cant say nothing specific because i havent used that ROM, but in Magisk Manager is Module called Magisk Charging Switch that stops charging at 90% default or at your desired % to save battery lifespan. Maybe its implemented in ROM (if you arent using this module) and maybe its just a simple bug.
Click to expand...
Click to collapse
Yes i have installed this module, i'll uninstall it to see if it's the cause
Soo problem is fixed?
RootedCore said:
Soo problem is fixed?
Click to expand...
Click to collapse
Yeah it was the magisk module

battery idle mode?(bypass charging)

Is there anyway way to get this feature
I think it should be a default feature in android in general
The asus rog phone got it officially as "bypass charging" in a new update
In a nutshell the feature allows the phone to use power directly from the charger bypassing the battery altogether this is especially good for gamers and long sessions because u can use the phone without wasting even a fraction of battery life cycle
It can extend battery life a great deal.
After some searching I found out it can be done with a magisk module called advanced charging controller
Any chance we can implement this in a flashable zip or in a rom without the need for rooting?
It is certainly possible since there is kernels that support this for some devices and since it was implemented on the asus rog phone 3 by a software update
.. it's explained in detail here https://android.stackexchange.com/q...tery-but-use-connected-power-to-run-the-phone
This could be a very interesting feature.
For exemple I drive all day long with android auto and this could be a real life saver for the battery.
Zaboon26 said:
This could be a very interesting feature.
For exemple I drive all day long with android auto and this could be a real life saver for the battery.
Click to expand...
Click to collapse
True
eddie1 said:
After some searching I found out it can be done with a magisk module called advanced charging controller[/url]
Click to expand...
Click to collapse
Battery idle mode needs kernel support to be possible, and this phone's kernel does not support it--not on stock (global), and not on Xiaomi.eu. ACC cannot turn on something that isn't available. And there are no third party kernels for this phone on this site. The closest thing you can do is get a low wattage charger that can only supply roughly the same amount of current the phone is using. Charging from a laptop's USB port might be suitable. This obviously does not require root, but will slowly charge or discharge the battery. The effect will be almost the same as battery idle mode, except that you may still end up charging the battery a bit while the phone is warm, which is not ideal. It should still be better than charging at high current as you would with the OEM charger and cable.
If you charge slowly as recommended above, ACC can be complementary. ACC can stop charging when your battery reaches a certain percent, so can operate the battery in a less stressful region, such as 60-80%.
fenstre said:
Battery idle mode needs kernel support to be possible, and this phone's kernel does not support it--not on stock (global), and not on Xiaomi.eu. ACC cannot turn on something that isn't available. And there are no third party kernels for this phone on this site. The closest thing you can do is get a low wattage charger that can only supply roughly the same amount of current the phone is using. Charging from a laptop's USB port might be suitable. This obviously does not require root, but will slowly charge or discharge the battery. The effect will be almost the same as battery idle mode, except that you may still end up charging the battery a bit while the phone is warm, which is not ideal. It should still be better than charging at high current as you would with the OEM charger and cable.
If you charge slowly as recommended above, ACC can be complementary. ACC can stop charging when your battery reaches a certain percent, so can operate the battery in a less stressful region, such as 60-80%.
Click to expand...
Click to collapse
It's actually possible even without kernel support
There is a generic way using acc
Here is a screenshot from the acc GitHub stable channel documentation
So it's possible
but my question was if it would be possible to implement the code in a rom or a flashable zip instead of magisk module
I'm still kinda hesitant to use magisk
I created a thread on the xiaomi.eu forums but didn't get any response
eddie1 said:
It's actually possible even without kernel support
There is a generic way using acc
Here is a screenshot from the acc GitHub stable channel documentation
So it's possible
but my question was if it would be possible to implement the code in a rom or a flashable zip instead of magisk module
I'm still kinda hesitant to use magisk
I created a thread on the xiaomi.eu forums but didn't get any response
Click to expand...
Click to collapse
I see what you mean about emulating battery idle mode. (Though I'll believe it when I see it, since the two features described are something similar to battery idle mode, not battery idle mode itself.)
The way ACC and AccA are implemented requires root. It's the way the software is written and installed. In fact after you install the Magisk ACC module, you will see a flashable .zip in your Downloads folder. So you have the zip, but it won't install without Magisk. (I did try flashing it without Magisk.) And according to the ACC readme, some root solution is necessary (not necessarily Magisk). I assume it is possible to create flashable software that runs as root without requiring an external root solution (after all, Magisk and SuperSU provide root without depending on an external solution), but that's not the way ACC was implemented.
fenstre said:
I see what you mean about emulating battery idle mode. (Though I'll believe it when I see it, since the two features described are something similar to battery idle mode, not battery idle mode itself.)
The way ACC and AccA are implemented requires root. It's the way the software is written and installed. In fact after you install the Magisk ACC module, you will see a flashable .zip in your Downloads folder. So you have the zip, but it won't install without Magisk. (I did try flashing it without Magisk.) And according to the ACC readme, some root solution is necessary (not necessarily Magisk). I assume it is possible to create flashable software that runs as root without requiring an external root solution (after all, Magisk and SuperSU provide root without depending on an external solution), but that's not the way ACC was implemented.
Click to expand...
Click to collapse
I see
Thanks for explaining
It can be implemented in the rom without root if the kernel supports it tho
I posted on akr-developers (one the hiirakernel thread) about the feature if it's possible to implement
Hopefully the developers will implement it
eddie1 said:
It's actually possible even without kernel support
There is a generic way using acc
Here is a screenshot from the acc GitHub stable channel documentation
So it's possible
but my question was if it would be possible to implement the code in a rom or a flashable zip instead of magisk module
I'm still kinda hesitant to use magisk
I created a thread on the xiaomi.eu forums but didn't get any response
Click to expand...
Click to collapse
This command just stopped charging... Battery drain is still there
This needs more attention. Im also interested in it to be able this to work whenever needed not only in gaming.

Badly in Need of ACC / Smart Charging / Battery Charge Limit...

I tried so many way and failed to work smart charging on Latest Stock ROM. Did anyone able to work "Advanced Charging Controller (ACC)"?
I have used ACC for a while now. What problem are you facing?
I use the latest stock ROM with blu_spark kernel and the charging switch located at /sys/kernel/debug/google_charger/input_suspend
IntenseColor said:
I have used ACC for a while now. What problem are you facing?
I use the latest stock ROM with blu_spark kernel and the charging switch located at /sys/kernel/debug/google_charger/input_suspend
Click to expand...
Click to collapse
Can I use Battery Charge Limit App with "/sys/kernel/debug/google_charger/input_suspend,0,1"?
Why are you in badly need of "smart charging"?
Would also like an answer on this can't seem to get any of the acc settings to stick and it always charges past the % I set
In a terminal emulator on your phone run:
Code:
su
echo 80 > /sys/devices/platform/soc/soc:google,charger/charge_stop_level
This will make your phone stop charging at 80%. You can change the percentage by changing the number next to echo in the code above.
If you want to make this persistent, place the command as a script (a sample is attached) in
Code:
/data/adb/service.d
using a root browser. Note: you may need Magisk installed for this to work.
greatest125 said:
In a terminal emulator on your phone run:
Code:
su
echo 80 > /sys/devices/platform/soc/soc:google,charger/charge_stop_level
This will make your phone stop charging at 80%. You can change the percentage by changing the number next to echo in the code above.
If you want to make this persistent, place the command as a script (a sample is attached) in
Code:
/data/adb/service.d
using a root browser. Note: you may need Magisk installed for this to work.
Click to expand...
Click to collapse
How can i go back to default value after that?
Rafiul Bari Chowdhury said:
How can i go back to default value after that?
Click to expand...
Click to collapse
When you reboot, it automatically resets to the default value. This is why I run a script at boot.
You can also go back to the default value at any time by entering the following commands in a terminal emulator on your phone:
Code:
su
echo 100 > /sys/devices/platform/soc/soc:google,charger/charge_stop_level
greatest125 said:
When you reboot, it automatically resets to the default value. This is why I run a script at boot.
You can also go back to the default value at any time by entering the following commands in a terminal emulator on your phone:
Code:
su
echo 100 > /sys/devices/platform/soc/soc:google,charger/charge_stop_level
Click to expand...
Click to collapse
Thank you so so much. I have got everything.
greatest125 said:
In a terminal emulator on your phone run:
Code:
su
echo 80 > /sys/devices/platform/soc/soc:google,charger/charge_stop_level
This will make your phone stop charging at 80%. You can change the percentage by changing the number next to echo in the code above.
If you want to make this persistent, place the command as a script (a sample is attached) in
Code:
/data/adb/service.d
using a root browser. Note: you may need Magisk installed for this to work.
Click to expand...
Click to collapse
Well, either this script isn't working the way I thought it would or I did something wrong... but I think it's the former.
So I put that battery.sh script in /data/adb/service.d yesterday set the permissions & rebooted. I let the battery run down below 80% overnight and this morning I plugged it back in around 60%. Didn't charge at all, back didn't get warm & also didn't get the "Charging Rapidly" display on the always on display. Let it sit for at least an hour and it didn't charge a lick. Removed the script, rebooted, and voila charging again.
Obviously didn't do what it was supposed to... darn it
andyxo said:
Well, either this script isn't working the way I thought it would or I did something wrong... but I think it's the former.
So I put that battery.sh script in /data/adb/service.d yesterday set the permissions & rebooted. I let the battery run down below 80% overnight and this morning I plugged it back in around 60%. Didn't charge at all, back didn't get warm & also didn't get the "Charging Rapidly" display on the always on display. Let it sit for at least an hour and it didn't charge a lick. Removed the script, rebooted, and voila charging again.
Obviously didn't do what it was supposed to... darn it
Click to expand...
Click to collapse
Interesting... you have Magisk installed and you are trying this on a Google Pixel 4a? If so, a reason why this might not be working could be a permission issue. Using your root browser of choice, navigate to /data/adb/service.d and change the permissions of the script to 744. Please see the attached screenshot for more details (I use this root browser). After changing the permissions, drain your battery and try again. \
Hope this helps!
andyxo said:
Well, either this script isn't working the way I thought it would or I did something wrong... but I think it's the former.
So I put that battery.sh script in /data/adb/service.d yesterday set the permissions & rebooted. I let the battery run down below 80% overnight and this morning I plugged it back in around 60%. Didn't charge at all, back didn't get warm & also didn't get the "Charging Rapidly" display on the always on display. Let it sit for at least an hour and it didn't charge a lick. Removed the script, rebooted, and voila charging again.
Obviously didn't do what it was supposed to... darn it
Click to expand...
Click to collapse
It worked perfectly for me.
greatest125 said:
Interesting... you have Magisk installed and you are trying this on a Google Pixel 4a? If so, a reason why this might not be working could be a permission issue. Using your root browser of choice, navigate to /data/adb/service.d and change the permissions of the script to 744. Please see the attached screenshot for more details (I use this root browser). After changing the permissions, drain your battery and try again. \
Hope this helps!
Click to expand...
Click to collapse
Thanks kindly for your very detailed instructions post... indeed it seems to have been a permissions issue as previously I had all the squares checked off, not just the five in your screenshot. It has been working fine the past two days so hopefully I got it squared away now
Just curious to know though if it's normal (with this added .sh file) that with the phone still plugged in that the "Always On" Display says "80% - Charging rapidly" even though the charging has stopped at 80%?
And once the charging has stopped at 80% I am assuming that it's okay to just leave it plugged in for a while before heading out as the phone has stopped charging. Reason being, I don't want to hover over the phone thinking oh jeez, it's hit 80% now so I gotta unplug it right away to prevent battery damage. Cheers
andyxo said:
Thanks kindly for your very detailed instructions post... indeed it seems to have been a permissions issue as previously I had all the squares checked off, not just the five in your screenshot. It has been working fine the past two days so hopefully I got it squared away now
Just curious to know though if it's normal (with this added .sh file) that with the phone still plugged in that the "Always On" Display says "80% - Charging rapidly" even though the charging has stopped at 80%?
And once the charging has stopped at 80% I am assuming that it's okay to just leave it plugged in for a while before heading out as the phone has stopped charging. Reason being, I don't want to hover over the phone thinking oh jeez, it's hit 80% now so I gotta unplug it right away to prevent battery damage. Cheers
Click to expand...
Click to collapse
I honestly have no idea. I assume when it hits 80, the battery stops accepting charge although the "Rapidly Charging" label continues to be shown. Anyone have an idea why?

Question Anyone got Advanced charging controller working?

Hi guys, tried the Module for Magisk + the Acc App.
The App shows the Deamon is running but, when it hits the set threshold it keeps charging. Any fix, or is the Oneplus 9 just not supported yet?
Hi
Same problem here. Tried all solutions including Battery Charge Limit and Tasker to stop charging. No working solution so far.
I ended up creating a tasker profile that gives an audible alert at a specific battery level and then I manually disconnect the charger...
MoHed said:
Hi
Same problem here. Tried all solutions including Battery Charge Limit and Tasker to stop charging. No working solution so far.
I ended up creating a tasker profile that gives an audible alert at a specific battery level and then I manually disconnect the charger...
Click to expand...
Click to collapse
Did the exact same thing with Tasker haha. Best solution for now.
Battery charge limit by sriharshaarangi now works.
Credit for the 1+9 (Pro) codes to B1tWeaver
[APP][ROOT][4.0+]Battery Charge Limit v1.1.1
Please read the following before installing the app: This app requires a rooted mobile (Android 4.0 or later) Before uninstalling the app, disable limit in the app (if forgotten, reboot after uninstalling) Usage instructions and app...
forum.xda-developers.com
Have the control file data of :
wired:
/sys/class/oplus_chg/usb/chg_enable, 1, 0
wireless:
/sys/class/oplus_chg/wireless/chg_enable, 1, 0
Working great on my 1+9 .
Not aure if you wanna try this but 3C All-In-One app has all kinds of Battery Controls and Options. Might be the way to go. Be careful like always. Couple things I did got my phone at like 115 degrees. Had to wipe and reset lol.
Good App though. I have the paid version if interested.

A particular battery management app

I remember having a battery management app on one of my phones, but I can't remember what it was called. It was something you needed to be rooted for, but I forget if it was an Xposed or even Magisk module. I remember you could control a lot of things. There was something that would slow the rate of charging to reduce strain on the battery. There was a setting that made rules like, "When the phone is charged up to X percent, stop charging. Let it drain. Wait until it's down to Y percent, then start charging again." Ring any bells? What was that program?

Categories

Resources