1df849145SRui Paulo.\" Copyright (c) 2009 Michael Gmelin 2df849145SRui Paulo.\" All rights reserved. 3df849145SRui Paulo.\" 4df849145SRui Paulo.\" Redistribution and use in source and binary forms, with or without 5df849145SRui Paulo.\" modification, are permitted provided that the following conditions 6df849145SRui Paulo.\" are met: 7df849145SRui Paulo.\" 1. Redistributions of source code must retain the above copyright 8df849145SRui Paulo.\" notice, this list of conditions and the following disclaimer. 9df849145SRui Paulo.\" 2. Redistributions in binary form must reproduce the above copyright 10df849145SRui Paulo.\" notice, this list of conditions and the following disclaimer in the 11df849145SRui Paulo.\" documentation and/or other materials provided with the distribution. 12df849145SRui Paulo.\" 13df849145SRui Paulo.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14df849145SRui Paulo.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15df849145SRui Paulo.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16df849145SRui Paulo.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17df849145SRui Paulo.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18df849145SRui Paulo.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19df849145SRui Paulo.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20df849145SRui Paulo.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21df849145SRui Paulo.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22df849145SRui Paulo.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23df849145SRui Paulo.\" SUCH DAMAGE. 24df849145SRui Paulo.\" 25*1cc60ae8SBenedict Reuschling.Dd September 5, 2019 26891acefeSGavin Atkinson.Dt ACPI_WMI 4 27df849145SRui Paulo.Os 28df849145SRui Paulo.Sh NAME 29df849145SRui Paulo.Nm acpi_wmi 30df849145SRui Paulo.Nd "ACPI to WMI mapping driver" 31df849145SRui Paulo.Sh SYNOPSIS 32df849145SRui PauloTo compile this driver into the kernel, 33df849145SRui Pauloplace the following line in your 34df849145SRui Paulokernel configuration file: 35df849145SRui Paulo.Bd -ragged -offset indent 36df849145SRui Paulo.Cd "device acpi_wmi" 37df849145SRui Paulo.Ed 38df849145SRui Paulo.Pp 39df849145SRui PauloAlternatively, to load the driver as a 40df849145SRui Paulomodule at boot time, place the following line in 41df849145SRui Paulo.Xr loader.conf 5 : 42df849145SRui Paulo.Bd -literal -offset indent 43df849145SRui Pauloacpi_wmi_load="YES" 44df849145SRui Paulo.Ed 45df849145SRui Paulo.Sh DESCRIPTION 46df849145SRui PauloThe 47df849145SRui Paulo.Nm 48df849145SRui Paulodriver provides an interface for vendor specific WMI implementations 499e760f25SRui Paulo(e.g. HP and Acer laptops). 50885c97afSJaakko HeinonenIt creates /dev/wmistat%d, which can be read to get 51df849145SRui Pauloinformation about GUIDs found in the system. 52df849145SRui Paulo.Sh FILES 53885c97afSJaakko Heinonen.Bl -tag -width /dev/wmistat%d -compact 54885c97afSJaakko Heinonen.It Pa /dev/wmistat%d 55df849145SRui PauloWMI status device. 56df849145SRui Paulo.El 57ca78bcd7STakanori Watanabe.Sh SYSCTLS 58ca78bcd7STakanori WatanabeThe following sysctl node is currently implemented: 59ca78bcd7STakanori Watanabe.Bl -tag 60ca78bcd7STakanori Watanabe.It Va dev.acpi_wmi.%d.bmof 61ca78bcd7STakanori WatanabeManaged Object Format (MOF) blob. 62ca78bcd7STakanori WatanabeYou can obtain human readable output by bmf2mof in bmfdec tool. 63ca78bcd7STakanori Watanabe(https://github.com/pali/bmfdec) 64ca78bcd7STakanori Watanabe.El 65df849145SRui Paulo.Sh EXAMPLES 6663d46d1dSUlrich Spörlein.Bd -literal 67885c97afSJaakko Heinonen# cat /dev/wmistat0 68df849145SRui PauloGUID INST EXPE METH STR EVENT OID 69df849145SRui Paulo{5FB7F034-2C63-45E9-BE91-3D44E2C707E4} 1 NO WMAA NO NO AA 70df849145SRui Paulo{95F24279-4D7B-4334-9387-ACCDC67EF61C} 1 NO NO NO 0x80+ - 71df849145SRui Paulo{2B814318-4BE8-4707-9D84-A190A859B5D0} 1 NO NO NO 0xA0 - 72df849145SRui Paulo{05901221-D566-11D1-B2F0-00A0C9062910} 1 NO NO NO NO AB 73df849145SRui Paulo{1F4C91EB-DC5C-460B-951D-C7CB9B4B8D5E} 1 NO WMBA NO NO BA 74df849145SRui Paulo{2D114B49-2DFB-4130-B8FE-4A3C09E75133} 57 NO NO NO NO BC 75df849145SRui Paulo{988D08E3-68F4-4C35-AF3E-6A1B8106F83C} 20 NO NO NO NO BD 76df849145SRui Paulo{14EA9746-CE1F-4098-A0E0-7045CB4DA745} 1 NO NO NO NO BE 77df849145SRui Paulo{322F2028-0F84-4901-988E-015176049E2D} 2 NO NO NO NO BF 78df849145SRui Paulo{8232DE3D-663D-4327-A8F4-E293ADB9BF05} 0 NO NO NO NO BG 79df849145SRui Paulo{8F1F6436-9F42-42C8-BADC-0E9424F20C9A} 0 NO NO NO NO BH 80df849145SRui Paulo{8F1F6435-9F42-42C8-BADC-0E9424F20C9A} 0 NO NO NO NO BI 81ca78bcd7STakanori Watanabe# sysctl -b dev.acpi_wmi.0.bmof |bmf2mof 82ca78bcd7STakanori Watanabe[abstract] 83ca78bcd7STakanori Watanabeclass Lenovo_BIOSElement { 84ca78bcd7STakanori Watanabe}; 85ca78bcd7STakanori Watanabe 86ca78bcd7STakanori Watanabe[WMI, Dynamic, Provider("WMIProv"), WmiExpense(1), Description("Bios Setting"), 87ca78bcd7STakanori WatanabeGUID("{51F5230E-9677-46cd-A1CF-C0B23EE34DB7}"), Locale("MS\\0x409")] 88ca78bcd7STakanori Watanabeclass Lenovo_BiosSetting : Lenovo_BiosElement { 89ca78bcd7STakanori Watanabe [key, read] String InstanceName; 90ca78bcd7STakanori Watanabe [read] Boolean Active; 91ca78bcd7STakanori Watanabe [WmiDataId(1), Description("BIOS setting")] String CurrentSetting; 92ca78bcd7STakanori Watanabe }; 93ca78bcd7STakanori Watanabe ... 94ca78bcd7STakanori Watanabe 95df849145SRui Paulo.Ed 96df849145SRui Paulo.Sh SEE ALSO 97e550cb2fSGlen Barber.Xr acpi 4 98df849145SRui Paulo.Sh HISTORY 99df849145SRui PauloThe 100df849145SRui Paulo.Nm 101df849145SRui Paulodevice driver first appeared in 10274997661SRui Paulo.Fx 8.0 . 103df849145SRui Paulo.Sh AUTHORS 104df849145SRui Paulo.An -nosplit 105df849145SRui PauloThe 106df849145SRui Paulo.Nm 107df849145SRui Paulodriver was written by 1086c899950SBaptiste Daroussin.An Michael Gmelin Aq Mt freebsd@grem.de . 109df849145SRui Paulo.Pp 11050d922a0SGlen BarberWork has been inspired by the Linux acpi-wmi driver written by Carlos Corbacho. 111df849145SRui Paulo.Pp 112df849145SRui PauloSee http://www.microsoft.com/whdc/system/pnppwr/wmi/wmi-acpi.mspx for 113df849145SRui Paulothe specification of ACPI-WMI. 114df849145SRui Paulo.Pp 115ca78bcd7STakanori WatanabeMOF part has been inspired by the Linux wmi-bmof driver 116ca78bcd7STakanori Watanabewritten by Andy Lutomirski. 117ca78bcd7STakanori Watanabe.Pp 118df849145SRui PauloThis manual page was written by 1196c899950SBaptiste Daroussin.An Michael Gmelin Aq Mt freebsd@grem.de . 120