XF4, SysRq, VT, mouse buttons, Keymaps and all that
Thanks to those who gave help in getting XF4 (basically) going.
I haven't been able to try Ani's patch yet - the xfree86.org cvs server pings - but no response yet today to cvs login :-(
ati (mach64): (G3/beige, 2.4.4-pre3)
a kludge of putting the 4.0.99.1-0f libfbdevhw.a library into the latest code gives me ati accel. Thanks Kaoru & Scott. (Will try Ani's proper fix as soon as I can co the XFree86 tree).
Michel's advice to "option XkbDisable" gives partial functionality (VT switches, server re-start).... but... with no mouse button emulation or SysRq. (haven't tried MoL yet).
===
I may be going blind - but I can't see _any_ locale-specific mac keycode tables in the X11R6 tree...
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.
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.
3/ how does one find the keycode values for <option>-key combinations so that the mouse_button2 & 3 keycodes can be re-assigned (it is really irritating losing them)... [the kernel build has this emulation enabled]
4/ Notwithstanding the PMac-specific nature of some of these questions - Is there a HOW-to on creating a keymap (I'm happy to do one for the UK keyboard if someone can point at the mechanism).
5/ num-lock never worked for me (even under 3.3.6 - it put the keyboard light on but made no difference to the retured codes) I'd like to get this fixed because some apps (like cdp) use the keypad.
any pointers appreciated and thanks again for the help so far, Iain.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Iain Sandoe
I haven't been able to try Ani's patch yet - the xfree86.org cvs server pings - but no response yet today to cvs login :-(
Yup, seems to be down again. :( Can you try the other methods or a mirror?
Quoted 4 lines
ati (mach64): (G3/beige, 2.4.4-pre3)
a kludge of putting the 4.0.99.1-0f libfbdevhw.a library into the latest code gives me ati accel.
The only changes between 4.0.99.1 and .2 there are an added function and two cast changes from unsigned int to unsigned long, so I suspect the version that works for you has been patched. I'd be interested to see those patches and possibly include them for the 4.1.0 release.
Quoted 3 lines
Michel's advice to "option XkbDisable" gives partial functionality (VT switches, server re-start).... but... with no mouse button emulation or SysRq. (haven't tried MoL yet).
The latter two aren't X but kernel issues.
--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Iain Sandoe wrote:
[]
Quoted 2 lines
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.
Quoted 7 lines
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.
Quoted 5 lines
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.
Quoted 3 lines
3/ how does one find the keycode values for <option>-key combinations so that the
mouse_button2& 3 keycodes can be re-assigned (it is really irritating losing them)... [the kernel build has this emulation enabled]
The option key doesn't modify the keycode, only (if configured correctly) the symbol associated with this keycode. The easiest way to find the keycodes to put into the /proc/...*button*emulate slots is to look them up in include/input.h in the kernel sources. This is the console keycode, i.e. what you get from showkey. For most keys, it is the X keycode (i.e. what you get from xev) minus 8. Used to be *all* keys, but this is no longer so.
Quoted 3 lines
4/ Notwithstanding the PMac-specific nature of some of these questions - Is there a HOW-to on creating a keymap (I'm happy to do one for the UK keyboard if someone can point at the mechanism).
In XFree, there are always about 25 (conservative estimate) different ways to achieve the same goal, so such a HOWTO would require some lengthy explanations :-)
OTOH, you probably installed a dozen megabytes worth of XFree-doc, so there might be something hidden in there for example /usr/doc/XFree86-doc-4.0.99.1/XKB/XKBproto.ps.gz or similar.
Quoted 3 lines
5/ num-lock never worked for me (even under 3.3.6 - it put the keyboard light on but made no difference to the retured codes) I'd like to get this fixed because some apps (like cdp) use the keypad.
WorksForMe(TM).
Quoted 2 lines
any pointers appreciated and thanks again for the help so far, Iain.
Sorry for not helping much.
--
Martin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/