OpenDingux / gmenu2x

A menu system for embedded devices, originally developed for the GP2X
http://mtorromeo.github.com/gmenu2x/
GNU General Public License v2.0
15 stars 25 forks source link

Battery indicator always shows "Charging" #14

Closed EhotPotaskun closed 4 years ago

EhotPotaskun commented 4 years ago

Good day!

I have build OpenDingux for Anbernic RG350M via buildroot. GMenu2X is running good but i cant get any battery indication, it shows "Charging" icon regardless the handheld is connected via USB or not.

There's no capacity file in /sys/class/power_supply/jz-battery/ directory, so battery status should been manually calculated from voltage_now, voltage_min_design & voltage_max_design. I can manually got each value and it seems to be working well except the GMenu2x indicator. And online parameter in /sys/class/power_supply/usb-charger/ changes correctly depending on USB connection state too. I have already change batterySysfs and powerSupplySysfs paths in gmenu2x.conf, still no luck.

EhotPotaskun commented 4 years ago

Fixed in 9403b30