ACPI_HP(4) | Device Drivers Manual | ACPI_HP(4) |
acpi_hp
— ACPI
extras driver for HP laptops
To compile this driver into the kernel, place the following line in your kernel configuration file:
device acpi_hp
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
acpi_hp_load="YES"
The acpi_hp
driver provides support for
ACPI-controlled features found on HP laptops that use a WMI enabled BIOS
(e.g., HP Compaq 8510p and 6510p).
The main purpose of this driver is to provide an interface, accessible via sysctl(8), devd(8) and devfs(8), through which applications can determine and change the status of various laptop components and BIOS settings.
Devd events received by devd(8) provide the following information:
ACPI
"HP
"Event codes:
You can read /dev/hpcmi to see your current BIOS settings. The detail level can be adjusted by setting the sysctl cmi_detail as described below.
The following sysctls are currently implemented:
Defaults for these sysctls can be set in sysctl.conf(5).
The acpi_hp
driver has been reported to
support the following hardware:
It should work on most HP laptops that feature a WMI enabled BIOS.
The following can be added to devd.conf(5) in order disable the LAN interface when WLAN on air and reenable if it is not:
notify 0 { match "system" "ACPI"; match "subsystem" "HP"; match "notify" "0xc0"; action "ifconfig em0 up"; }; notify 0 { match "system" "ACPI"; match "subsystem" "HP"; match "notify" "0xc1"; action "ifconfig em0 down"; };
Enable the ambient light sensor:
sysctl dev.acpi_hp.0.als_enabled=1
Enable Bluetooth:
sysctl dev.acpi_hp.0.bt_enabled=1
Get BIOS settings:
cat /dev/hpcmi Serial Port Disable Infrared Port Enable Parallel Port Disable Flash Media Reader Disable USB Ports including Express Card slot Enable 1394 Port Enable Cardbus Slot Disable Express Card Slot Disable (...)
Set maximum detail level for /dev/hpcmi output:
sysctl dev.acpi_hp.0.cmi_detail=7
acpi(4), acpi_wmi(4), sysctl.conf(5), devd(8), devfs(8), sysctl(8)
The acpi_hp
device driver first appeared
in FreeBSD 8.0.
The acpi_hp
driver was written by
Michael Gmelin
<freebsd@grem.de>.
It has been inspired by hp-wmi driver, which implements a subset of these features (hotkeys) on Linux.
This manual page was written by Michael Gmelin <freebsd@grem.de>.
This driver is experimental and has only been tested on i386 on an HP Compaq 8510p which featured all supported wireless devices (WWAN/BT/WLAN). Expect undefined results when operating on different hardware.
Loading the driver is slow. Reading from /dev/hpcmi is even slower.
Additional features like HP specific sensor readings or writing BIOS settings are not supported.
June 19, 2015 | Debian |