From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3ADCC874.F018278D@wanadoo.fr> Date: Wed, 18 Apr 2001 00:49:25 +0200 From: Martin Costabel MIME-Version: 1.0 To: Iain Sandoe Cc: linuxppc-dev@lists.linuxppc.org Subject: Re: XF4, SysRq, VT, mouse buttons, Keymaps and all that References: <20010417211637.DEDEEDBA73@atlas.valhalla.net> Content-Type: text/plain; charset=us-ascii Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: Iain Sandoe wrote: [] > I may be going blind - but I can't see _any_ locale-specific mac keycode > tables in the X11R6 tree... Two (not helpful) answers: 1. The linux-keycodes stuff was supposed to let Mac users use localised PC keymaps. A pious wish that didn't work. For French Mac keyboards there is a XF4 (+console) keymap at linux-france.fr in RPM form. I don't know about others, but 2. SuSE-ppc is reported to contain working localised keymaps, but I haven't seen them with my own eyes. > So the next question set is... > > 1/ Is there a description anywhere of the flow of keycode translation > adb -> linux_keycodes -> X (there isn't in linux/Documentation AFAICT). > Especially: > where to look for the tables to edit at each stage - and > what exists to examine the codes. I strongly suspect that the last guy who tried such a documentation had to be put away into a safe institution :-) As for the tables to edit, there is not much choice. For the console, everything is contained in /usr/lib/kbd, and for X, in /usr/X11R6/lib/X11/xkb. After staring at what's there for a while, you see some sort of logic at work that can be used for modifications. All this, of course, is the layer above the kernel keymaps that translate things several times back and forth before userspace gets to see them. Except for the SysRq key, you probably don't want to touch the latter. > 2/ the (ISO Mac Keyboard) SysRq key is no longer a single value (according > to showkey it sends two codes) but this needs to be caught earlier on (in > the kernel) - so is this supposed to be before or after the translation > adb->linux_keycodes? ... or how can I find the value to modify the match > code in the kernel? AFAICT SysRq is not working. Can't help there, NoSuchKey(TM) on my iBook. > 3/ how does one find the keycode values for