Macintosh keyboard layout is wrong

Bug #630203 reported by Alan Pope 🍺🐧🐱 🦄
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
xkeyboard-config
Confirmed
Medium
xkeyboard-config (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Binary package hint: kbd

I chose the UK Mac keyboard layout, and it's not right for my macbook pro 7,1.

For example the key next to shift in the bottom left is a back tick and a tilde. I get a < and a >.

See attached picture for my keyboard layout.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: kbd 1.15-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-19.28-generic 2.6.35.3
Uname: Linux 2.6.35-19-generic x86_64
NonfreeKernelModules: nvidia wl
Architecture: amd64
Date: Sat Sep 4 14:12:14 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: kbd
---
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 270.30 Fri Feb 25 14:34:55 PST 2011
 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-6ubuntu4)
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,scale,session,unityshell]
CompositorRunning: compiz
DistUpgraded: Log time: 2011-02-22 08:16:20.901958
DistroCodename: natty
DistroRelease: Ubuntu 11.04
DistroVariant: ubuntu
GraphicsCard:
 nVidia Corporation Device [10de:08a0] (rev a2) (prog-if 00 [VGA controller])
   Subsystem: Apple Computer Inc. Device [106b:00c2]
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
JockeyStatus:
 kmod:wl - Broadcom STA proprietary wireless driver (Proprietary, Enabled, In use) [auto-install]
 xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, In use)
