1e6769554SRui Paulo.\" 2e6769554SRui Paulo.\" Copyright (c) 2004 OGAWA Takaya <t-ogawa@triaez.kaisei.org> 3e6769554SRui Paulo.\" All rights reserved. 4e6769554SRui Paulo.\" 5e6769554SRui Paulo.\" Redistribution and use in source and binary forms, with or without 6e6769554SRui Paulo.\" modification, are permitted provided that the following conditions 7e6769554SRui Paulo.\" are met: 8e6769554SRui Paulo.\" 1. Redistributions of source code must retain the above copyright 9e6769554SRui Paulo.\" notice, this list of conditions and the following disclaimer. 10e6769554SRui Paulo.\" 2. Redistributions in binary form must reproduce the above copyright 11e6769554SRui Paulo.\" notice, this list of conditions and the following disclaimer in the 12e6769554SRui Paulo.\" documentation and/or other materials provided with the distribution. 13e6769554SRui Paulo.\" 14e6769554SRui Paulo.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15e6769554SRui Paulo.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16e6769554SRui Paulo.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17e6769554SRui Paulo.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18e6769554SRui Paulo.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19e6769554SRui Paulo.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20e6769554SRui Paulo.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21e6769554SRui Paulo.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22e6769554SRui Paulo.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23e6769554SRui Paulo.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24e6769554SRui Paulo.\" SUCH DAMAGE. 25e6769554SRui Paulo.\" 2610b942e5SXin LI.Dd June 19, 2015 27891acefeSGavin Atkinson.Dt ACPI_PANASONIC 4 28e6769554SRui Paulo.Os 29e6769554SRui Paulo.Sh NAME 30e6769554SRui Paulo.Nm acpi_panasonic 31e6769554SRui Paulo.Nd "ACPI hotkey driver for Panasonic laptops" 32e6769554SRui Paulo.Sh SYNOPSIS 33e6769554SRui PauloTo compile this driver into the kernel, 34e6769554SRui Pauloplace the following line in your 35e6769554SRui Paulokernel configuration file: 36e6769554SRui Paulo.Bd -ragged -offset indent 37e6769554SRui Paulo.Cd "device acpi_panasonic" 38e6769554SRui Paulo.Ed 39e6769554SRui Paulo.Pp 40e6769554SRui PauloAlternatively, to load the driver as a 41e6769554SRui Paulomodule at boot time, place the following line in 42e6769554SRui Paulo.Xr loader.conf 5 : 43e6769554SRui Paulo.Bd -literal -offset indent 44e6769554SRui Pauloacpi_panasonic_load="YES" 45e6769554SRui Paulo.Ed 46e6769554SRui Paulo.Sh DESCRIPTION 47e6769554SRui PauloThe 48e6769554SRui Paulo.Nm 49e6769554SRui Paulodriver enables such hotkey facilities of various Panasonic laptops as 50e6769554SRui Paulochanging LCD brightness, controlling mixer volumes, entering sleep or 51e6769554SRui Paulosuspended state and so on. 52e6769554SRui PauloOn the following models it is reported to work: Let's note (or 53e6769554SRui PauloToughbook, outside Japan) CF-R1N, CF-R2A and CF-R3. 54e6769554SRui PauloIt may also work on other models as well. 55e6769554SRui Paulo.Pp 56e6769554SRui PauloThe driver consists of three functionalities. 57e6769554SRui PauloThe first is to detect hotkey events and take corresponding actions, 58e6769554SRui Paulowhich include changing LCD luminance and speaker mute state. 59e6769554SRui PauloThe second role is to notify occurrences of the event by way of 60e6769554SRui Paulo.Xr devctl 4 61e6769554SRui Pauloand eventually to 62e6769554SRui Paulo.Xr devd 8 . 63e6769554SRui PauloThe third and last is to provide a way to adjust LCD brightness and 64e6769554SRui Paulosound mute state via 65e6769554SRui Paulo.Xr sysctl 8 . 66e6769554SRui Paulo.Ss Hotkeys 673102cfe2SGlen BarberThere are 9 hotkeys available on the supported hardware: 68e6769554SRui Paulo.Pp 697e3de069SJoel Dahl.Bl -tag -width 10n -compact -offset indent 70e6769554SRui Paulo.It Sy Fn+F1 71e6769554SRui PauloMake LCD backlight darker. 72e6769554SRui Paulo.It Sy Fn+F2 73e6769554SRui PauloMake LCD backlight brighter. 74e6769554SRui Paulo.It Sy Fn+F3 75e6769554SRui PauloSwitch video output between LCD and CRT. 76e6769554SRui PauloNot supported by the 77e6769554SRui Paulo.Nm 78e6769554SRui Paulodriver. 79e6769554SRui Paulo.It Sy Fn+F4 80e6769554SRui PauloToggle muting the speaker. 81e6769554SRui Paulo.It Sy Fn+F5 82e6769554SRui PauloTurn the mixer volume down. 83e6769554SRui Paulo.It Sy Fn+F6 84e6769554SRui PauloTurn the mixer volume up. 85e6769554SRui Paulo.It Sy Fn+F7 86e6769554SRui PauloEnter suspend-to-RAM state. 87e6769554SRui Paulo.It Sy Fn+F9 88e6769554SRui PauloShow battery status. 89e6769554SRui Paulo.It Sy Fn+F10 90e6769554SRui PauloEnter suspend-to-disk state. 91e6769554SRui Paulo.El 92e6769554SRui Paulo.Pp 93e6769554SRui PauloActions are automatically taken within the driver for 94e6769554SRui Paulo.Sy Fn+F1 , Fn+F2 95e6769554SRui Pauloand 96e6769554SRui Paulo.Sy Fn+F4 . 97e6769554SRui PauloFor the other events such as 98e6769554SRui Paulomixer control and showing battery status, 99e6769554SRui Paulo.Xr devd 8 100e6769554SRui Pauloshould take the role as described below. 10110b942e5SXin LI.Ss Xr devd 8 Events 102e6769554SRui PauloWhen notified to 103e6769554SRui Paulo.Xr devd 8 , 104e6769554SRui Paulothe hotkey event provides the following information: 105e6769554SRui Paulo.Pp 1067e3de069SJoel Dahl.Bl -tag -width 10n -compact -offset indent 107e6769554SRui Paulo.It system 108e6769554SRui Paulo.Qq Li ACPI 109e6769554SRui Paulo.It subsystem 110e6769554SRui Paulo.Qq Li Panasonic 111e6769554SRui Paulo.It type 112e6769554SRui PauloThe source of the event in ACPI namespace. 113e6769554SRui PauloThe value depends on the model but typically 114e6769554SRui Paulo.Qq Li \e_SB_.HKEY . 115e6769554SRui Paulo.It notify 116e6769554SRui PauloEvent code (see below). 117e6769554SRui Paulo.El 118e6769554SRui Paulo.Pp 119e6769554SRui PauloEvent codes to be generated are assigned as follows: 1207e3de069SJoel Dahl.Bl -tag -width 10n -offset indent 121e6769554SRui Paulo.It 0x81-0x86, 0x89 122e6769554SRui Paulo.Sy Fn+F<n> 123e6769554SRui Paulopressed. 124e6769554SRui Paulo0x81 corresponds to 125e6769554SRui Paulo.Sy Fn+F1 , 126e6769554SRui Paulo0x82 corresponds to 127e6769554SRui Paulo.Sy Fn+F2 , 128e6769554SRui Pauloand so on. 129e6769554SRui Paulo.It 0x01-0x07, 0x09, 0x1a 130e6769554SRui Paulo.Sy Fn+F<n> 131e6769554SRui Pauloreleased. 132e6769554SRui Paulo0x01 corresponds to 133e6769554SRui Paulo.Sy Fn+F1 , 134e6769554SRui Paulo0x02 corresponds to 135e6769554SRui Paulo.Sy Fn+F2 , 136e6769554SRui Pauloand so on. 137e6769554SRui Paulo.El 138e6769554SRui Paulo.Sh SYSCTL VARIABLES 139e6769554SRui PauloThe following MIBs are available: 140e6769554SRui Paulo.Bl -tag -width indent 141e6769554SRui Paulo.It Va hw.acpi.panasonic.lcd_brightness_max 142e6769554SRui PauloThe maximum level of brightness. 143*195a8c03SWarner LoshThis read-only value is 144e6769554SRui Pauloautomatically set according to hardware model. 14581c59a1fSChristian Brueffer.It Va hw.acpi.panasonic.lcd_brightness_min 146e6769554SRui PauloThe minimum level of brightness. 147*195a8c03SWarner LoshThis read-only value is 148e6769554SRui Pauloautomatically set according to hardware model. 149e6769554SRui Paulo.It Va hw.acpi.panasonic.lcd_brightness 150e6769554SRui PauloCurrent brightness level of the LCD (read-write). 151e6769554SRui PauloThe value ranges from 152e6769554SRui Paulo.Va hw.acpi.panasonic.lcd_brightness_min 153e6769554SRui Pauloto 154e6769554SRui Paulo.Va hw.acpi.panasonic.lcd_brightness_max . 155e6769554SRui Paulo.It Va hw.acpi.panasonic.sound_mute 156e6769554SRui PauloA read-write boolean flag to control whether to mute the speaker. 157e6769554SRui PauloThe value 1 means to mute and 0 not. 158e6769554SRui Paulo.El 159e6769554SRui Paulo.Sh SEE ALSO 160e6769554SRui Paulo.Xr acpi 4 , 161e6769554SRui Paulo.Xr devd.conf 5 , 162e6769554SRui Paulo.Xr devd 8 , 163e6769554SRui Paulo.Xr sysctl 8 164e6769554SRui Paulo.Sh HISTORY 165e6769554SRui PauloThe 166e6769554SRui Paulo.Nm 167e6769554SRui Paulodriver first appeared in 168e6769554SRui Paulo.Fx 5.3 . 169e6769554SRui Paulo.Sh AUTHORS 170e6769554SRui Paulo.An -nosplit 171e6769554SRui PauloThe 172e6769554SRui Paulo.Nm 173e6769554SRui Paulodriver and this manual page were written by 1746c899950SBaptiste Daroussin.An OGAWA Takaya Aq Mt t-ogawa@triaez.kaisei.org 175e6769554SRui Pauloand 1766c899950SBaptiste Daroussin.An TAKAHASHI Yoshihiro Aq Mt nyan@FreeBSD.org . 177