Code Monkey home page Code Monkey logo

Comments (9)

VR-25 avatar VR-25 commented on July 4, 2024

acc [pause %] [resume %] is the correct syntax - e.g., acc 60 55.
If the issue persists, refer to https://github.com/VR-25/acc/blob/dev/README.md#charging-switch .

from acc.

Tomoms avatar Tomoms commented on July 4, 2024

Gee, I feel so stupid! Anyway the issue persists. Also, when I was using AccA the pause/resume thresholds were set in the correct way and the issue still occurred.
I've tested the charging switches, only one out of two is working, and of course, I'm using that one. The old stable version used to recognize two working switches, but in the latest beta only one is detected, together with another (third) switch that however, doesn't work properly.

Some additional info: these unwanted short charges usually start when I wake the device from sleep. I'm not even sure they can be accounted as real charges, because the charging led of the device turns on, but the battery icon doesn't show the lightning it usually shows when the battery is charging. So maybe the kernel's charging driver is going mad, and I mustn't blame acc for this.

from acc.

VR-25 avatar VR-25 commented on July 4, 2024

See if today's version makes any difference.
You may want to reset the config too (acc -s r or rm /data/adb/acc-data/config.txt).

from acc.

Tomoms avatar Tomoms commented on July 4, 2024

Still happening. Do you need more logs?

from acc.

bollocks-fks avatar bollocks-fks commented on July 4, 2024

I think I'm having the same issue. I'm using a Redmi Note 6 Pro with LineageOS 17.1. Charging seems to be restarted regardless of the values of resume capacity and pause capacity. It seems to just be a matter of time. Then it seems like accd notices that this is wrong and turns it off. Over time this will fully charge my phone.

The bug happens for me with version 4.22-beta and 4.27-beta. 4.17-beta and 4.20-beta don't have this bug for me.

from acc.

bollocks-fks avatar bollocks-fks commented on July 4, 2024

I left 4.20-beta running over night with the charger plugged in and the bug came back. I'll leave 4.17-beta running for a while and see what happens.

Edit:
4.17-beta doesn't seem to have the bug after running it for about 2 days.

I uninstalled the module completely in magisk, rebooted, installed 4.20-beta, ran acc -s r, and rebooted. It now only starts charging when capacity is below pause capacity. It doesn't wait for resume capacity. Attached logs. Since the uninstall first seems to behave different, I'll try the same thing with 4.27-beta.
acc-logs-twolip-4.20-beta.tar.gz

Edit:
Same reinstall procedure as before but this time with 4.27-beta. It will start charging regardless of whether or not the capacity is below pause capacity. Then it will realize that it's at or above pause capacity and turn it off. The cycle repeats. I believe eventually it will charge to full. I cut it off after it went 1% over though.
acc-logs-twolip-4.27-beta.tar.gz

Just noticed 4.29 is out. I'll give it a try.

from acc.

VR-25 avatar VR-25 commented on July 4, 2024

Hi,
I'm watching this closely.
A new version will be up soon.
Keep trying.
We're getting there.
While on this trial and error cycle, keep the following in mind: https://github.com/VR-25/acc/blob/dev/README.md/#charging-switch .

from acc.

bollocks-fks avatar bollocks-fks commented on July 4, 2024

4.29-rc works great for me. Tomoms seems to have noticed the issue on a different version, so maybe the bug is different on his hardware.

I've been just been using the default switches. acc -t reports more than one switch works. I don't understand the differences between them, so I just figured leave it be. Looking at the issues brought up in the readme:

Leaving the screen on didn't help when I tried it, but I didn't thoroughly test this across versions. It was just something I checked to see if the phone was going to sleep, and accd wasn't given the chance to run properly.

I don't know how to detect a wakelock being held. If there's a command I can run to test this, I'll run a test on switches if you want. I haven't noticed a battery drain problem.

CPU usage of accd.sh as reported by ps seems to be 0.1% over the long term. I haven't noticed any change I figure that's pretty good.

I have noticed Android rarely not reporting battery status correctly. The files in /sys/class/power_supply seem to be working fine when this happens, and a reboot clears it up. So I figure this is a bug in the ROM I'm using. This worked fine in LineageOS 16.1. I've also lost functionality in the charge counter file since the upgrade. They're still there, they just report 0. The capacity files are working fine when I run a script to watch and record them.

I'll give 5.4-rc a try now, and make sure it's still running smoothly.

Edit:
5.4-4rc is working great for me.

from acc.

Tomoms avatar Tomoms commented on July 4, 2024

Hello, sorry for having been absent for a very long time.
I'd just want to say that acc v2020.6.16 is working perfectly and this bug is definitely fixed. I've just updated to the latest version (v2020.7.3), I'm pretty sure it'll work well too.
Thank you!
Greetings.

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.