setup sets PC keyboard layout on macs

Bug #14899 reported by Yannick Versley
36
Affects Status Importance Assigned to Milestone
xkeyboard-config (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

After the installation, the keyboard setting is set to a PC keyboard. This means that I (previously
accustomed to MacOSX and YellowDog linux) wasn't able to type any of the []|{}\ chars (which are
inconveniently placed in the german Mac kb layout anyway, but I'm used to it).

I solved this by changing the value of XkbModel to "macintosh". Ideally, the installer would ask you if
you want a macintosh or PC keyboard layout (e.g. if you have a USB PC keyboard).

The changed section in /etc/xorg.conf looks as follows:

Section "InputDevice"
        Identifier "Generic Keyboard"
        Driver "keyboard"
        Option "CoreKeyboard"
        Option "XkbRules" "xorg"
        Option "XkbModel" "macintosh"
                                        ^^^^^^^^^^^
        Option "XkbLayout" "de"
        Option "XkbOptions" "lv3:lwin_switch"
EndSection

Tags: apple
Revision history for this message
Daniel Stone (daniels) wrote :

Colin, Martin, James, Thom, is this a sensible thing to be doing by default?

Revision history for this message
Martin Pitt (pitti) wrote :

Yannick,

since you already have the "lv3:lwin_switch" option, you can use the Apple key
as AltGr, i. e. Apple+8 == '[', Apple+<= '|'. Since I'm typing at both a PC and
an iBook, I'm used to the pc105 layout and never changed it. In fact, on the
iBook, the AltGr characters ({} [] | \ etc.) are not even printed on the
keyboard, so I really don't know where these keys are supposed to be on a
macintosh layout.

(All this applies to a German layout, btw.)

Revision history for this message
Yannick Versley (yversley) wrote :

Martin,

as I said (perhaps not clearly), it crucially depends on whether you're used to PC or Mac keymap. Anyone coming from MacOS(X) will
have (some) difficulties with the PC keymap and anyone coming from a PC (be it Windows or Linux) will have (considerable)
difficulties with the Mac keymap.

After long years of MacOSX and YellowDog (they use the mac keymap), my fingers use mac layout when they feel a mac keyboard even
though I have normally no difficulties at all in using a PC keyboard. On the other hand, anyone who needs curly braces and has
keyboard-sensitive fingers should be able to fix it himself (at least with the snippet above), so if you think it's not worth the
hassle, feel free to close the bug.

Revision history for this message
Étienne BERSAC (bersace) wrote :

This problem could be the same as
https://bugzilla.ubuntu.com/show_bug.cgi?id=5989 . We need a new symbol mac for
the new input layer.

Revision history for this message
Martin Pitt (pitti) wrote :

Since our installer asks for the keyboard type anyway, and even allows you to
determine the keyboard by typing some characters, it would be very nice if the
result from there could be promoted to xorg.conf, i. e. whether to use the Mac
or PC layout.

Revision history for this message
Daniel Stone (daniels) wrote :

what's in debian-installer/keymap for macintosh layouts, and how's it different
to pc?

Revision history for this message
Daniel Stone (daniels) wrote :

*** Bug 22878 has been marked as a duplicate of this bug. ***

Daniel Stone (daniels)
Changed in xorg:
assignee: daniels → nobody
Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

Just re-assigning the bug to xkeyboard-config.

- Henrik

Changed in xorg:
assignee: nobody → tfheen
Revision history for this message
Tollef Fog Heen (tfheen) wrote :

The keyboard configuration is done by xserver-xorg, not xkeyboard-config, so reassigning.

Revision history for this message
Jib (moramarth-deactivatedaccount) wrote :

I have the same bug on my iBook G4 1.07 GHz. Yet, it happens when I boot.

It's painful, I use to click on System -> Preferences -> Keyboard -> Agencement or layout (second tab), to choose an other layout and to click on the "reinitialize" button. I'm alright till next boot...

I feel angry, because the window say that I'm using a "macintosh" layout and it's a PC one...

Revision history for this message
Étienne BERSAC (bersace) wrote :

Do you have the same problem at gdm ? if not, then the problem is due to gnome-settings not xorg.

S*l*p* :P

Revision history for this message
Jib (moramarth-deactivatedaccount) wrote :

GDM works great.

Gnome make me use a pc105 keymap, and what's next is as I told before...

But the new keymap for fr mac keyboard is impressive !
·ë“‘{¶«¡Çø}—æÂꮆںîœπô€‡ÒδÌÏȬµÙ@≤©♦ß…÷≠
ŸáÉ”’[å»ÛÁØ]–ÆÅʤ™ŸªïŒΠÔ¥ΩΣΔ·ÎÍË|Ó‰#≥¢√∫~¿·\±

Thanks, Étienne Bersac, so-called Poupette ;-P

Revision history for this message
Étienne BERSAC (bersace) wrote : Re: [Bug 14899] Re: setup sets PC keyboard layout on macs

Hello,

> GDM works great.
>
> Gnome make me use a pc105 keymap, and what's next is as I told
> before...

Ok, so please report a new bug for gnome-keyboard-properties or such
GNOME software that handle those preferences. (maybe gnome-settings-
daemon).

> But the new keymap for fr mac keyboard is impressive !
> ·ë“‘{¶«¡Çø}—æÂꮆںîœπô
> €‡ÒδÌÏȬµÙ@≤©♦ß…÷≠
> ŸáÉ”’[å»ÛÁØ]–ÆÅʤ™ŸªïŒΠÔ¥ΩΣΔ·ÎÍË|
> Ó‰#≥¢√∫~¿·\±

:D If you want this by default in ubuntu, ask it at https://
launchpad.net/bugs/36492 .

Étienne.

Revision history for this message
Jib (moramarth-deactivatedaccount) wrote :

My brother does not endure this bug on an iMac G5. Hence I decided to reinstall.

It's solved...

I posted a message to approve your keymap on #36 492…

Revision history for this message
Timothy Smith (tas50) wrote :

Can you test this on Edgy RC so we can see if this problems still exists?

Revision history for this message
Étienne BERSAC (bersace) wrote :

Still the same.

Tollef Fog Heen (tfheen)
Changed in xorg:
assignee: tfheen → nobody
Revision history for this message
Gregor Rosenauer (grexe) wrote :

same problem here, only the xorg.conf provided in the original comment does not work after the login screen with KDE/Kubuntu 7.0.4
I had to use KDE's "regional settings" to correct this:
To reflect the settings in xorg.conf, I chose:
* tab keyboard layout: (in my case German) model/type: Apple, variant mac
the command line now reads:
"setxkbmap -model apple -layout de -variant mac"

This brings back accents and braces at the usual mac-like positions/keys.
To reproduce the "XkbOption lv3:lwin_switch"-line, go to tab "Xkb-Options", check "Xkb-Options" and then "selection on 3rd level" (rough translation from my German interface), set to "press left windows key...".
The command line at the bottom now reads:
"setxkbmap -option lv3:lwin_switch"

To use left Apple-key as command key (instead of Ctrl), you have to use KDE's "keyboard&mouse"-settings, switch to tab "special keys" and select "macintosh keyboard" and "special keys like in MacOS".

In an open Konqueror, these settings are not applied immediately, but in other apps it works perfectly now.

Revision history for this message
Bryce Harrington (bryce) wrote :

Is this a dupe of 160171?

Revision history for this message
Bryce Harrington (bryce) wrote :

Well, I think this is long since fixed. See:
https://bugs.freedesktop.org/show_bug.cgi?id=16641

Changed in xkeyboard-config:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.