2 .\" Copyright (c) 2004 OGAWA Takaya <t-ogawa@triaez.kaisei.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_PANASONIC 4 i386
33 .Nd "ACPI hotkey driver for Panasonic laptops"
35 To compile this driver into the kernel,
36 place the following line in your
37 kernel configuration file:
38 .Bd -ragged -offset indent
39 .Cd "device acpi_panasonic"
42 Alternatively, to load the driver as a
43 module at boot time, place the following line in
45 .Bd -literal -offset indent
46 acpi_panasonic_load="YES"
51 driver enables such hotkey facilities of various Panasonic laptops as
52 changing LCD brightness, controlling mixer volumes, entering sleep or
53 suspended state and so on.
54 On the following models it is reported to work: Let's note (or
55 Toughbook, outside Japan) CF-R1N, CF-R2A and CF-R3.
56 It may also work on other models as well.
58 The driver consists of three functionalities.
59 The first is to detect hotkey events and take corresponding actions,
60 which include changing LCD luminance and speaker mute state.
61 The second role is to notify occurrences of the event by way of
65 The third and last is to provide a way to adjust LCD brightness and
69 There are 9 hotkeys available on the supported hardwares:
71 .Bl -tag -compact -offset indent
73 Make LCD backlight darker.
75 Make LCD backlight brighter.
77 Switch video output between LCD and CRT.
82 Toggle muting the speaker.
84 Turn the mixer volume down.
86 Turn the mixer volume up.
88 Enter suspend-to-RAM state.
92 Enter suspend-to-disk state.
95 Actions are automatically taken within the driver for
99 For the other events such as
100 mixer control and showing battery status,
102 should take the role as described below.
103 .Ss Xr devd 8 Ss Events
106 the hotkey event provides the following information:
108 .Bl -tag -compact -offset indent
114 The source of the event in ACPI namespace.
115 The value depends on the model but typically
118 Event code (see below).
121 Event codes to be generated are assigned as follows:
122 .Bl -tag -offset indent
131 .It 0x01-0x07, 0x09, 0x1a
141 The following MIBs are available:
142 .Bl -tag -width indent
143 .It Va hw.acpi.panasonic.lcd_brightness_max
144 The maximum level of brightness.
145 The value is read only and
146 automatically set according to hardware model.
147 .It Va hw.acpi.panasonic.lcd_brightness_max
148 The minimum level of brightness.
149 The value is read only and
150 automatically set according to hardware model.
151 .It Va hw.acpi.panasonic.lcd_brightness
152 Current brightness level of the LCD (read-write).
153 The value ranges from
154 .Va hw.acpi.panasonic.lcd_brightness_min
156 .Va hw.acpi.panasonic.lcd_brightness_max .
157 .It Va hw.acpi.panasonic.sound_mute
158 A read-write boolean flag to control whether to mute the speaker.
159 The value 1 means to mute and 0 not.
169 driver first appeared in
175 driver and this manual page were written by
176 .An OGAWA Takaya Aq t\-ogawa@triaez.kaisei.org
178 .An TAKAHASHI Yoshihiro Aq nyan@FreeBSD.org .