<div dir="ltr"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 22, 2022, 12:32 Alex Henrie <<a href="mailto:alexhenrie24@gmail.com" target="_blank">alexhenrie24@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Apr 22, 2022 at 2:20 AM Alex Henrie <<a href="mailto:alexhenrie24@gmail.com" rel="noreferrer" target="_blank">alexhenrie24@gmail.com</a>> wrote:<br>
><br>
> +    static const char* ac_names[] =<br>
> +    {<br>
> +        "AC",<br>
> +        "ACAD",<br>
> +        "ADP0",<br>
> +        "ADP1",<br>
> +        NULL<br>
> +    };<br>
> +    static const char* bat_names[] =<br>
> +    {<br>
> +        "BAT0",<br>
> +        "BAT1",<br>
> +        NULL<br>
> +    };<br>
<br>
Sorry, I kind of jumped the gun on this. I looked through the Google<br>
search results more thoroughly this morning and discovered that AC0,<br>
AC1, and BAT are also common names.<br>
<br>
If any of you would like to help, could you look in<br>
/sys/class/power_supply on your computer and let me know if your<br>
devices have other names that I missed?<br>
<br>
-Alex<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This matches my amd64 hardware.<br><br></div><div>My armv7l chromebook reports the battery as: "sbs-20-000b" (alongside "gpio-charger")<br></div><div>My aarch64 pinebook reports the battery as: "battery" (alongside "ac" and "usb")<br>




</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div></div>
</div>