Open sobukus opened 6 years ago
Hi,
I've tested battery monitoring / charging on my GPD win with 4.18-rc2. I found an issue where non PD chargers (such as the default GPD win charger) would only charge at 5V 500mA instead of 5V 2000mA, this is fixed in my tree now and submitted upstream.
I've not found any problems with battery monitoring, nor seen the oops some people are reporting.
Regards,
Hans
Thanks for your continued work. I do wonder if we'll ever get the kinks out of that system. I did not see the oops again yet, just very likely breakage once I try to use some suspend mode.
Regarding suspend breakage: i2c timeouts followed by the battery/charger status being broken, including a flood of the i2c timeout messages that prevents a normal reboot and has me resorting to sysrq. This happens rather often and is a major dealbreaker for me so dar.
@sobukus I was having a similar kernel oops with kernel 4.19. The following bios setting change improved it: go to the Boot tab, and change the "USB Support" setting to "Full Initial".
With this change I can boot my kernel without the oops and things run pretty well, but I still don't have charging for some reason.
I seem to have lost charging in my older kernel that I thought had charging. I'm suspecting a hardware issue, but cannot confirm that yet.
@sobukus it turns out there is no hardware problem. I was forcing the fusb302 and bq24190_charger modules to load early in the boot, which was causing problems. Now the charging stuff seems to be detected normally and I'm getting good charging speeds. I'm now running a NixOS setup with kernel 4.19 that is very close to what @sboehler is using https://github.com/sboehler/nixos-config and my system seems to be pretty stable.
Sadly, I got some final hardware problem with the GPD Pocket: It died on me (assisted by a certain amount of drinking water). I wish you all success with Linux on the thing.
This just flew in on a fresh boot:
Since the charger did not work from time to time with the 4.16-rc3 kernel (resulting in nasty slow battery drain while being connected to AC … after a reboot, charging works again), I guess this could be related.
And yes: I see no fusb302 charger in /sys/class/power_supply. With the original USB C charger connected, I only get 5 V 500 mA current into the device … meaning a discharging battery despite AC connection.
@jwrdegoede: Got ideas?