You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running psutil.sensors_battery() on a HP 520 laptop returns None. The /sys/class/power_supply directory contains C1AB C1AC but no directory that begins in BAT, out of these I think the C1AC is the right directory.
The text was updated successfully, but these errors were encountered:
sujaldev
changed the title
[Linux] psutil.sensors_battery() not working on a HP 520 laptop
[Linux] battery detection in psutil.sensors_battery() relies on an assumption which is not true of all systems.
Apr 2, 2023
Summary
Description
Running
psutil.sensors_battery()
on a HP 520 laptop returnsNone
. The/sys/class/power_supply
directory containsC1AB C1AC
but no directory that begins in BAT, out of these I think the C1AC is the right directory.The text was updated successfully, but these errors were encountered: