https://bugzilla.suse.com/show_bug.cgi?id=1216806 https://bugzilla.suse.com/show_bug.cgi?id=1216806#c2 --- Comment #2 from Chester Lin <chester.lin@suse.com> --- (In reply to Chester Lin from comment #1)
Created attachment 870584 [details] batt_ok.png
By tracing the QCOM battery driver [qcom_battmgr.c], I realized that the qcom_battmgr driver needs a notification from the pdr_interface in order to activate the battery measurement, which should be the way originated from the Android systems running on Qualcomm's mobile application processors.
To solve this issue, we will need a net/qrtr[1] lib and a pd-mapper[2][3] program running in userspace in order to trigger the event required by the battery sensor (via QRTR/remoteproc) and its associated battery driver.
I have temporarily packaged these two in my OBS home subject[4], and the result shows that the battery percentage can be fixed after running the pd-mapper. I will submit these two packages to the openSUSE network project.
[1] https://github.com/andersson/qrtr [2] https://github.com/andersson/pd-mapper [3] https://groups.google.com/g/linux.debian.devel/c/gZWi4_ca9yw [4] https://build.opensuse.org/project/show/home:clin:branches:devel:ARM:qcom- qrtr
The same approach can also be seen in other distros, such as Debian and Fedora. -- You are receiving this mail because: You are the assignee for the bug.