[PATCH v2] ntdll: Check for several common battery and AC adapter names on Linux

Alex Henrie alexhenrie24 at gmail.com
Sun Apr 24 16:18:10 CDT 2022


On Sun, Apr 24, 2022 at 3:16 PM Alex Henrie <alexhenrie24 at gmail.com> wrote:
>
> On Sun, Apr 24, 2022 at 4:31 AM Austin English <austinenglish at gmail.com> wrote:
> >
> > This matches my amd64 hardware.
> >
> > My armv7l chromebook reports the battery as: "sbs-20-000b" (alongside "gpio-charger")
> > My aarch64 pinebook reports the battery as: "battery" (alongside "ac" and "usb")
>
> Thanks! It sounds like we really ought to avoid hardcoding a list of
> names to look for here. I'll send a new patch that looks at
> /sys/class/power/*/type instead.

I mean, /sys/class/power_supply/*/type.

-Alex



More information about the wine-devel mailing list