brunch icon indicating copy to clipboard operation
brunch copied to clipboard

Dell latitude 5480 not detecting charging state (always reporting discharging)

Open tungmeister opened this issue 2 years ago • 4 comments

Hi, I'm having an issue with my latitude 5480 in that the battery state is always reporting as discharging, even when the charger is connected. The laptop charges fine but the state never changes from discharging. I didn't use to have this issue but I stopped using brunch for a while and now after having come back to it and updated this issue has presented.

not sure if this is related but I see the following errors when trying to run the battery_test:

2023-01-29T15:17:14.455592Z ERROR dump_power_status: [cros_ec_prefs_source.cc(23)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.458030Z ERROR dump_power_status: [power_supply.cc(783)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.478235Z ERROR dump_power_status: [cros_ec_prefs_source.cc(23)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.478928Z ERROR dump_power_status: [power_supply.cc(783)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.487777Z ERROR dump_power_status: [cros_ec_prefs_source.cc(23)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.488465Z ERROR dump_power_status: [power_supply.cc(783)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.496070Z ERROR dump_power_status: [cros_ec_prefs_source.cc(23)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.496738Z ERROR dump_power_status: [power_supply.cc(783)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.505253Z ERROR dump_power_status: [cros_ec_prefs_source.cc(23)] Failed to open /dev/cros_ec: Permission denied (13)
2023-01-29T15:17:14.505949Z ERROR dump_power_status: [power_supply.cc(783)] Failed to open /dev/cros_ec: Permission denied (13)

It would appear that the kernel can see the battery state:

chronos@localhost / $ cat /sys/class/power_supply/BAT0/status
Charging
chronos@localhost / $ cat /sys/class/power_supply/BAT0/status
Discharging

and when the charger is connected:

chronos@localhost / $ cat /sys/class/power_supply/AC/online
1
chronos@localhost / $ cat /sys/class/power_supply/AC/online
0

tungmeister avatar Jan 29 '23 15:01 tungmeister

@sebanc any suggestions? I'm also seeing the same thing on my HP Elitebook G8.

tungmeister avatar Apr 09 '23 22:04 tungmeister

Any updates? That issue is actually serious. For example, I am not able to update Linux version, because ChromeOS asks to connect charger, even when charger is connected. So, it's impossible to update Linux VM

giaur500 avatar Apr 21 '24 10:04 giaur500

Not that I'm aware of, I tried what was suggested in that mentioned issue but it didn't help.

tungmeister avatar Apr 22 '24 18:04 tungmeister