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