Closed bketelsen closed 1 year ago
I wonder if there is a more robust way of doing this check. Maybe reading directly from /sys
How about I write a go wrapper lib for upower
?
This would be the perfect solution but will also take more time
but it would be my time, not yours :) another option that would be faster is to read /sys/class/power_supply directly. That might be just an hour or two of work.
but it would be my time, not yours :)
oh :eyes:
another option that would be faster is to read /sys/class/power_supply directly. That might be just an hour or two of work.
this is also a good option. At this point I would say that both are great solutions.
on second thought, this is too small for a useful package, I'll PR to this repo.
my Surface Laptop 3 reports two batteries, one of which is probably a bug, but the other is valid and fully charged.
vso's acpi check doesn't account for multiple batteries, which are common in surface devices, and other laptops.