Comments (3)
Toggling multiple switches may trigger the issue.
Did you try using a single switch under such conditions? -- acc -s s
from acc.
I chose battery/charging_enabled 1 0
as my switch. And the switch test acc -t
now reports that my device is supported. And acc now stops charging at my cutoff battery charge, which is 90% for me. So technically my issue is resolved.
But there are still some weird things:
- If i do the switch test with a battery charge over my cutoff battery charge, like 92%, the test fails again. And this sticks until a reboot. But charging still ends, if the charge is 90% or higher. So everything works, but the switch test says otherwise.
- What bugs me the most, is that if the charge is greater than 90%, charging still stops and the charge drops over time below 90%, but the little thunderbolt in the battery icon does not go away, the indicator led on my phone does not turn off (as it does if the charge hits 90% from below and cuts off charging and stays there). So something happens, but something else still goes wrong. And the discharge wont stop, even if the battery charge drops below the resume charge, which is 85% for me. Disconnecting and reconnecting the usb cable does not help, it wont start to charge the battery until a reboot is done. After the reboot everything works fine again.
So everything is fine, if the battery charge approaches the cutoff charge from below and does not go over 90%. But it glitches out between 90% and 100% (yes even at 90%, disconnecting and reconnecting the usb cable at 90% will glitch out acc). Maybe this is already known. But if you are interested in this glitch, here my new logs:
acc-logs-h1.tar.bz2.zip
And if you wish, i could commit some additions to the readme which recommends a reboot, if the switch tests fails. And suggests that choosing a switch might resolve the problem.
from acc.
Observations and Questions
-
battery/charging_enabled
is working. -
acc -t
is working with that control file. -
acc -t --
misbehaves, because it always tests all control files. Some of which were found to be problematic. -
Charging indicators won't go off after disabling charging.
-
A reboot is required to re-enable charging (
rebootOnPause=timeoutSeconds
). -
The log shows exit code 143, which suggests something is killing accd after it tries disabling charging a couple of times.
-
Assuming you have a specific charging switch set, is
acc -t
prone to the inconsistent behavior ofacc -t --
? Recall that the first toggles only the set switch, while the second always toggles all. -
If you don't perform any test with
acc -t
noracc -t --
, and the control file is stillbattery/charging_enabled
, does accd work as expected?
P.S., there's a new dev build available. It's ready for daily use. If you have a Telegram account, we can work through this issue much faster.
from acc.
Related Issues (20)
- Charge current limit non-functional under Mi 11 Lite NE (lisa) HOT 3
- Charge current limit does not work on Samsung S6 Lite (gta4xlwifi) HOT 9
- force single charge will not wait at target capacity until unplugged HOT 5
- Capacity sync account for shutdown capacity HOT 2
- How to set maxChargingCurrent CTRL_FILE correctly? HOT 1
- Pixel stuck fastboot HOT 1
- How to set max charging Voltage using Fast charger(PD, QC etc) to 9V? HOT 3
- magisk module install failed HOT 1
- Redmi Note 9, LineageOS 20 HOT 2
- Redmi Note 5, LineageOS 18 HOT 2
- Module Disapears on Reboot HOT 5
- voltFactor doesn't work HOT 1
- Discharge/Charge Bug HOT 1
- Bootloop when installing on KernelSU HOT 74
- Updated capacity_mask logic shows full charge prematurely HOT 2
- Increase up 90% battery? HOT 1
- ACC is not working on Google Tensor Devices (Pixel 6 and newer) HOT 43
- ACC randomly stops working HOT 3
- Issues with charging thresholds and ACC HOT 6
- [feature-request] Make it possible to send multiple notifications with `acc -n` 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.