Bug 22367 - Apple Keyboard: Angle brackets and section sign switched
Summary: Apple Keyboard: Angle brackets and section sign switched
Status: RESOLVED NOTOURBUG
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-06-19 06:52 UTC by Sven Arvidsson
Modified: 2009-06-19 17:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Sven Arvidsson 2009-06-19 06:52:00 UTC
I have an Apple Keyboard with Numeric Keypad (the brushed aluminium kind) with a Swedish keyboard layout. 

The keys for the section sign (§) and the angle brackets (< >) are by default switched and needs to be configured with Xmodmap to match the physical layout of the keyboard.

The keyboard:
http://store.apple.com/se/product/MB110S/A?fnode=MTY1NDA1Mg&mco=NDE5MDkzMA
Comment 1 Sergey V. Udaltsov 2009-06-19 08:02:07 UTC
Would it make sense to create se(mac) variant? By any chance, do you know if that oddity is applicable to all Apple Swedish keyboards?
Comment 2 Sven Arvidsson 2009-06-19 08:53:47 UTC
I'm not sure what the best way to solve this is, but as far as I can tell, all Apple keyboards (at least several generations back) have the same placement of keys. It's the default layout on swedish keyboards, Apple or not.

Apparently, Swiss keyboards have the same problem:
http://fortytwo.ch/applekeyboard

Comment 3 Sergey V. Udaltsov 2009-06-19 16:25:20 UTC
I do not quite follow you. According to the existing files, less/greater key is on the left from the Z key. And the section key is on the left from the 1 key. Everything as on the picture you provided.

Could you please check your /usr/share/X11/xkb/symbols/se (section 'se') for two lines:

    key <TLDE>  { [   section,    onehalf,    paragraph, threequarters] };

    key <LSGT> { [ less,        greater,                bar,    bar ] };

What is the actual result of pressing those keys?

Thanks,
Comment 4 Sven Arvidsson 2009-06-19 17:11:22 UTC
/usr/share/X11/xkb/symbols/se looks exactly the same.

Pressing the < key (left from Z) prints § and sends keycode 49.
Pressing the § key (left from 1) prints < and sends keycode 94.

As I use the evdev keyboard driver I hade a look at /usr/share/X11/xkb/keycodes/evdev and it's set up the opposite way. Switching the values results in correct behaviour, but will of course break all normal keyboards.
Comment 5 Sergey V. Udaltsov 2009-06-19 17:16:21 UTC
> Pressing the < key (left from Z) prints § and sends keycode 49.
> Pressing the § key (left from 1) prints < and sends keycode 94.
I am using same evdev driver. The key "left from Z" sends 94, the code "left from 1" sends 49 (so the mappings work as you'd expect them to work). The other way around. I suspect it is not related to xk-c, it is somewhere deeper... Would you try some other keyboard? Or another distro (live cd)?
Comment 6 Sven Arvidsson 2009-06-19 17:29:58 UTC
I have the same problem in the console (which I really should have tried first!) so yeah, it's a deeper problem, most likely it's this bug:
http://bugzilla.kernel.org/show_bug.cgi?id=13545

Anyway, thanks for the patience and all the help! :)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.