MachineType: Apple Inc. MacBookPro7,1
NonfreeKernelModules: nvidia wl
Package: xkeyboard-config (not installed)
ProcEnviron:
 LANGUAGE=en_GB:en
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-7-generic root=UUID=3ee9f3d3-cfba-47b7-9087-36caaaf473d3 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-7.38-generic 2.6.38
Renderer: Unknown
Tags: natty running-unity ubuntu compiz-0.9
Uname: Linux 2.6.38-7-generic x86_64
UpgradeStatus: Upgraded to natty on 2011-02-22 (30 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 06/01/10
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP71.88Z.0039.B0B.1006012305
dmi.board.name: Mac-F222BEC8
dmi.board.vendor: Apple Inc.
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F222BEC8
dmi.modalias: dmi:bvnAppleInc.:bvrMBP71.88Z.0039.B0B.1006012305:bd06/01/10:svnAppleInc.:pnMacBookPro7,1:pvr1.0:rvnAppleInc.:rnMac-F222BEC8:rvr:cvnAppleInc.:ct10:cvrMac-F222BEC8:
dmi.product.name: MacBookPro7,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.
version.compiz: compiz 1:0.9.4git20110322-0ubuntu5
version.libdrm2: libdrm2 2.4.23+git20110218.a697fb6a-0ubuntu0sarvatt
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.1-0ubuntu3
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6~3ubuntu11
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Chris Jones (cmsj) wrote :

I see this on identical hardware to Alan's, although curiously I note that the keymap works correctly for the current generation USB apple keyboard, which has the same physical arrangement of keys (although it does have a numpad)

Changed in kbd (Ubuntu):
status: New → Confirmed
Colin Watson (cjwatson)
affects: kbd (Ubuntu) → xkeyboard-config (Ubuntu)
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi, is anyone still able to reproduce this issue on Natty?

If so, can you run 'apport-collect 630203'? Or else just attach the output of `setxkbmap -print` and `xkbcomp :0 -w0 -`

Changed in xkeyboard-config (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
bugbot (bugbot) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in xkeyboard-config (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : .proc.driver.nvidia.params.txt

apport information

tags: added: apport-collected compiz-0.9 natty running-unity ubuntu
description: updated
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : BootDmesg.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : DkmsStatus.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : GconfCompiz.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : GdmLog.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : GdmLog1.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : GdmLog2.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : GlConf.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : Lspci.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : Lsusb.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : ProcModules.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : UdevDb.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : UdevLog.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : UnitySupportTest.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : XorgConf.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : XorgLog.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : XorgLogOld.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : Xrandr.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : locale.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : nvidia-settings.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : peripherals.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : setxkbmap.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : xdpyinfo.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote : xkbcomp.txt

apport information

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Download full text (58.0 KiB)

alan@mbp:~$ setxkbmap -print
xkb_keymap {
 xkb_keycodes { include "evdev+aliases(qwerty)" };
 xkb_types { include "complete" };
 xkb_compat { include "complete" };
 xkb_symbols { include "pc+gb(mac)+inet(evdev)" };
 xkb_geometry { include "pc(pc105)" };
};

xkb_keymap {
xkb_keycodes "evdev+aliases(qwerty)" {
    minimum = 8;
    maximum = 255;
     <ESC> = 9;
    <AE01> = 10;
    <AE02> = 11;
    <AE03> = 12;
    <AE04> = 13;
    <AE05> = 14;
    <AE06> = 15;
    <AE07> = 16;
    <AE08> = 17;
    <AE09> = 18;
    <AE10> = 19;
    <AE11> = 20;
    <AE12> = 21;
    <BKSP> = 22;
     <TAB> = 23;
    <AD01> = 24;
    <AD02> = 25;
    <AD03> = 26;
    <AD04> = 27;
    <AD05> = 28;
    <AD06> = 29;
    <AD07> = 30;
    <AD08> = 31;
    <AD09> = 32;
    <AD10> = 33;
    <AD11> = 34;
    <AD12> = 35;
    <RTRN> = 36;
    <LCTL> = 37;
    <AC01> = 38;
    <AC02> = 39;
    <AC03> = 40;
    <AC04> = 41;
    <AC05> = 42;
    <AC06> = 43;
    <AC07> = 44;
    <AC08> = 45;
    <AC09> = 46;
    <AC10> = 47;
    <AC11> = 48;
    <TLDE> = 49;
    <LFSH> = 50;
    <BKSL> = 51;
    <AB01> = 52;
    <AB02> = 53;
    <AB03> = 54;
    <AB04> = 55;
    <AB05> = 56;
    <AB06> = 57;
    <AB07> = 58;
    <AB08> = 59;
    <AB09> = 60;
    <AB10> = 61;
    <RTSH> = 62;
    <KPMU> = 63;
    <LALT> = 64;
    <SPCE> = 65;
    <CAPS> = 66;
    <FK01> = 67;
    <FK02> = 68;
    <FK03> = 69;
    <FK04> = 70;
    <FK05> = 71;
    <FK06> = 72;
    <FK07> = 73;
    <FK08> = 74;
    <FK09> = 75;
    <FK10> = 76;
    <NMLK> = 77;
    <SCLK> = 78;
     <KP7> = 79;
     <KP8> = 80;
     <KP9> = 81;
    <KPSU> = 82;
     <KP4> = 83;
     <KP5> = 84;
     <KP6> = 85;
    <KPAD> = 86;
     <KP1> = 87;
     <KP2> = 88;
     <KP3> = 89;
     <KP0> = 90;
    <KPDL> = 91;
    <LVL3> = 92;
    <LSGT> = 94;
    <FK11> = 95;
    <FK12> = 96;
    <AB11> = 97;
    <KATA> = 98;
    <HIRA> = 99;
    <HENK> = 100;
    <HKTG> = 101;
    <MUHE> = 102;
    <JPCM> = 103;
    <KPEN> = 104;
    <RCTL> = 105;
    <KPDV> = 106;
    <PRSC> = 107;
    <RALT> = 108;
    <LNFD> = 109;
    <HOME> = 110;
      <UP> = 111;
    <PGUP> = 112;
    <LEFT> = 113;
    <RGHT> = 114;
     <END> = 115;
    <DOWN> = 116;
    <PGDN> = 117;
     <INS> = 118;
    <DELE> = 119;
    <I120> = 120;
    <MUTE> = 121;
    <VOL-> = 122;
    <VOL+> = 123;
    <POWR> = 124;
    <KPEQ> = 125;
    <I126> = 126;
    <PAUS> = 127;
    <I128> = 128;
    <I129> = 129;
    <HNGL> = 130;
    <HJCV> = 131;
    <AE13> = 132;
    <LWIN> = 133;
    <RWIN> = 134;
    <COMP> = 135;
    <STOP> = 136;
    <AGAI> = 137;
    <PROP> = 138;
    <UNDO> = 139;
    <FRNT> = 140;
    <COPY> = 141;
    <OPEN> = 142;
    <PAST> = 143;
    <FIND> = 144;
     <CUT> = 145;
    <HELP> = 146;
    <I147> = 147;
    <I148> = 148;
    <I149> = 149;
    <I150> = 150;
    <I151> = 151;
    <I152> = 152;
    <I153> = 153;
    <I154> = 154;
    <I155> = 155;
    <I156> = 156;
    <I157> = 157;
    <I158> = 158;
    <I159> = 159;
    <I160> = 160;
    <I161> = 161;
    <I162> = 162;
    <I163> = 163;
    <I164> = 164;
    <I165> = 165;
    <I166> = 166;
    <I167> = 167;
    <I168> = 168;
    <I169> = 169;
    <I170> = 170;
    <I171> = 171;
    <I172> = 172;...

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

Thanks Alan, I'll add this to the queue to look at when I have some time.

Changed in xkeyboard-config (Ubuntu):
status: Expired → New
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

May be related to bug 742380

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

This bug is still apparent on 12.04. There are no keyboard layouts which match the UK Mac KB layout.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

'A problem with an essential hardware component (disk controller, laptop built-in wireless, video card, keyboard, mouse)' -> High

Changed in xkeyboard-config (Ubuntu):
importance: Undecided → High
Revision history for this message
In , Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Hi,

I have an Apple MacBook Pro 7,1 running Ubuntu 12.04 (same problem on Ubuntu 11.10) with a UK keyboard layout. The layout has never been correct with either English (UK, Macintosh) or English (UK Macintosh International).

Under English (UK, Macintosh) for example:-

The 'section' key (next to numeric 1) gives me a backtick and tilde (non-shift and shifted respectively).
The 'backtick/tilde' key (between z and shift) gives me greater-than and less-than.

Under English (UK, Macintosh International) for example:-

The 'section' key responds correctly with section and plus/minus.
The tilde/backtick key gives me tilde and backtick (only if I press the key then space) - I presume this is used on international keyboards for accenting characters. The quote/double-quote key operates in the same way.

So it seems I want the _layout_ of the English (UK, Macintosh International) but with the single-press-for-quotes-and-ticks that the English (UK, Macintosh) layout has. Hope that makes sense.

Al.

I also filed this bug in Ubuntu https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/630203

Changed in xkeyboard-config:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Sergey V. Udaltsov (svu) wrote :

If you look at symbols/gb, you will see the section mac_intl.

For mappings AC11 and LSGT, could you please try removing dead_ prefixes from the keys - then reconfiguring your keyboard to use English (UK, Macintosh International). Will that work for you?

Changed in xkeyboard-config (Ubuntu):
status: New → Incomplete
status: Incomplete → New
Vibhav Pant (vibhavp)
Changed in xkeyboard-config (Ubuntu):
status: New → Confirmed
Revision history for this message
Anders Nor Berle (berle) wrote :

The norwegian mac keyboard layout is wrong as well, using a normal apple usb keyboard. I found the following symbol replacement fixed the problem, could this please be updated in ubuntu?

https://github.com/socketpuppet/Ubuntu-MacBook-Norwegian-keyboard

Revision history for this message
jrb114 (j-r-blake) wrote :

I have the same issue as Alan, comment #37.

UK Macintosh International keyboard. Everything works, except for the single/ double quote key. (That includes ` ~ § ± \ | € £ # (which is obtained via right alt key and backslash key, weirdly. Took ages to work that out for writing code.)

For example, if I want to write 'The cat sat on the mat'.

And I enter <single quote><T><h><e> ... <m><a><t><single quote><.>

I get: (on a new line for clarity, and I typed it exactly with the above keypresses)

he mat

That is, it does not recognise single quotes unless they are followed by a space press. If you do a double <single quote> press, rather than

''

I get

´

So, something that looks like a forward quote. Very similar behaviour occurs using the double quotes.

When I get time, I'll (single quote issue!) try #38 suggestion.

Revision history for this message
Hauke (hauke-heesch-googlemail) wrote :

German (german (germany)) keyboard layout in 12.04 is wrong too. the (^°) and (<>) keys are twisted. this is annoying. keyboard is not working on grub2 menue at startup.

Revision history for this message
Ricardo Graça (devius) wrote :

Funny. My problem with a portuguese layout is the exact opposite of the original bug report. The key next to shift in the bottom left is a < and a > and I get a ` and ~.

Revision history for this message
DB Cooper (bno112300-9) wrote :

strangely, almost everything is in the right place for me. on English (UK Macintosh international) except for the deadkeys (I think thatś the word) turning I´m into Iḿ and it´s into itś.
dutch supposedly has a deadkeys removed version, along with german.

This is still present as of today in 13.10.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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