[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Finnish X11 keymap on iMac?



> Having just substituted the original narrow iMac keyboard with an
> after-market keyboard, largely because that original keyboard appears
> unsupported by X11, I find that the Finnish XFree keymap still fails;
> several keys are where they should not be. I tried the normal i386 keymap,
> which also fails, presumably because the stock Debian PPC kernel is
> configured to look for Mac scancodes.

They used to, but for Debian 3.0 (woody), PPC emits the standard keycodes 
(unless you've configured something different). For you, this is not the 
problem, but for more info, see: http://www.debian.org/ports/powerpc/keycodes

> This is really beginging to piss me off, as the console-data maps are
> perfect: if I use the i386 keymap, I get the exact same deadkeys, etc. as
> i386 hardware; if I instead use the mac-usb-fi, all keys also work, but
> metakeys and deadkeys end up where Mac users would expect them e.g. the @
> symnbol is at a different location than on the i386 map. Anyhow, both i386
> and Mac Finnish keymaps work, exactly as expected, on the console, using
> _any_ damn USB keyboard I throw at it, including the original narrow iMac
> keyboard.
>
> My question:  is there any way to make X11 use the console-data keymaps,
> instead of wasting time trying to hack X11's abyssimal keymap system into
> something that might be remotely usable by non-American users on non-i386
> hardware?

Unfortunately, no. The two mappings are different beasts (and X allows 
per-user modifications, while the console doesn't). The modifier keys should 
be mappable, but then what happens on <shift>+1 is a different thing.

Your third-party keyboard should be considered an i386 keyboard, and the Apple 
keyboard a mac-usb one. The differences there are the locations of the @, 
which seems to work fine for you.

From before, it seems that the keyboard(s) work fine for the keys with letters 
on them. The problem is that AltGr (Mode_switch in Xkb-speak) is not doing 
what it should.

Before, you had said the following:

> On a Finnish/Swedish early iMac with the narrow USB keyboard, xev says:
>
>       Control_L,Alt_L,Super_L,space,Multikey.
>
> What it should be (as far as Mac OS keymaps and console-tools go):
>
>       Control_L,Mode_switch,Alt_L,space,(?).

I haven't seen a Finnish keyboard, but I assume that the keys are physically 
marked with "ctrl", "alt & option", "Apple-logo/command", "space bar", 
"Multikey". Is this true?

Does putting the following into .Xmodmap and run xmodmap .Xmodmap help?

keysym Alt_L = Mode_switch
keysym Super_L = Alt_L Meta_L

Are your only problems with the AltGr functionality?

Frank



Reply to: