frederik-h / acer-wmi-battery

A linux kernel driver for the Acer WMI battery health control interface
GNU General Public License v2.0
113 stars 15 forks source link

How do you get WMI GUID of acer battery? #25

Closed milynox closed 1 year ago

milynox commented 1 year ago

I'm new to programming in Linux and really curious how you get WMI GUID of battery configuration.

I try to do some researches and these leads me to Event Viewer in Windows. However I find it so hard & painful to locate this info in Event Viewer.

Any other ways to try? @frederik-h

frederik-h commented 1 year ago

You can get this information from the WMI MOF information that is contained in your ACPI DSDT. The tables can be dumped on Linux using acpidump. You can then decompile the MOF, e.g. using this tool. This contains the GUIDs. But this information alone does not tell you how to call the WMI functions. For this, I decompiled the Acer Care Center application which is based on .Net using ilspy.

milynox commented 1 year ago

Wow, this is totally new to me. Must take a little bit of time to learn about these. Many thanks for your info @frederik-h