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

Alex Henrie alexhenrie24 at gmail.com
Fri Apr 22 12:32:24 CDT 2022


On Fri, Apr 22, 2022 at 2:20 AM Alex Henrie <alexhenrie24 at gmail.com> wrote:
>
> +    static const char* ac_names[] =
> +    {
> +        "AC",
> +        "ACAD",
> +        "ADP0",
> +        "ADP1",
> +        NULL
> +    };
> +    static const char* bat_names[] =
> +    {
> +        "BAT0",
> +        "BAT1",
> +        NULL
> +    };

Sorry, I kind of jumped the gun on this. I looked through the Google
search results more thoroughly this morning and discovered that AC0,
AC1, and BAT are also common names.

If any of you would like to help, could you look in
/sys/class/power_supply on your computer and let me know if your
devices have other names that I missed?

-Alex



More information about the wine-devel mailing list