From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 07:29:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F41A916A4CE; Wed, 26 Nov 2003 07:29:03 -0800 (PST) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9563543F75; Wed, 26 Nov 2003 07:28:58 -0800 (PST) (envelope-from nkinkade@fastmail.fm) X-Sasl-enc: OhZTVMvaKQ8oS8p9/tlYRQ 1069860536 Received: from [206.26.199.146] (unknown [206.26.199.146]) by www.fastmail.fm (Postfix) with ESMTP id A1F42447099; Wed, 26 Nov 2003 10:28:56 -0500 (EST) Received: from nkinkade by [206.26.199.146] with local (Exim 4.12) id 1AP1aJ-0005xw-00; Wed, 26 Nov 2003 09:28:07 -0600 Date: Wed, 26 Nov 2003 09:28:07 -0600 From: Nathan Kinkade To: Ernst de Haan Message-ID: <20031126152807.GE15894@npkfbsd> References: <200311261602.35971.znerd@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TD8GDToEDw0WLGOL" Content-Disposition: inline In-Reply-To: <200311261602.35971.znerd@FreeBSD.org> User-Agent: Mutt/1.4.1i Sender: Nathan Kinkade cc: questions@FreeBSD.org Subject: Re: kbdmap for iMac keyboard? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 15:29:04 -0000 --TD8GDToEDw0WLGOL Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 26, 2003 at 04:02:35PM +0100, Ernst de Haan wrote: > Tried to connect an iMac keyboard (USB) to my FreeBSD 4.9-STABLE=20 > workstation. Works okay, recognized and automatically activated during th= e=20 > FreeBSD startup sequence. >=20 > Is there a keyboard map for the iMac keyboard? Can I map the Apple key to= a=20 > mouse button or to the Delete action? >=20 > How do I see the code for a key anyway? If I can get that somehow, I must= be=20 > able to write my own definition for a kemap file... >=20 > BTW: I also attached the iMac mouse and it works fine. Just too bad it on= ly=20 > has a single button :-( >=20 > FYI: This is how the devices show up: >=20 > $ usbdevs > addr 1: UHCI root hub, Intel > addr 2: Hub in Apple USB Keyboard, Alps Electric > addr 3: Apple USB Keyboard, Alps Electric > addr 4: M4848, Logitech >=20 >=20 > Ernst If you are running X you can use the xmodmap(1) utility to both view and alter the current keymap. You can use the tool xev(1) to figure out the keycodes for each key on the keyboard. Nathan --=20 gpg --keyserver pgp.mit.edu --recv-keys D8527E49 --TD8GDToEDw0WLGOL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/xMaHO0ZIEthSfkkRAjXpAJ0aJA5uNuknjbqeHQmZ9o3vVdbmYwCePHGJ rgyqasB2RCyrmKM3KS1fyvk= =Hkv4 -----END PGP SIGNATURE----- --TD8GDToEDw0WLGOL--