Comments (6)
Okay. So it means that ACC failed to restore the default charging switches, right? Is there any log file where we can see exactly what have failed?
No, 10 seconds timeout is more than enough to revert all changes. Acc just failed to reenable charging within that timeframe. However, the switch was reset successfully. The thing is, acc waits for charging to resume -- and if the charger is unplugged or the switch takes longer to respond, then you see the "Terminated" message, meaning, accd is killed to stop waiting.
Regarding the charging tests/control inconsistencies, see what the value of discharge_polarity is (acc -sp pol). If it's wrong, you can correct it with acc -s dp=-
(or +). Acc determines the polarity only once, and when the charger is unplugged. This automatic detection may be wrong on devices with troublesome charging switches.
Speaking of switches, set the ones (with acc -ss) that you find working on both devices. acc -ss essentially disables the automatic switch testing (i.e., appends " --"). So that acc uses only and always what is already set.
from acc.
- Do you remember the exact last working version?
- What about the last working charging switch? I know it was “automatic”, but in the config, one could see a charging switch set. Have you seen it?
- "Terminated" refers to the daemon. It's shown if the daemon takes longer than 10 seconds to stop. Any command that stop/restart the daemon may print that message at some point, especially when the charger is unplugged. The 10 seconds timeout is for accd to restore all default charging settings before stopping.
- LOS' Charging control does some of what acc does. Having it disabled prevents conflicts.
- Indeed, a LOS update may have triggered the issue.
- You can revert to the previous installation and config, by running
acc -b
. This is for the future, since you've already installed more than one update.
from acc.
Additional informations:
- There's a chance that the issue was already present in v2023.6.26 and I did not notice it (because I was only using this version for a few days)
- Previously I did not have to change the charging switches. The automatically found ones was working quite well without any problem
- The issue can be also caused by a LOS upgrade. It is difficult to say...
from acc.
While we're at it, here's a new dev build:
acc_v2023.7.26-dev_202307260_1900.zip
from acc.
- I remember that the previously manually installed version was v2022.6.4. If the pre-release versions was available through the Magisk manager I'm surely have upgraded to it. So in this case the last working version was v2022.7.30-dev.
- The last working charging switch for evert was
battery/battery_charging_enabled 1 0
, and for gta4xlwifi it wasbattery/batt_slate_mode 0 1
- Okay. So it means that ACC failed to restore the default charging switches, right? Is there any log file where we can see exactly what have failed?
Thanks for the answers. I will try the dev build you sent.
from acc.
Update:
On device gta4xlwifi after a reboot the version v2023.7.17 now seems to be working. The 'Terminated' message has gone, the switches are working fine (also the battery/batt_slate_mode 0 1
). Not sure whether it's only temporary or not. I'll give it some time.
As I experienced yesterday (before I submitted this issue) just only rebooting any of the devices did not solve the problem. I mean some part of ACC worked fine again, but a bit lately the 'Terminated' message showed up again.
On device evert I upgraded the ACC version to v2023.7.26-dev and rebooted:
acc -t
ran fine without any error and the result seemed to be correct. But right after theacc -D
showed that the daemon is not running, so I started it withaccd -i
(no error message)- Running
acc -t
again gave messageTerminated
- After a reboot
acc -t
also gave message 'Terminated' - Unplugged the charger but the phone still thought that it's charging (I remember that sometimes earlier it took long until it detected the unplug, sometimes it was few minutes)
- After a minute it still thought that the charger was plugged in, so I powered off the device.
- A few minutes later I switched on the phone and plugged in the charger again
acc -t
ran fine without any error,acc -D
showed that the daemon is running- Now ACC seems to be working...
Unfortunately I cannot reproduce the issue. I'm not sure what's causing it. All I know is sometimes it comes up, and switching off, unplugging the charger, waiting, switching on and re-plugging the charger solves the problem in most cases.
from acc.
Related Issues (20)
- Battery jump between idle and charging during idle mode HOT 4
- How exactly does native battery idle mode work? HOT 1
- nexus 10 (manta) failed to install acc HOT 1
- Update app on F-droid or upload to IzzyOnDroid HOT 1
- Fast charging & Mar 2024 update HOT 6
- Pixel 5 Idle Configuration Help HOT 4
- Redmi 7 issues HOT 6
- resetBsOnPause and resetBsOnUnplug not working on Pixel 8 / Android 14 HOT 1
- Charging Does Not Stop At Pause Capacity HOT 9
- Battery is slowly draining with Idle mode enabled HOT 10
- Xiaomi Poco X4 Issues HOT 1
- v2024.4.7-rc fails with segfault HOT 15
- Charge % limit not working with wireless charging on OnePlus 12 HOT 4
- Pixel 6 latest version intermittent charging HOT 3
- damon stopped with exit code 1 pixel 8 A14 HOT 13
- "Charge once" becomes permanent until restarting acc HOT 3
- Can you add support for APatch? Installation failed in APatch. HOT 1
- acca crashes with latest build HOT 2
- OnePlus 9 Pro
- Nothing phone 2a HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acc.