1*954ac404SAlexander Ziaee.\"- 2*954ac404SAlexander Ziaee.\" SPDX-License-Identifier: BSD-2-Clause 3*954ac404SAlexander Ziaee.\" 4df849145SRui Paulo.\" Copyright (c) 2009 Michael Gmelin 5df849145SRui Paulo.\" All rights reserved. 6df849145SRui Paulo.\" 7df849145SRui Paulo.\" Redistribution and use in source and binary forms, with or without 8df849145SRui Paulo.\" modification, are permitted provided that the following conditions 9df849145SRui Paulo.\" are met: 10df849145SRui Paulo.\" 1. Redistributions of source code must retain the above copyright 11df849145SRui Paulo.\" notice, this list of conditions and the following disclaimer. 12df849145SRui Paulo.\" 2. Redistributions in binary form must reproduce the above copyright 13df849145SRui Paulo.\" notice, this list of conditions and the following disclaimer in the 14df849145SRui Paulo.\" documentation and/or other materials provided with the distribution. 15df849145SRui Paulo.\" 16df849145SRui Paulo.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17df849145SRui Paulo.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18df849145SRui Paulo.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19df849145SRui Paulo.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20df849145SRui Paulo.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21df849145SRui Paulo.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22df849145SRui Paulo.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23df849145SRui Paulo.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24df849145SRui Paulo.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25df849145SRui Paulo.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26df849145SRui Paulo.\" SUCH DAMAGE. 27df849145SRui Paulo.\" 28*954ac404SAlexander Ziaee.Dd June 12, 2025 29891acefeSGavin Atkinson.Dt ACPI_WMI 4 30df849145SRui Paulo.Os 31df849145SRui Paulo.Sh NAME 32df849145SRui Paulo.Nm acpi_wmi 33*954ac404SAlexander Ziaee.Nd ACPI to WMI mapping driver 34df849145SRui Paulo.Sh SYNOPSIS 35df849145SRui PauloTo compile this driver into the kernel, 36df849145SRui Pauloplace the following line in your 37df849145SRui Paulokernel configuration file: 38*954ac404SAlexander Ziaee.Pp 39*954ac404SAlexander Ziaee.Dl Cd "device acpi_wmi" 40df849145SRui Paulo.Pp 41df849145SRui PauloAlternatively, to load the driver as a 42df849145SRui Paulomodule at boot time, place the following line in 43df849145SRui Paulo.Xr loader.conf 5 : 44*954ac404SAlexander Ziaee.Pp 45*954ac404SAlexander Ziaee.Dl acpi_wmi_load="YES" 46df849145SRui Paulo.Sh DESCRIPTION 47df849145SRui PauloThe 48df849145SRui Paulo.Nm 49df849145SRui Paulodriver provides an interface for vendor specific WMI implementations 50*954ac404SAlexander Ziaee.Pq e.g. HP and Acer laptops . 51*954ac404SAlexander ZiaeeIt creates 52*954ac404SAlexander Ziaee.Pa /dev/wmistat%d , 53*954ac404SAlexander Ziaeewhich can be read to get information about GUIDs found in the system. 54df849145SRui Paulo.Sh FILES 55885c97afSJaakko Heinonen.Bl -tag -width /dev/wmistat%d -compact 56885c97afSJaakko Heinonen.It Pa /dev/wmistat%d 57*954ac404SAlexander ZiaeeWMI status devices. 58df849145SRui Paulo.El 59ca78bcd7STakanori Watanabe.Sh SYSCTLS 60ca78bcd7STakanori WatanabeThe following sysctl node is currently implemented: 61*954ac404SAlexander Ziaee.Bl -tag -width "dev.acpi_wmi.%d.bmof" 62ca78bcd7STakanori Watanabe.It Va dev.acpi_wmi.%d.bmof 63*954ac404SAlexander Ziaeebinary Managed Object Format (MOF) buffer 64ca78bcd7STakanori Watanabe.El 65df849145SRui Paulo.Sh EXAMPLES 66*954ac404SAlexander ZiaeeRead GUIDs from the first WMI interface found in the system: 6763d46d1dSUlrich Spörlein.Bd -literal 68885c97afSJaakko Heinonen# cat /dev/wmistat0 69df849145SRui PauloGUID INST EXPE METH STR EVENT OID 70df849145SRui Paulo{5FB7F034-2C63-45E9-BE91-3D44E2C707E4} 1 NO WMAA NO NO AA 71df849145SRui Paulo{95F24279-4D7B-4334-9387-ACCDC67EF61C} 1 NO NO NO 0x80+ - 72df849145SRui Paulo{2B814318-4BE8-4707-9D84-A190A859B5D0} 1 NO NO NO 0xA0 - 73df849145SRui Paulo{05901221-D566-11D1-B2F0-00A0C9062910} 1 NO NO NO NO AB 74df849145SRui Paulo{1F4C91EB-DC5C-460B-951D-C7CB9B4B8D5E} 1 NO WMBA NO NO BA 75df849145SRui Paulo{2D114B49-2DFB-4130-B8FE-4A3C09E75133} 57 NO NO NO NO BC 76df849145SRui Paulo{988D08E3-68F4-4C35-AF3E-6A1B8106F83C} 20 NO NO NO NO BD 77df849145SRui Paulo{14EA9746-CE1F-4098-A0E0-7045CB4DA745} 1 NO NO NO NO BE 78df849145SRui Paulo{322F2028-0F84-4901-988E-015176049E2D} 2 NO NO NO NO BF 79df849145SRui Paulo{8232DE3D-663D-4327-A8F4-E293ADB9BF05} 0 NO NO NO NO BG 80df849145SRui Paulo{8F1F6436-9F42-42C8-BADC-0E9424F20C9A} 0 NO NO NO NO BH 81df849145SRui Paulo{8F1F6435-9F42-42C8-BADC-0E9424F20C9A} 0 NO NO NO NO BI 82*954ac404SAlexander Ziaee.Ed 83*954ac404SAlexander Ziaee.Pp 84*954ac404SAlexander ZiaeeRead first WMI interface description with 85*954ac404SAlexander Ziaee.Sy bmf2mof 86*954ac404SAlexander Ziaeefrom 87*954ac404SAlexander Ziaee.Pa ports/converters/bmfdec : 88*954ac404SAlexander Ziaee.Bd -literal 89ca78bcd7STakanori Watanabe# sysctl -b dev.acpi_wmi.0.bmof | bmf2mof 90ca78bcd7STakanori Watanabe[abstract] 91ca78bcd7STakanori Watanabeclass Lenovo_BIOSElement { 92ca78bcd7STakanori Watanabe}; 93ca78bcd7STakanori Watanabe 94ca78bcd7STakanori Watanabe[WMI, Dynamic, Provider("WMIProv"), WmiExpense(1), Description("Bios Setting"), 95ca78bcd7STakanori WatanabeGUID("{51F5230E-9677-46cd-A1CF-C0B23EE34DB7}"), Locale("MS\\0x409")] 96ca78bcd7STakanori Watanabeclass Lenovo_BiosSetting : Lenovo_BiosElement { 97ca78bcd7STakanori Watanabe [key, read] String InstanceName; 98ca78bcd7STakanori Watanabe [read] Boolean Active; 99ca78bcd7STakanori Watanabe [WmiDataId(1), Description("BIOS setting")] String CurrentSetting; 100ca78bcd7STakanori Watanabe }; 101ca78bcd7STakanori Watanabe ... 102df849145SRui Paulo.Ed 103df849145SRui Paulo.Sh SEE ALSO 104e550cb2fSGlen Barber.Xr acpi 4 105*954ac404SAlexander Ziaee.Sh STANDARDS 106*954ac404SAlexander Ziaee.Rs 107*954ac404SAlexander Ziaee.%T Windows Instrumentation: WMI and ACPI 108*954ac404SAlexander Ziaee.%I Microsoft Corporation 109*954ac404SAlexander Ziaee.%U https://github.com/microsoft/Windows-driver-samples/tree/main/wmi/wmiacpi 110*954ac404SAlexander Ziaee.Re 111df849145SRui Paulo.Sh HISTORY 112df849145SRui PauloThe 113df849145SRui Paulo.Nm 114df849145SRui Paulodevice driver first appeared in 11574997661SRui Paulo.Fx 8.0 . 116df849145SRui Paulo.Sh AUTHORS 117df849145SRui Paulo.An -nosplit 118df849145SRui PauloThe 119df849145SRui Paulo.Nm 120df849145SRui Paulodriver was written by 1216c899950SBaptiste Daroussin.An Michael Gmelin Aq Mt freebsd@grem.de . 122df849145SRui Paulo.Pp 123*954ac404SAlexander ZiaeeWork inspired by the Linux 124*954ac404SAlexander Ziaee.Sy acpi-wmi 125*954ac404SAlexander Ziaeedriver written by Carlos Corbacho. 126df849145SRui Paulo.Pp 127*954ac404SAlexander ZiaeeMOF handling inspired by the Linux 128*954ac404SAlexander Ziaee.Sy wmi-bmof 129*954ac404SAlexander Ziaeedriver written by Andy Lutomirski. 130ca78bcd7STakanori Watanabe.Pp 131df849145SRui PauloThis manual page was written by 1326c899950SBaptiste Daroussin.An Michael Gmelin Aq Mt freebsd@grem.de . 133