Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

acpi_fujitsu(4) [debian man page]

ACPI_FUJITSU(4) 					 BSD/i386 Kernel Interfaces Manual					   ACPI_FUJITSU(4)

NAME
acpi_fujitsu -- Fujitsu Laptop Extras SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration 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" DESCRIPTION
The acpi_fujitsu driver enables the ACPI-controlled buttons on Fujitsu notebooks. The button events are sent to userspace via devd(8), and a sysctl(8) interface is provided to simulate the hardware events. Using this driver, one can control the brightness of the display, the volume of the speakers, and the internal (eraserhead) mouse pointer. SYSCTL VARIABLES
These sysctls are currently implemented: hw.acpi.fujitsu.lcd_brightness Makes the LCD backlight brighter or dimmer. hw.acpi.fujitsu.pointer_enable Enables or disables the internal mouse pointer. hw.acpi.fujitsu.volume Controls the speaker volume. hw.acpi.fujitsu.mute Mutes the speakers. Defaults for these sysctls can be set in sysctl.conf(5). EXAMPLES
The following can be added to devd.conf(5) in order to pass button events to a /usr/local/sbin/acpi_oem_exec.sh script: notify 10 { match "system" "ACPI"; match "subsystem" "FUJITSU"; action "/usr/local/sbin/acpi_oem_exec.sh $notify fujitsu"; }; A possible /usr/local/sbin/acpi_oem_exec.sh 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 SEE ALSO
acpi(4), sysctl.conf(5), devd(8), sysctl(8) HISTORY
The acpi_fujitsu driver first appeared in FreeBSD 5.4. AUTHORS
The acpi_fujitsu driver was written by Sean Bullington <shegget@gmail.com>, Anish Mistry <mistry.7@osu.edu>, and Marc Santcroos <marks@ripe.net>. This manual page was written by Philip Paeps <philip@FreeBSD.org>. BSD
March 20, 2005 BSD

Check Out this Related Man Page

ACPI_ASUS(4)						 BSD/i386 Kernel Interfaces Manual					      ACPI_ASUS(4)

NAME
acpi_asus -- Asus Laptop Extras SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file: device acpi_asus Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): acpi_asus_load="YES" DESCRIPTION
The acpi_asus driver provides support for the extra ACPI-controlled gadgets, such as hotkeys and leds, found on recent Asus (and Medion) lap- tops. It allows one to use the sysctl(8) interface to manipulate the brightness of the LCD panel and the display output state. Hotkey events are passed to devd(8) for easy handling in userspace with the default configuration in /etc/devd/asus.conf. Currently, the following Asus laptops are fully supported: xxN A1x A2x A3N A4D A6VM D1x J1x L2B L2D L2E L3C L3D L3H L4E L4R L5x L8x M1A M2E M6N M6R S1x S2x V6V W5A Eee PC Additionally, acpi_asus also supports the Asus-compatible ATK0100 interface found in Samsung P30/P35 laptops. SYSCTL VARIABLES
The following sysctls are currently implemented: hw.acpi.asus.lcd_brightness Makes the LCD backlight brighter or dimmer (higher values are brighter). hw.acpi.asus.lcd_backlight Turns the LCD backlight on or off. hw.acpi.asus.video_output Sets the active display to use according to a bitwise OR of the following: 0 No display 1 LCD 2 CRT 4 TV-Out Some models also support video switching via the generic acpi_video(4) driver. Most models do not, however. Defaults for these variables can be set in sysctl.conf(5), which is parsed at boot-time. SEE ALSO
acpi(4), acpi_video(4), sysctl.conf(5), sysctl(8) The acpi4asus Project, http://sourceforge.net/projects/acpi4asus/. HISTORY
The acpi_asus driver first appeared in FreeBSD 5.3. AUTHORS
The acpi_asus driver and this manual page were written by Philip Paeps <philip@FreeBSD.org>. Inspiration came from the acpi4asus project started by Julien Lerouge which maintains a driver implementing this functionality in the Linux kernel. BSD
December 17, 2008 BSD
Man Page