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

Dual-cell models recognize the wrong (half) current value #266

Open
tp20c5 opened this issue Aug 2, 2024 · 15 comments
Open

Dual-cell models recognize the wrong (half) current value #266

tp20c5 opened this issue Aug 2, 2024 · 15 comments

Comments

@tp20c5
Copy link

tp20c5 commented Aug 2, 2024

Model: Moto Razr 50 Ultra
Android version: Android14, MyUI7.0
ACC version: v2024.6.2-rc,any installation method
Other settings:
charging_ switch="/sys/class/qcom-battery/wireless_boost_en 0 1 --" //Because the default charging switch doesn't work.
batt_status_workaround=false //Because of the battery polarity is misrecognized by default.
Charging optimization and overcharge protection that comes with the system

Folding models such as the moto razr50 have two battery cells, resulting in the acc reporting current always being half of what it actually is.
acc-logs-arcfox_2024-08-02_14-50-24.zip

@tp20c5
Copy link
Author

tp20c5 commented Aug 22, 2024

Got it. To double the battery count, set it this way
af=500000
Screenshot_20240822-120139_AccuBattery

@tp20c5
Copy link
Author

tp20c5 commented Aug 22, 2024

But the charging switch is still not stable, especially when using wireless charging (even a slow charge)

There are three instances of instability:

  1. occasionally it won't stop charging; (setting fo=true fixes this)
  2. it should stop charging, and it seems to be a very small trickle, the capacity barely changes, but the body gets seriously hot;
  3. or after pausing charging for a while, it automatically restarts charging at full power again.

There are normal conditions:
Capacity pauses to change, even though the charging cradle shows it's working or not working, and the phone temperature is normal

Conditions for recurrence of unstable situations:
The 2nd and 3rd bad conditions occur with less obvious regularity and may suddenly become better or suddenly worse. It seems that the first charge after each restart of the phone will be normal with a high probability.

And “charger/online 1” here always seems to show a connected charger? Does it have an effect on the above question.

@VR-25
Copy link
Owner

VR-25 commented Dec 15, 2024

charger/online always 1 is misleading, but it's irrelevant anyway.

Try the new build with the stock config (batt_status_workaround=true and everything else default).
I also added charging switches.

acc_v2024.12.15.1-rc_202412151_1917.zip

@tp20c5
Copy link
Author

tp20c5 commented Dec 16, 2024

charger/online always 1 is misleading, but it's irrelevant anyway.

Try the new build with the stock config (batt_status_workaround=true and everything else default). I also added charging switches.

acc_v2024.12.15.1-rc_202412151_1917.zip

Thanks for the reply. It doesn't test well after upgrading though (have restored all default parameters via acc -sr a), with or without charging the battery state while charging changes between 'charge', 'idle', ' discharge', with logs acc-logs-arcfox_2024-12-16_16-53-29.zip

And the current values seem to be farther off, then I set it to af=250000 to barely look close to the current values found by other tools.

@VR-25
Copy link
Owner

VR-25 commented Dec 17, 2024

The current is farther off because of a recent change that can easily be reverted.
Manufacturers keep messing things up.
I'll take a deeper look at the logs.

@VR-25
Copy link
Owner

VR-25 commented Dec 17, 2024

Keep testing with batt_status_workaround=true.
wireless_boost_en 0 1 is now built-in.
acc_v2024.12.17-rc_202412170_1821.zip

@tp20c5
Copy link
Author

tp20c5 commented Dec 19, 2024

Keep testing with batt_status_workaround=true. wireless_boost_en 0 1 is now built-in. acc_v2024.12.17-rc_202412170_1821.zip

Tried again, and not good yet -_-

The auto switch is failing, charging won't stop as expected, and manually setting the switch to wireless boost en doesn't work anymore. With bsw=true. So I really doubt that the problem is caused by abnormal current value detection.
acc-logs-arcfox_2024-12-19_18-22-22.zip

Returning to version 6.2 with the following parameters works stably, just not controlling wired charging.
acc_config6.2.txt

@VR-25
Copy link
Owner

VR-25 commented Dec 21, 2024

acc_v2024.12.21-rc_202412210_1349.zip

This fixes the issue with batt_status_workaround=true.
Try a full switch test.

@tp20c5
Copy link
Author

tp20c5 commented Dec 31, 2024

acc_v2024.12.21-rc_202412210_1349.zip

This fixes the issue with batt_status_workaround=true. Try a full switch test.

Tested it some days and it's much better than the first two versions. Wired charging ok, 15W wireless (actually 20W+, higher than before) charging to pause occasionally gets very hot, and there have been a couple of “exit code-7” when charging has been suspended. Do I need to attach a log? Doesn't reproduce very consistently.

@VR-25
Copy link
Owner

VR-25 commented Jan 1, 2025

acc_v2024.12.29-rc_202412290_2033.zip
Try that and see how it goes.
Grab logs if you still stumble upon those issues.

@VR-25
Copy link
Owner

VR-25 commented Jan 5, 2025

@tp20c5
Copy link
Author

tp20c5 commented Jan 7, 2025

acc_v2025.1.5-rc_202501050_0818.zip

Occasional problems. Earlier logs are high temperature and exit code 7 after charging to 75, later logs are charging to 75 paused and then resumed to continue charging。
acc-logs-arcfox_2025-01-07_16-17-19.zip

@VR-25
Copy link
Owner

VR-25 commented Jan 17, 2025

@tp20c5
Copy link
Author

tp20c5 commented Jan 22, 2025

acc_v2025.1.14-rc_202501140_2120.zip

Using wireless fast charging, high temperatures when approaching a power pause. Force “wireless_boost_en 0 1”, only this switch takes effect.
acc-logs-arcfox_2025-01-22_12-21-32.zip

@tp20c5
Copy link
Author

tp20c5 commented Jan 30, 2025

acc_v2025.1.14-rc_202501140_2120.zip

Using wireless fast charging, high temperatures when approaching a power pause. Force “wireless_boost_en 0 1”, only this switch takes effect. acc-logs-arcfox_2025-01-22_12-21-32.zip

and this version looks like a problem recognizing the current polarity, now I have to set bsw to false to match the actual charging state.

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