When you write "find a good switch": I only saw working and not working switches. Some of them stating: "idleMode=true".So it seems I finally got the module working.
TO ALL NEWCOMERS: Start by find a good switch; that is to say, run the test in a terminal, look at the output and configure accordingly.
Can you share your setrings? I'm having trouble getting it to work on my 3T, also LOS 18.1Hi, got evertything going good on my oneplus3T lineage 18.1, magisk,no gapps phone. The project I'm doing is making my car smart and I'm using this phone as the heart of the system. I am stuck at one final thing to get everything working as I want. To make phone boot on power connected. Is there a way to do this using AccA? Or any other ideas? Thanks
A "good switch" is definitely one that worksWhen you write "find a good switch": I only saw working and not working switches. Some of them stating: "idleMode=true".
Thus, how to find among the working ones a good (or even the best switch)?
acc --test
Thx, that's what I do. I hoped there might be a smarter way (than trial&error) to find the best one.A "good switch" is definitely one that works
If a switch is reported not working/doesn't have a tick emoji coming up, it cannot be used for setting custom values.
idleMode=true only means whether or not you can have native battery idle mode (pbim) enabled. Some devices/kernels don't support this feature anyway, so no worries if all switches say idleMode=false.
Other than that, you can run2 or 3 times to make sure there are no false positives.Code:acc --test
From this point on, it's all up for you to experiment with the working switches to find out which ones grant you access to all features you'd like to use.
Based on the documentation, you can leave chargingSwitch at default/automatic, so then you'll (in theory) always have a working switch.Thx, that's what I do. I hoped there might be a smarter way (than trial&error) to find the best one.![]()
What command does acc run when it disables charging? I've noticed that I can leave the device plugged in, yet acc can and does switch off charging when battery % gets to a certain level. I'm figuring it must be using some command to do that. And now I have a use for it (or want to test, at least) in another scenario.
I can use a dumpsys command to simulate disabling charging, and android will think it's not charging. But it doesnt really stop charging.
acc -d
with this other app or whatever that you're trying to use?No. It's not an app. I simply want to call the same command that acc uses to switch charging off. In a terminal, in a script I can trigger with a widget, whatever works.Can't you callacc -d
with this other app or whatever that you're trying to use?
It's this:Can't you callacc -d
with this other app or whatever that you're trying to use?
It seems that acc has a disable command. However, this also stops the daemon. Is there a way to just disable charging, while leaving the daemon running?
acc -d
stops both the charging and the daemon, but then you can re-enable charging (and the daemon, I assume) with acc -e
.Can't you use some logging app to see what happens when the daemon stops the charging? I don't know what acc might be doing in the background, for all I know, you can't simply disable/enable charging without using acc (because it's not as simple as changing a 1 to a 0 somewhere). Maybe look at the output ofI still feel that knowing the actual command acc uses would be useful. I'm sure it just change some value in /sys/*, but I'm not sure which one.
acc --test
, and see what charging switches it finds and look for those somewhere within the system files?Any suggestions for a logging app? I'm sure there are quite a few things that write to /sys/*, besides acc.acc -d
stops both the charging and the daemon, but then you can re-enable charging (and the daemon, I assume) withacc -e
.
Can't you use some logging app to see what happens when the daemon stops the charging? I don't know what acc might be doing in the background, for all I know, you can't simply disable/enable charging without using acc (because it's not as simple as changing a 1 to a 0 somewhere). Maybe look at the output ofacc --test
, and see what charging switches it finds and look for those somewhere within the system files?
So the way it works is that you plug your "phone" in to the charger, then it first charges your phone to 100%, and only when it's full is when it starts charging the case? Interesting.It does seem that charging the case alone isn't natively supported
I've used this logging app before, however I don't know if it can do what you're looking for.
No, I mean that the battery case and the phone charge at the same time, when plugged in. I was looking for a way to let the case charge without removing it, but at the same time to not charge phone battery simultaneously, to reduce wear on it.So the way it works is that you plug your "phone" in to the charger, then it first charges your phone to 100%, and only when it's full is when it starts charging the case? Interesting.
I've used this logging app before, however I don't know if it can do what you're looking for.
So does it not stay at 70% then?
Generally, batteries are most comfortable at around 50% charge. 25/75 is basically the same as 40/60, which would be the same as 45/55. The idea is to keep the "halfway point" of your maximum and minimum charge level as close to 50% as possible. But, to be frank with you, as long as you don't regularly have the battery sit below ~15%, and don't let it sit above ~80% for long, you're not going to damage it.This study however shows that charging from 25% to 75% gives the best result, well it didn't show any data for lets say 40% - 60%, etc.
I had my old phone always between 40 and 60 since I read somewhere thats where batteries are the most comfortable at, if I used it more on some day it would go down to say 30%, I'm not a heavy user.
It's not bad practice to drain your battery to 0% and then (preferably slowly) charge it up to 100% (and leave it on the charger for about half an hour after it says it reached 100%. Helps with the calibration. You can do this once a week, or once a month, up to you.Would it be better to charge it higher to say 70% and have it go down to 50 and sometimes 40?
I think 30 degrees is going to be a bit low, especially during summer/hot monthsI want it to pause charging at 30°C since this is considered "elevated temperature" according to the linked study.
Charging time isn't much of an issue, so I think limiting charging to 1A makes sense, but idk anything about charging voltage.
You can use AccA or ACC Settings for monitoring. They won't interfere with your custom settings as long as you don't change any values in the app.does anyone know a clean simple app that shows the current voltage and stuff?
Thank you for your answers!What does the most damage to these kinds of batteries are high temperature and mini-cycles.
Try editing the config.txt (in /data/adb/vr25/accu-data) directly via a root file manager as shown in the screenshot. My value is 5 so change it to 34.generic chargers are unreliable reduce battery life or may expose manufacturer recommend only original charger
ACCA in the shutdown configuration appears at a maximum of 20% does not appear 34% is it possible to insert 34% in the ACCA configurations?
Does ACCA have the same behavior as stopping charging at start?