-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Issue type
Feature not working as intended
Device
Xiaomi 11T Pro (vili)
crDroid version
crDroid 11
Exact version / Build date
11.5/2025-05-17
Bug description
for several weeks (months?) now, the charging info shown on the ambient display makes no sense anymore.
for the voltage, it's now showing the battery voltage, rather than the input/charger voltage. that might make sense as such, but it makes it a lot harder to identify whether the charger operates in fast charging mode, i.e., whether it's operating at raised voltage (9 or even 20 volts). additionally, the voltage is affected by #641.
for the current, it's showing ... something that appears kinda random, but always way too low.
for example, now on my desktop's usb port, it's showing 7.9V and usually something between 50 and 500mA (each time i plug it in something else), with a resulting power below 2.5W, which is obviously too little. the same happens with regular chargers, whether they support fast charging or not.
with the matching xiaomi charger, it showed something like 12A 68W. at the battery, it should be something on the order of 28A, for the expected 120W.
Steps to reproduce
- enable extended battery info on AOD/lock screen
- plug into charger while not fully charged
Relevant log (logcat/build log)
nothing particularly interesting in the logcat.
but then there is this:
vili:/ $ dumpsys battery
Current Battery Service state:
AC powered: false
USB powered: true
Wireless powered: false
Dock powered: false
Max charging current: 188000
Time when the latest updated value of the Max charging current was sent via battery changed broadcast: 0
Max charging voltage: 8010000
Charge counter: 1428000
status: 2
health: 2
present: true
level: 68
scale: 100
voltage: 8010
Time when the latest updated value of the voltage was sent via battery changed broadcast: 0
The last voltage value sent via the battery changed broadcast: 8010
temperature: 290
technology: Li-poly
Charging state: 0
Charging policy: 0
Capacity level: -1
Maximum capacity: 2242000
Design capacity: 5000000
this reflects /sys/class/power_supply/battery/current_now & co, and corresponds with the info shown on the display, so the bogus current is clearly a kernel/driver problem.
the values in /sys/class/power_supply/usb/ seem reasonable (5V 500mA while connected to desktop).
Screenshots or videos
No response
Solution
No response
Additional context
No response
Acknowledgements
- I've checked device is officially supported (for device specific reports and not source related).
- I'm running latest version available on crdroid.net for this device
- I have searched the existing issues and this is a new and no duplicate or related to another open issue.
- I have written a short but informative title.
- I filled out all of the requested information in this issue properly and understand that not doing so will automatically result in closing of ticket.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status