2 .\" Copyright (c) 2005 Philip Paeps <philip@FreeBSD.org>
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .Dt ACPI_FUJITSU 4 i386
33 .Nd Fujitsu Laptop Extras
35 .Cd "device acpi_fujitsu"
39 driver enables the ACPI-controlled buttons on Fujitsu notebooks.
40 The button events are sent to userspace via
44 interface is provided to simulate the hardware events.
46 Using this driver, one can control the brightness of the display, the volume
47 of the speakers, and the internal (eraserhead) mouse pointer.
49 These sysctls are currently implemented:
50 .Bl -tag -width indent
51 .It Va hw.acpi.fujitsu.lcd_brightness
52 Makes the LCD backlight brighter or dimmer.
53 .It Va hw.acpi.fujitsu.pointer_enable
54 Enables or disables the internal mouse pointer.
55 .It Va hw.acpi.fujitsu.volume
56 Controls the speaker volume.
57 .It Va hw.acpi.fujitsu.mute
61 Defaults for these sysctls can be set in
64 The following can be added to
66 in order to pass button events to a
67 .Pa /usr/local/sbin/acpi_oem_exec.sh
69 .Bd -literal -offset indent
71 match "system" "ACPI";
72 match "subsystem" "FUJITSU";
73 action "/usr/local/sbin/acpi_oem_exec.sh $notify fujitsu";
78 .Pa /usr/local/sbin/acpi_oem_exec.sh
79 script might look like:
80 .Bd -literal -offset indent
83 if [ "$1" = "" -o "$2" = "" ]
85 echo "usage: $0 notify oem_name"
91 BC_PRECOMMANDS="scale=2"
97 DISPLAY_PIPE=/tmp/acpi_${OEM}_display
101 LEVEL=`sysctl -n hw.acpi.${OEM}.mute`
102 if [ "$LEVEL" = "1" ]
104 MESSAGE="volume muted"
106 MESSAGE="volume unmuted"
110 LEVEL=`sysctl -n hw.acpi.${OEM}.pointer_enable`
111 if [ "$LEVEL" = "1" ]
113 MESSAGE="pointer enabled"
115 MESSAGE="pointer disabled"
119 LEVEL=`sysctl -n hw.acpi.${OEM}.lcd_brightness`
120 PERCENT=`${ECHO} "${BC_PRECOMMANDS} ; \\
121 ${LEVEL} / ${MAX_LCD_BRIGHTNESS} * 100" |\\
122 ${CALC} | ${CUT} -d . -f 1`
123 MESSAGE="brightness level ${PERCENT}%"
126 LEVEL=`sysctl -n hw.acpi.${OEM}.volume`
127 PERCENT=`${ECHO} "${BC_PRECOMMANDS} ; \\
128 ${LEVEL} / ${MAX_VOLUME} * 100" | \\
129 ${CALC} | ${CUT} -d . -f 1`
130 MESSAGE="volume level ${PERCENT}%"
136 if [ -p ${DISPLAY_PIPE} ]
138 ${ECHO} ${MESSAGE} >> ${DISPLAY_PIPE} &
150 driver first appeared in
156 driver was written by
157 .An Sean Bullington Aq sean@stalker.org ,
158 .An Anish Mistry Aq mistry.7@osu.edu ,
160 .An Marc Santcroos Aq marks@ripe.net .
162 This manual page was written by
163 .An Philip Paeps Aq philip@FreeBSD.org .