keyboard mapping + ACPI/APM

2003-02-03 Thread La Temperanza
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?

Also, I thought I'd ask in the same message: what are the advantages and
disadvantages of ACPI versus APM?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: keyboard mapping + ACPI/APM

2003-02-03 Thread Nathan Kinkade
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?
 
 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 = 7
keycode 80 = 8
keycode 81 = 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=gr.elot.acc
(I stole that one from an earlier post by Giorgos Keramidas)

Nathan

-- 
GPG Public Key ID: 0x4250A04C
gpg --keyserver pgp.mit.edu --recv-keys 4250A04C
http://63.105.21.156/gpg_nkinkade_4250A04C.asc



msg17818/pgp0.pgp
Description: PGP signature