mangdangroboticsclub/QuadrupedRobot

Battery monitor not working after upgrading ubuntu 21.04

jensanjo opened this issue · 6 comments

I used the 20220109_v1.7.0_MiniPupper_V2_PS4_Ubuntu_21.10.0_Baseline.img.zip image.
The battery monitor was working. I could read the data from /sys/class/power_supply/max1720x_battery.
After installing I did a apt upgrade the battery monitor was no longer working.
During the upgrade a new kernel was installed (5.13.0-1015-raspi). The previous kernel was 5.13.0-1011-raspi.
It turns out that the max1720x_battery kernel module is not present in the new kernel.

Sorry, what I mention above, only for not apt upgrade.
In my case, I installed some ROS packages and the battery monitor didn't work,
but it recovered correctly after running scripts above.

@jensanjo Yes , you are right . we will open the driver source and share the way to rebuild them. then , this issue can be solved. thanks for your feedback.

@tech-life-hacking this issue is just on the device that upgrade the kernel .

Can you provide me the source code and build instructions of the driver please?

@jensanjo Hi , we have opened the source code about fuel gauge and the way to build it . you can update the code and have a try . thanks much !