Date: Mon, 3 Feb 2003 09:20:38 -0800 From: Nathan Kinkade <nkinkade@dsl-only.net> To: questions@freebsd.org Subject: Re: keyboard mapping + ACPI/APM Message-ID: <20030203172038.GB87743@sub21-156.member.dsl-only.net> In-Reply-To: <20030203000634.21b829ba.temperanza@softhome.net> References: <20030203000634.21b829ba.temperanza@softhome.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030203172038.GB87743>