Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/acpi_wmi_bmof.4
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
\" Copyright (c) 2019 Takanori Watanabe | |||||
.\" All rights reserved. | |||||
.\" | |||||
.\" Redistribution and use in source and binary forms, with or without | |||||
.\" modification, are permitted provided that the following conditions | |||||
.\" are met: | |||||
.\" 1. Redistributions of source code must retain the above copyright | |||||
.\" notice, this list of conditions and the following disclaimer. | |||||
.\" 2. Redistributions in binary form must reproduce the above copyright | |||||
.\" notice, this list of conditions and the following disclaimer in the | |||||
.\" documentation and/or other materials provided with the distribution. | |||||
.\" | |||||
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | |||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | |||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
.\" SUCH DAMAGE. | |||||
.\" | |||||
.\" $FreeBSD$ | |||||
.\" | |||||
.Dd September 5, 2019 | |||||
.Dt ACPI_WMI_BMOF 4 | |||||
.Os | |||||
.Sh NAME | |||||
.Nm acpi_wmi_bmof | |||||
.Nd "extracting ACPI WMI embedded binary form of Managed Object Format file" | |||||
.Sh SYNOPSIS | |||||
To compile this driver into the kernel, | |||||
place the following line in your | |||||
kernel configuration file: | |||||
.Bd -ragged -offset indent | |||||
.Cd "device acpi_wmi" | |||||
.Cd "device acpi_wmi_bmof" | |||||
.Ed | |||||
.Pp | |||||
Alternatively, to load the driver as a | |||||
module at boot time, place the following line in | |||||
.Xr loader.conf 5 : | |||||
.Bd -literal -offset indent | |||||
acpi_wmi_bmof_load="YES" | |||||
.Ed | |||||
.Sh DESCRIPTION | |||||
The | |||||
.Nm | |||||
driver provides an interface for embedded Managed Object Format file in WMI. | |||||
(e.g. Lenovo Laptops). | |||||
It creates sysctl 'data' node under device sysctl node. | |||||
.\".Sh FILES | |||||
.\".Bl -tag -width /dev/wmistat%d -compact | |||||
.\".It Pa /dev/wmistat%d | |||||
.\"WMI status device. | |||||
.\".El | |||||
.Sh EXAMPLES | |||||
.Bd -literal | |||||
# sysctl -b dev.acpi_wmi_bmof.0.data | bmf2mof | |||||
[abstract] | |||||
class Lenovo_BIOSElement { | |||||
}; | |||||
[WMI, Dynamic, Provider("WMIProv"), WmiExpense(1), Description("Bios Setting"), | |||||
GUID("{51F5230E-9677-46cd-A1CF-C0B23EE34DB7}"), Locale("MS\\0x409")] | |||||
class Lenovo_BiosSetting : Lenovo_BiosElement { | |||||
[key, read] String InstanceName; | |||||
[read] Boolean Active; | |||||
[WmiDataId(1), Description("BIOS setting")] String CurrentSetting; | |||||
}; | |||||
bra. bra. | |||||
Here, bmf2mof is part of https://github.com/pali/bmfdec . | |||||
.Ed | |||||
.Sh SEE ALSO | |||||
.Xr acpi 4 | |||||
.Xr sysctl 4 | |||||
.Sh HISTORY | |||||
The | |||||
.Nm | |||||
device driver first appeared in | |||||
.Fx 13.0 . | |||||
.Sh AUTHORS | |||||
.An -nosplit | |||||
The | |||||
.Nm | |||||
driver was written by | |||||
.An Takanori Watanabe Aq Mt takawata@freebsd.org . | |||||
.Pp | |||||
Work has been inspired by the Linux wmi-bmof driver written by Andy Lutomirski . | |||||
.Pp | |||||
See http://www.microsoft.com/whdc/system/pnppwr/wmi/wmi-acpi.mspx for | |||||
the specification of ACPI-WMI. | |||||
.Pp | |||||
This manual page was written by | |||||
.An Takanori Watanabe Aq Mt takawata@freebsd.org . |