1.\" $NetBSD: akbd.4,v 1.2 2024/10/29 01:44:25 nat Exp $ 2.\" 3.\" Copyright (c) 2003 Alex Zepeda <zipzippy@sonic.net> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by Alex Zepeda. 17.\" 4. The name of the author may not be used to endorse or promote products 18.\" derived from this software without specific prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30.\" 31.Dd October 28, 2024 32.Dt AKBD 4 33.Os 34.Sh NAME 35.Nm akbd 36.Nd Apple Desktop Bus keyboard driver for wscons 37.Sh SYNOPSIS 38.Cd "akbd* at obio?" 39.Cd "wskbd* at akbd? console ?" 40.Pp 41.Cd "options ALTXBUTTONS" 42.Cd "options CAPS_IS_CONTROL" 43.Cd "options FORCE_FUNCTION_KEYS" 44.Sh DESCRIPTION 45This driver provides the 46.Xr wscons 4 47driver with support for Apple Desktop Bus keyboards. 48.Pp 49To work around the limited number of buttons found on most ADB mice, 50one can map key sequences to trigger mouse button events. 51To map Option+1, Option+2, Option+3 to mouse buttons 1, 2, and 3 52respectively, add the following line to your kernel configuration 53file: 54.Pp 55.Cd "options ALTXBUTTONS" 56.Pp 57On macppc systems it is possible to tweak the keyboard driver 58to treat the caps lock key on an ADB keyboard as a control key. 59This requires special remapping because of ADB's strange emulation of 60a mechanically-locked key. To enable this code add the following 61line to your kernel configuration file: 62.Pp 63.Cd options CAPS_IS_CONTROL 64.Pp 65On macppc PowerBooks, several function keys double as "hot keys" 66(brightness, volume, eject) when the Fn modifier is held down. 67Mac OS X likes to reprogram the keyboard controller to send hot key 68events when Fn is not held down and send function key events when it 69is. 70To transform the non-keyboard "button" events back into function key 71events, place the following line in your kernel configuration file: 72.Pp 73.Cd options FORCE_FUNCTION_KEYS 74.Pp 75On PowerBook models holding Option and up/down arrows change the screen 76brightness. 77.Sh SUPPORTED HARDWARE 78.Nx 79is known to support the following 80.Tn ADB 81keyboards: 82.Bl -bullet -offset indent 83.It 84On-board keyboards on PowerBook models 85.It 86Apple Standard Keyboard 87.It 88Apple Keyboard II 89.It 90Apple Extended Keyboard 91.It 92Apple Extended Keyboard II 93.It 94Apple Adjustable Keyboard 95.It 96Most third-party ADB keyboards are supported 97.El 98.Sh SEE ALSO 99.Xr adb 4 , 100.Xr wscons 4 , 101.Xr wskbd 4 , 102.Xr wsconsctl 8 103.Sh BUGS 104The number pad on extended keyboards does not send out the proper 105key codes for many applications. 106.Pp 107The LEDs on extended keyboards are not functional under 108.Nx . 109