Интерактивная система просмотра системных руководств (man-ов)
acpi_ibm (4)
>> acpi_ibm (4) ( FreeBSD man: Специальные файлы /dev/* )
BSD mandoc
NAME
acpi_ibm
- ACPI extras driver for IBM laptops
SYNOPSIS
To compile this driver into the kernel,
place the following line in your
kernel configuration file:
device acpi_ibm
Alternatively, to load the driver as a
module at boot time, place the following line in
loader.conf5:
acpi_ibm_load="YES"
DESCRIPTION
The
driver provides support for hotkeys and other components of IBM laptops.
The main purpose of this driver is to provide an interface,
accessible via
sysctl(8)
and
devd(8),
through which applications can determine the status of
various laptop components.
While the
sysctl(8)
interface is enabled automatically after loading the driver, the
devd(8)
interface has to be enabled explicitly, as it may alter the default action of
certain keys.
This is done by setting the
events
sysctl as described below.
Specifying which keys should generate events is done by setting a bitmask,
whereas each bit represents one key or key combination.
This bitmask, accessible via the
eventmask
sysctl, is set to
availmask
by default, a value representing all possible keypress events on the specific
ThinkPad model.
The
driver provides a
led(4)
interface for the ThinkLight.
The ThinkLight can be made to blink by writing
ASCII
strings to the
/dev/led/thinklight
device.
SYSCTL VARIABLES
The following sysctls are currently implemented:
dev.acpi_ibm.0.initialmask
(read-only)
Bitmask of ACPI events before the
driver was loaded.
dev.acpi_ibm.0.availmask
(read-only)
Bitmask of all supported ACPI events.
dev.acpi_ibm.0.events
Enable ACPI events and set the
eventmask
to
availmask
Without the
driver being loaded, only the Fn+F4 button generates an ACPI event.
dev.acpi_ibm.0.eventmask
Sets the ACPI events which are reported to
devd(8).
Fn+F3, Fn+F4 and Fn+F12 always generate ACPI events, regardless which value
eventmask
has.
Depending on the ThinkPad model, the meaning of different bits in the
eventmask
may vary.
On a ThinkPad T41p this is a bitwise OR of the following:
1
Fn + F1
2
Fn + F2
4
Fn + F3 (LCD backlight)
8
Fn + F4 (Suspend to RAM)
16
Fn + F5 (Bluetooth)
32
Fn + F6
64
Fn + F7 (Screen expand)
128
Fn + F8
256
Fn + F9
512
Fn + F10
1024
Fn + F11
2048
Fn + F12 (Suspend to disk)
4096
Fn + Backspace
8192
Fn + Insert
16384
Fn + Delete
32768
Fn + Home (Brightness up)
65536
Fn + End (Brightness down)
131072
Fn + PageUp (ThinkLight)
262144
Fn + PageDown
524288
Fn + Space (Zoom)
1048576
Volume Up
2097152
Volume Down
4194304
Mute
8388608
Access IBM Button
dev.acpi_ibm.0.hotkey
(read-only)
Status of several buttons.
Every time a button is pressed, the respecting bit is toggled.
It is a bitwise OR of the following:
1
Home Button
2
Search Button
4
Mail Button
8
Access IBM Button
16
Zoom
32
Wireless LAN Button
64
Video Button
128
Hibernate Button
256
ThinkLight Button
512
Screen Expand
1024
Brightness Up/Down Button
2048
Volume Up/Down/Mute Button
dev.acpi_ibm.0.lcd_brightness
Current brightness level of the display.
dev.acpi_ibm.0.volume
Speaker volume.
dev.acpi_ibm.0.mute
Indicates, whether the speakers are muted or not.
dev.acpi_ibm.0.thinklight
Indicates, whether the ThinkLight keyboard light is activated or not.
dev.acpi_ibm.0.bluetooth
Toggle Bluetooth chip activity.
dev.acpi_ibm.0.wlan
(read-only)
Indicates whether the WLAN chip is active or not.
dev.acpi_ibm.0.fan
Indicates whether the fan is in automatic (1) or manual (0) mode.
Default is automatic mode.
This sysctl should be used with extreme precaution, since disabling automatic
fan control might overheat the ThinkPad and lead to permanent damage if the
fan_level
is not set accordingly.
dev.acpi_ibm.0.fan_level
Indicates at what speed the fan should run when being in manual mode.
Values are ranging from 0 (off) to 7 (max).
The resulting speed differs from model to model.
On a T41p this is as follows:
0
off
1, 2
~3000 RPM
3, 4, 5
~3600 RPM
6, 7
~4300 RPM
dev.acpi_ibm.0.fan_speed
(read-only)
Fan speed in rounds per minute.
A few older ThinkPads report the fan speed in levels ranging from 0 (off)
to 7 (max).
dev.acpi_ibm.0.thermal
(read-only)
Shows the readings of up to eight different temperature sensors.
Most ThinkPads include six or more temperature sensors but
only expose the CPU temperature through
acpi_thermal4.
Some ThinkPads have the below sensor layout which might vary depending on the
specific model:
CPU
Mini PCI Module
HDD
GPU
Built-in battery
UltraBay battery
Built-in battery
UltraBay battery
Defaults for these sysctls can be set in
sysctl.conf5.
An -nosplit
The
driver was written by
An Takanori Watanabe Aq [email protected]
and later mostly rewritten by
An Markus Brueffer Aq [email protected] .
This manual page was written by
An Christian Brueffer Aq [email protected]
and
An Markus Brueffer Aq [email protected] .