I just wanted to make this know to kernel maintainers: ------------------------------------------------------------------------------- Since upgrading kernel to version 2.6.24-12.22 two keys are now swapped on my Apple USB aluminium keyboard with danish layout. Now the keys "<" and "½" are swapped and no longer matches the actual print on the keycaps. The error is isolated to the following commit: http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-hardy.git;a=commitdiff;h=efb3031b446d441dca5b10619503ac0bba7f9748 This commit introduced a key swapping for all "ISO" type Apple keyboards. In my case this swapping is incorrect, and generally it seems like a very bad idea to perform hard coded locale specific key mapping in kernel space as this is also done several places in user space. The included patch reverts the behavior to the default that matches the keycap printing. ------------------------------------------------------------------------------- note also: ------------------------------------------------------------------------------- This problem is solved for me in gnome by selecting the appropriate option («Swap keycodes of two keys when Mac keyboards are misdetected by kernel» in the keyboard options menu. ------------------------------------------------------------------------------- (from https://bugs.launchpad.net/ubuntu/+source/linux/+bug/214786) despite the Gnome workaround practically works, it is still an issue under console. this patch should revert kernel commit which caused the issue: http://launchpadlibrarian.net/13297091/0001-Remove-faulty-swapping-of-keys-for-Apple-USB-ISO-key.patch this page also has some info about that Apple Keyboards an HID related quirks. http://chezphil.org/apple-alu-bluetooth-kb-linux/ my kernel is 2.6.25-gentoo-r7. let's hope this will be fixed with 2.6.26
It's still not fixed in 2.6.27. Please file an upstream bug for this at http://bugzilla.kernel.org, quoting efb3031b446d441dca5b10619503ac0bba7f9748 as the bad commit. Post the new bug here when done, and ask here if you need any help. Thanks!
Kernel bug: 10818 Subject: fix apple alu keyboard Url: http://bugzilla.kernel.org/show_bug.cgi?id=10818 this appears to be the very same issue
still not fixed in 2.6.27-r2
Maybe this is related: http://forums.gentoo.org/viewtopic-t-857617.html I'm using the german version of the Apple Alu USB keyboard (ISO) and I've mismapped keys ^° and <>|. I've also filed a kernel bugzilla bug that may (if acted upon my request) also solve this problem with the danish layout. I'd say: still not fixed in sys-kernel/gentoo-sources-2.6.36-r5
Ah, sorry: the kernel bugzilla bug: https://bugzilla.kernel.org/show_bug.cgi?id=25772 (but is also linked in the gentoo forums discussion)
Please re-open this. The issue is still not fixed entirely. At least on a german Apple Alu keyboard (ISO variant) two keys are still swapped. I also read at the launchpad bug tracker that it still isn't fixed for the french version, which is also ISO. The launchpad bug (Ubuntu Linux): https://bugs.launchpad.net/ubuntu/+source/linux/+bug/214786 There is a userspace fix, made by Dam, that works on my system: http://damienciabrini.blogspot.com/search/label/apple-kbd And the udev rule with a corresponding configuration file: https://github.com/dciabrin/apple-kbd This fix makes three things happen: 1) apply options to hid_apple (like Fn key option) 2) prepare settings for X11 (like apple:alupckeys) 3) possibility to remap the Fn key to an Insert key (standard PC style) While the first two are also possible without it, the last one is only possible with this udev rule! And besides it is a very convenient way to make the Apple Alu keyboard work out-of-the-box. WITH ONE EXCEPTION: IF the kernel detects the Apple Alu to be an ISO variant (by checking the USB IDs), it then sets iso_layout for hid_apple accordingly. I found, on my german keyboard, disabling iso_layout (echo 0 > iso_layout) makes the swapped keys issue disappear. THIS EXCEPTION is currently being added to apple_kbd; and if not, it is very easy to add a manual override setting for /sys/module/hid_apple/parameters/iso_layout in the apple-kbd configuration file and udev rule to correct this on Gentoo. The user of such a keyboard would have to *manually* set this, but only once, and it will work correctly thereafter. THIS IS, BECAUSE the kernel “corrects” the keys for all ISO Apple Alu keyboards, but it should only do that on certain language versions. UNTIL a final fix is being placed INTO THE KERNEL, this working solution (apple-kbd by Dam, links above, with an additional iso_layout option) is a very convenient solution. If a discussion is needed on this issue, the Gentoo forum is a good place to do exactly that: http://forums.gentoo.org/viewtopic-t-857617.html PLEASE RE-OPEN. Thanks, Andreas.
(In reply to comment #6) > Please re-open this. The issue is still not fixed entirely. Upstream bug is open, we're watching it.