From owner-freebsd-questions Mon Feb 3 9:20:46 2003 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 4DAF937B401 for ; Mon, 3 Feb 2003 09:20:44 -0800 (PST) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEFF343E4A for ; Mon, 3 Feb 2003 09:20:43 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from nkinkade by sub21-156.member.dsl-only.net with local (Exim 4.10) id 18fkGs-000C0W-00 for questions@freebsd.org; Mon, 03 Feb 2003 09:20:38 -0800 Date: Mon, 3 Feb 2003 09:20:38 -0800 From: Nathan Kinkade To: questions@freebsd.org Subject: Re: keyboard mapping + ACPI/APM Message-ID: <20030203172038.GB87743@sub21-156.member.dsl-only.net> Reply-To: nkinkade@dsl-only.net Mail-Followup-To: Nathan Kinkade , questions@freebsd.org References: <20030203000634.21b829ba.temperanza@softhome.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline In-Reply-To: <20030203000634.21b829ba.temperanza@softhome.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --QTprm0S8XgL7H0Dt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 03, 2003 at 12:06:34AM -0800, La Temperanza wrote: > Hi, I'd like to map one of the Windows keys on my M$ keyboard to the > UNIX Compose key, preferably under both X and console. But the key > doesn't seem to be listed in 'man kbdmap', and I can't find where the > X keyboard mappings are stored. Can anyone help me out? >=20 > Also, I thought I'd ask in the same message: what are the advantages and > disadvantages of ACPI versus APM? I'm not an expert in this area, but maybe these tips will help. First, try launching the X utility `xev`. It should bring up a small white window. Make sure that this window has the focus and then press the keyboard key in which you are interested - note the messages that pop up in the terminal from which you launched xev. You can use this method to figure out the keycode for that particular key. For example, the left "windows" key on my keyboard is keycode 115 wity a keysym name of "Super_L". You can use this info to configure xmodmap(1). For example, I have a file in my home directory called .xmodmaprc in which I define key mappings for the numeric keypad so that I never have to worry about the numlock key again. Some lines in this file might look like: keycode 79 =3D 7 keycode 80 =3D 8 keycode 81 =3D 9 As for the console keyboard maps, I believe they are stored in /usr/share/syscons/keymaps. I think the utility kbdcontrol(1) will allow you to change the current keymap. If you want to load a particular keymap on boot, you can add a line like the following to your /etc/rc.conf file: keymap=3D"gr.elot.acc" (I stole that one from an earlier post by Giorgos Keramidas) Nathan --=20 GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PqTmWZYS9EJQoEwRAtcHAJ949eda+4S5Oh2xSbm/tnXYnamFnQCaAktM 15c19U553SouoIwq+BgPj90= =Rbpp -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message