Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][acc pause_capacity resume_capacity] does not respect enforced charging switch #213

Closed
Mark-Joy opened this issue Oct 14, 2023 · 0 comments

Comments

@Mark-Joy
Copy link

Version: Latest release acc_v2023.8.19_202308190
Steps to reproduce:
1> Set resume_capacity < current capacity < pause_capacity for device to charge normally
Example: 65% < current capacity 70%, < 90%

λ [~] $ sudo cat /data/adb/vr25/acc-data/config.txt | grep capacity=
capacity=(5 50 65 90 auto false)

2> Enforce working switch: sudo acc -ss

λ [~] $ sudo cat /data/adb/vr25/acc-data/config.txt | grep chargingSwitch
chargingSwitch=(battery/input_suspend 0 1 --)

3> Now, set resume_capacity < pause_capacity < current capacity for device to stop charging:

Expected behavior: Device stop charging using enforced charging switch
Real behavior: Device stop charging using other charging switch

λ [~] $ sudo acc 65 50
λ [~] $ sudo cat /data/adb/vr25/acc-data/logs/write.log
───────┬────────────────────────────────────────────────────
       │ File: /data/adb/vr25/acc-data/logs/write.log
───────┼────────────────────────────────────────────────────
   1   │ /proc/mtk_battery_cmd/current_cmd
───────┴────────────────────────────────────────────────────
acc.mp4
@VR-25 VR-25 closed this as completed Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants