2004-07-21 14:47:54 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2004 OGAWA Takaya <t-ogawa@triaez.kaisei.org>
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2009-09-17 13:12:24 +00:00
|
|
|
.Dd September 17, 2009
|
2004-07-21 14:47:54 +00:00
|
|
|
.Dt ACPI_PANASONIC 4 i386
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm acpi_panasonic
|
|
|
|
.Nd "ACPI hotkey driver for Panasonic laptops"
|
|
|
|
.Sh SYNOPSIS
|
2006-04-01 11:21:00 +00:00
|
|
|
To compile this driver into the kernel,
|
|
|
|
place the following line in your
|
|
|
|
kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
2004-07-21 14:47:54 +00:00
|
|
|
.Cd "device acpi_panasonic"
|
2006-04-01 11:21:00 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Alternatively, to load the driver as a
|
|
|
|
module at boot time, place the following line in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
acpi_panasonic_load="YES"
|
|
|
|
.Ed
|
2004-07-21 14:47:54 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver enables such hotkey facilities of various Panasonic laptops as
|
|
|
|
changing LCD brightness, controlling mixer volumes, entering sleep or
|
|
|
|
suspended state and so on.
|
|
|
|
On the following models it is reported to work: Let's note (or
|
|
|
|
Toughbook, outside Japan) CF-R1N, CF-R2A and CF-R3.
|
|
|
|
It may also work on other models as well.
|
|
|
|
.Pp
|
|
|
|
The driver consists of three functionalities.
|
|
|
|
The first is to detect hotkey events and take corresponding actions,
|
|
|
|
which include changing LCD luminance and speaker mute state.
|
2005-07-31 03:30:48 +00:00
|
|
|
The second role is to notify occurrences of the event by way of
|
2004-07-21 14:47:54 +00:00
|
|
|
.Xr devctl 4
|
|
|
|
and eventually to
|
|
|
|
.Xr devd 8 .
|
|
|
|
The third and last is to provide a way to adjust LCD brightness and
|
2005-01-14 09:28:17 +00:00
|
|
|
sound mute state via
|
|
|
|
.Xr sysctl 8 .
|
2004-07-21 14:47:54 +00:00
|
|
|
.Ss Hotkeys
|
|
|
|
There are 9 hotkeys available on the supported hardwares:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -compact -offset indent
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F1
|
2004-07-21 14:47:54 +00:00
|
|
|
Make LCD backlight darker.
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F2
|
2004-07-21 14:47:54 +00:00
|
|
|
Make LCD backlight brighter.
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F3
|
2004-07-21 14:47:54 +00:00
|
|
|
Switch video output between LCD and CRT.
|
|
|
|
Not supported by the
|
|
|
|
.Nm
|
|
|
|
driver.
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F4
|
2004-07-21 14:47:54 +00:00
|
|
|
Toggle muting the speaker.
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F5
|
2004-07-21 14:47:54 +00:00
|
|
|
Turn the mixer volume down.
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F6
|
2004-07-21 14:47:54 +00:00
|
|
|
Turn the mixer volume up.
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F7
|
2004-07-21 14:47:54 +00:00
|
|
|
Enter suspend-to-RAM state.
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F9
|
2004-07-21 14:47:54 +00:00
|
|
|
Show battery status.
|
2005-01-14 09:28:17 +00:00
|
|
|
.It Sy Fn+F10
|
2004-07-21 14:47:54 +00:00
|
|
|
Enter suspend-to-disk state.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Actions are automatically taken within the driver for
|
2005-01-14 09:28:17 +00:00
|
|
|
.Sy Fn+F1 , Fn+F2
|
2004-07-21 14:47:54 +00:00
|
|
|
and
|
2005-01-14 09:28:17 +00:00
|
|
|
.Sy Fn+F4 .
|
2004-07-21 14:47:54 +00:00
|
|
|
For the other events such as
|
|
|
|
mixer control and showing battery status,
|
|
|
|
.Xr devd 8
|
|
|
|
should take the role as described below.
|
2005-01-14 09:28:17 +00:00
|
|
|
.Ss Xr devd 8 Ss Events
|
2004-07-21 14:47:54 +00:00
|
|
|
When notified to
|
|
|
|
.Xr devd 8 ,
|
|
|
|
the hotkey event provides the following information:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -compact -offset indent
|
|
|
|
.It system
|
2005-01-14 09:28:17 +00:00
|
|
|
.Qq Li ACPI
|
2004-07-21 14:47:54 +00:00
|
|
|
.It subsystem
|
2005-01-14 09:28:17 +00:00
|
|
|
.Qq Li Panasonic
|
2004-07-21 14:47:54 +00:00
|
|
|
.It type
|
|
|
|
The source of the event in ACPI namespace.
|
|
|
|
The value depends on the model but typically
|
2005-01-14 09:28:17 +00:00
|
|
|
.Qq Li \e_SB_.HKEY .
|
2004-07-21 14:47:54 +00:00
|
|
|
.It notify
|
|
|
|
Event code (see below).
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Event codes to be generated are assigned as follows:
|
|
|
|
.Bl -tag -offset indent
|
|
|
|
.It 0x81-0x86, 0x89
|
2005-01-14 09:28:17 +00:00
|
|
|
.Sy Fn+F<n>
|
|
|
|
pressed.
|
|
|
|
0x81 corresponds to
|
|
|
|
.Sy Fn+F1 ,
|
2004-07-21 14:47:54 +00:00
|
|
|
0x82 corresponds to
|
2005-01-14 09:28:17 +00:00
|
|
|
.Sy Fn+F2 ,
|
2004-07-21 14:47:54 +00:00
|
|
|
and so on.
|
|
|
|
.It 0x01-0x07, 0x09, 0x1a
|
2005-01-14 09:28:17 +00:00
|
|
|
.Sy Fn+F<n>
|
|
|
|
released.
|
|
|
|
0x01 corresponds to
|
|
|
|
.Sy Fn+F1 ,
|
2004-07-21 14:47:54 +00:00
|
|
|
0x02 corresponds to
|
2005-01-14 09:28:17 +00:00
|
|
|
.Sy Fn+F2 ,
|
2004-07-21 14:47:54 +00:00
|
|
|
and so on.
|
|
|
|
.El
|
2005-07-15 17:35:26 +00:00
|
|
|
.Sh SYSCTL VARIABLES
|
2004-11-09 18:07:20 +00:00
|
|
|
The following MIBs are available:
|
2004-07-21 14:47:54 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va hw.acpi.panasonic.lcd_brightness_max
|
2005-01-14 09:28:17 +00:00
|
|
|
The maximum level of brightness.
|
|
|
|
The value is read only and
|
2004-11-09 18:07:20 +00:00
|
|
|
automatically set according to hardware model.
|
2009-09-17 13:12:24 +00:00
|
|
|
.It Va hw.acpi.panasonic.lcd_brightness_min
|
2005-01-14 09:28:17 +00:00
|
|
|
The minimum level of brightness.
|
|
|
|
The value is read only and
|
2004-11-09 18:07:20 +00:00
|
|
|
automatically set according to hardware model.
|
2004-07-21 14:47:54 +00:00
|
|
|
.It Va hw.acpi.panasonic.lcd_brightness
|
2004-11-09 18:07:20 +00:00
|
|
|
Current brightness level of the LCD (read-write).
|
|
|
|
The value ranges from
|
|
|
|
.Va hw.acpi.panasonic.lcd_brightness_min
|
|
|
|
to
|
2004-07-21 14:47:54 +00:00
|
|
|
.Va hw.acpi.panasonic.lcd_brightness_max .
|
|
|
|
.It Va hw.acpi.panasonic.sound_mute
|
2004-11-09 18:07:20 +00:00
|
|
|
A read-write boolean flag to control whether to mute the speaker.
|
2004-07-21 14:47:54 +00:00
|
|
|
The value 1 means to mute and 0 not.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr acpi 4 ,
|
2005-01-14 09:28:17 +00:00
|
|
|
.Xr devd.conf 5 ,
|
2004-07-21 14:47:54 +00:00
|
|
|
.Xr devd 8 ,
|
2005-01-14 09:28:17 +00:00
|
|
|
.Xr sysctl 8
|
2004-11-09 18:07:20 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver first appeared in
|
|
|
|
.Fx 5.3 .
|
2004-07-21 14:47:54 +00:00
|
|
|
.Sh AUTHORS
|
2005-01-14 09:28:17 +00:00
|
|
|
.An -nosplit
|
2004-07-21 14:47:54 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver and this manual page were written by
|
|
|
|
.An OGAWA Takaya Aq t\-ogawa@triaez.kaisei.org
|
|
|
|
and
|
|
|
|
.An TAKAHASHI Yoshihiro Aq nyan@FreeBSD.org .
|