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

How to set maxChargingCurrent CTRL_FILE correctly? #187

Closed
nabakdev opened this issue Mar 3, 2023 · 1 comment
Closed

How to set maxChargingCurrent CTRL_FILE correctly? #187

nabakdev opened this issue Mar 3, 2023 · 1 comment

Comments

@nabakdev
Copy link

nabakdev commented Mar 3, 2023

i have build manually through latest github source (commit 978740f)

then modify this file install/default-config.txt

capacity=(10 50 75 79 auto false)
chargingSwitch=(/sys/class/power_supply/battery/battery_charging_enabled 1 0)
maxChargingCurrent=(500 /sys/class/power_supply/battery/constant_charge_current_max::500000::-22)

the problem is i can't limit max current, acc will rewrite the maxChargingCurrent value with another CTRL_FILE(which is that CTRL_FILE doesn't work) when i run acc -s mcc=500

how to set maxChargingCurrent CTRL_FILE permanently even after reboot?

DEVICE: XIAOMI POCO F4 5G (munch)

NOTE:

  • /sys/class/power_supply/battery/constant_charge_current_max is the only one that works to limit current

for now i need to change this file /sys/class/power_supply/battery/constant_charge_current_max value manually to limit charging current

*sorry for my bad english

@nabakdev
Copy link
Author

i've found that my ctrl file has negative value as default so acc blacklist it.

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

1 participant