Code Monkey home page Code Monkey logo

Comments (8)

VR-25 avatar VR-25 commented on June 25, 2024

ACC changes the charging switch when it fails to disable charging.
That settings was never meant to be static.
There are a couple of reasons for this behaviour.
The main is that different power supplies may use distinct charging switches.
A notable example is wireless charging.
It often requires its own switch.
Another reason is that some switches are not always reliable (i.e., fail to disable charging under certain conditions - e.g., screen off, capacity above a certain threshold and so on).
Thus, ACC responds accordingly.

from acc.

blackwind avatar blackwind commented on June 25, 2024

I'm having the same issue. battery/charging_enabled works just fine for me, but acc -t and even acc -t 30 disagrees. When I hit my maximum charge level, accd starts checking for a working switch (even after I've explicitly set it), doesn't find one, gives up, and exits.

I propose an option to disable this auto-switching functionality since acc apparently has trouble correctly detecting working switches on some devices, and the current behavior of giving up and exiting without notifying the user in any way should be improved somehow. I tried this module several months back, saw it did nothing, and immediately uninstalled. Same thing with ACCA -- installed, saw it did nothing, saw "daemon stopped", restarted it, saw "daemon stopped" again after hitting my charge limit again, and immediately uninstalled. Great intentions with the auto-switching functionality, but very, very poor user experience when things don't go as planned.

from acc.

PenguinDOOM avatar PenguinDOOM commented on June 25, 2024

I have it set to stop charging at 85% but the charge switch switches to automatic and the acc daemon stops. This is tricky because on my pixel4, only charger/charge_disable 0 1 works as expected.
I can't upload the log from smartphone, I'll upload it later.

from acc.

PenguinDOOM avatar PenguinDOOM commented on June 25, 2024

Log
acc-logs-flame.tar.gz

from acc.

VR-25 avatar VR-25 commented on June 25, 2024

Install today's version and share the output of acc -t, along with a fresh log archive (acc -le).

from acc.

PenguinDOOM avatar PenguinDOOM commented on June 25, 2024

The latest log.
acc-logs-flame.tar.gz

from acc.

VR-25 avatar VR-25 commented on June 25, 2024
# charging_switch (s) #
# If unset, acc cycles through its database and sets the first working switch/group that disables charging.
# If the set switch/group doesn't work, acc unsets chargingSwitch and repeats the above.
# If all switches fail to disable charging, chargingSwitch is unset, switchDelay is reverted to 1.5 and acc/d exit with error code 7.
# This automated process can be disabled by appending "--" to "charging_switch=...".
# e.g., acc -s s="battery/charge_enabled 1 0 --"

See if this helps (v2020.7.22+).

from acc.

PenguinDOOM avatar PenguinDOOM commented on June 25, 2024

I added -- and ran it a few times and it works fine. Thanks.

from acc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.