ACPI_FUJITSU(4FREEBSD) - Linux man page online | Special files

Fujitsu Laptop Extras.

February 8, 2010
ACPI_FUJITSU(4) BSD Kernel Interfaces Manual ACPI_FUJITSU(4)


acpi_fujitsu — Fujitsu Laptop Extras


To compile this driver into the kernel, place the following line in your kernel configura‐ tion file: device acpi_fujitsu Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): acpi_fujitsu_load="YES"


The acpi_fujitsu driver enables the ACPI-controlled buttons on Fujitsu notebooks. The but‐ ton events are sent to userspace via devd(8), and a sysctl(8) interface is provided to simu‐ late the hardware events. Using this driver, one can control the brightness of the display, the volume of the speak‐ ers, and the internal (eraserhead) mouse pointer.


These sysctls are currently implemented: Makes the LCD backlight brighter or dimmer. Enables or disables the internal mouse pointer. Controls the speaker volume. Mutes the speakers. Defaults for these sysctls can be set in sysctl.conf(5).


The following can be added to devd.conf(5) in order to pass button events to a /usr/local/sbin/ script: notify 10 { match "system" "ACPI"; match "subsystem" "FUJITSU"; action "/usr/local/sbin/ $notify fujitsu"; }; A possible /usr/local/sbin/ script might look like: #!/bin/sh # if [ "$1" = "" -o "$2" = "" ] then echo "usage: $0 notify oem_name" exit 1 fi NOTIFY=`echo $1` LOGGER="logger" CALC="bc" BC_PRECOMMANDS="scale=2" ECHO="echo" CUT="cut" MAX_LCD_BRIGHTNESS=7 MAX_VOLUME=16 OEM=$2 DISPLAY_PIPE=/tmp/acpi_${OEM}_display case ${NOTIFY} in 0x00) LEVEL=`sysctl -n hw.acpi.${OEM}.mute` if [ "$LEVEL" = "1" ] then MESSAGE="volume muted" else MESSAGE="volume unmuted" fi ;; 0x01) LEVEL=`sysctl -n hw.acpi.${OEM}.pointer_enable` if [ "$LEVEL" = "1" ] then MESSAGE="pointer enabled" else MESSAGE="pointer disabled" fi ;; 0x02) LEVEL=`sysctl -n hw.acpi.${OEM}.lcd_brightness` PERCENT=`${ECHO} "${BC_PRECOMMANDS} ; \ ${LEVEL} / ${MAX_LCD_BRIGHTNESS} * 100" |\ ${CALC} | ${CUT} -d . -f 1` MESSAGE="brightness level ${PERCENT}%" ;; 0x03) LEVEL=`sysctl -n hw.acpi.${OEM}.volume` PERCENT=`${ECHO} "${BC_PRECOMMANDS} ; \ ${LEVEL} / ${MAX_VOLUME} * 100" | \ ${CALC} | ${CUT} -d . -f 1` MESSAGE="volume level ${PERCENT}%" ;; *) ;; esac ${LOGGER} ${MESSAGE} if [ -p ${DISPLAY_PIPE} ] then ${ECHO} ${MESSAGE} >> ${DISPLAY_PIPE} & fi exit 0


acpi(4), sysctl.conf(5), devd(8), sysctl(8)


The acpi_fujitsu driver first appeared in FreeBSD 5.4.


The acpi_fujitsu driver was written by Sean Bullington <>, Anish Mistry <>, and Marc Santcroos <>. This manual page was written by Philip Paeps <>.
BSD February 8, 2010 BSD
This manual Reference Other manuals
acpi_fujitsu(4freebsd) referred by
refer to acpi(4freebsd) | sysctl(8) | sysctl.conf(5)
Download raw manual
Index BSD Kernel Interfaces Manual (+773) BSD (+3984) № 4 (+981)
Go top