macbook keyboard layout maps the tilde key to something else

Bug #1245081 reported by Krister on 2013-10-26
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned

Bug Description

1. install ubuntu on Macbook Air 6,2
2. press the key with the tilde ('~') written on it.
3. see that is prints '§' instead.

This is particularly annoying since the way to switch between windows uses the tilde.
---
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kms 1491 F.... pulseaudio
 /dev/snd/controlC1: kms 1491 F.... pulseaudio
DistroRelease: Ubuntu 13.10
HibernationDevice: RESUME=UUID=9e7b2d0e-6a44-4ad7-9725-f9a3f5f39c33
InstallationDate: Installed on 2013-10-25 (1 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64+mac (20131016.1)
MachineType: Apple Inc. MacBookAir6,2
MarkForUpload: True
NonfreeKernelModules: wl
Package: linux 3.11.0.12.13
PackageArchitecture: amd64
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-12-generic root=UUID=079cbe6b-6488-4e57-85d3-c3e3e2fcbe40 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
RelatedPackageVersions:
 linux-restricted-modules-3.11.0-12-generic N/A
 linux-backports-modules-3.11.0-12-generic N/A
 linux-firmware 1.116
Tags: saucy
Uname: Linux 3.11.0-12-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 07/12/2013
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBA61.88Z.0099.B01.1307121317
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-7DF21CB3ED6977E5
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookAir6,2
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-7DF21CB3ED6977E5
dmi.modalias: dmi:bvnAppleInc.:bvrMBA61.88Z.0099.B01.1307121317:bd07/12/2013:svnAppleInc.:pnMacBookAir6,2:pvr1.0:rvnAppleInc.:rnMac-7DF21CB3ED6977E5:rvrMacBookAir6,2:cvnAppleInc.:ct10:cvrMac-7DF21CB3ED6977E5:
dmi.product.name: MacBookAir6,2
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1245081

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete

apport information

tags: added: apport-collected saucy
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.12 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-rc7-saucy/

Changed in linux (Ubuntu):
importance: Undecided → Medium
Krister (thekswenson) wrote :

the bug still exists in 3.12.0-031200rc7-generic

tags: added: kernel-bug-exists-upstream
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Krister (thekswenson) wrote :

Expired. The bug still exists though.

nfsd (in4mer+launchpad) wrote :

I too experience this bug on a late-2013 MBA, booting a freshly installed UEFI boot of 13.10.

I'm confirming that this bug exists as described.

Changed in linux (Ubuntu):
status: Expired → Confirmed
Yuan Chao (yuanchao) wrote :

I've got the same problem on 13.10 on macbook air 6,2 (2013). Both standard US and Machintosh layout maps "`~" into other characters.

Yuan Chao (yuanchao) wrote :

According to this bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1025041

"According to an upstream bug report, the ANSI/ISO detection of the keyboard is incorrect."

there's a walk-around:

       echo 0 > /sys/module/hid_apple/parameters/iso_layout

I can confirm that this fixes the problem on macbook air 6,2 (2013) with ubuntu 13.10.

Daryl Tucker (daryltucker) wrote :

The workaround posted by Yaun worked for me on my 13.10 installation on my Macbook Air 6,2 (2013). Thank you very much.

>> sudo su -
>> echo 0 > /sys/module/hid_apple/parameters/iso_layout

it works for me as well.

kms

On 7 March 2014 18:55, Daryl Tucker <email address hidden> wrote:

> The workaround posted by Yaun worked for me on my 13.10 installation on
> my Macbook Air 6,2 (2013). Thank you very much.
>
> >> sudo su -
> >> echo 0 > /sys/module/hid_apple/parameters/iso_layout
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1245081
>
> Title:
> macbook keyboard layout maps the tilde key to something else
>
> Status in "linux" package in Ubuntu:
> Confirmed
>
> Bug description:
> 1. install ubuntu on Macbook Air 6,2
> 2. press the key with the tilde ('~') written on it.
> 3. see that is prints '§' instead.
>
> This is particularly annoying since the way to switch between windows
> uses the tilde.
> ---
> ApportVersion: 2.12.5-0ubuntu2.1
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: kms 1491 F.... pulseaudio
> /dev/snd/controlC1: kms 1491 F.... pulseaudio
> DistroRelease: Ubuntu 13.10
> HibernationDevice: RESUME=UUID=9e7b2d0e-6a44-4ad7-9725-f9a3f5f39c33
> InstallationDate: Installed on 2013-10-25 (1 days ago)
> InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64+mac
> (20131016.1)
> MachineType: Apple Inc. MacBookAir6,2
> MarkForUpload: True
> NonfreeKernelModules: wl
> Package: linux 3.11.0.12.13
> PackageArchitecture: amd64
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-12-generic
> root=UUID=079cbe6b-6488-4e57-85d3-c3e3e2fcbe40 ro quiet splash vt.handoff=7
> ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
> RelatedPackageVersions:
> linux-restricted-modules-3.11.0-12-generic N/A
> linux-backports-modules-3.11.0-12-generic N/A
> linux-firmware 1.116
> Tags: saucy
> Uname: Linux 3.11.0-12-generic x86_64
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> dmi.bios.date: 07/12/2013
> dmi.bios.vendor: Apple Inc.
> dmi.bios.version: MBA61.88Z.0099.B01.1307121317
> dmi.board.asset.tag: Base Board Asset Tag#
> dmi.board.name: Mac-7DF21CB3ED6977E5
> dmi.board.vendor: Apple Inc.
> dmi.board.version: MacBookAir6,2
> dmi.chassis.type: 10
> dmi.chassis.vendor: Apple Inc.
> dmi.chassis.version: Mac-7DF21CB3ED6977E5
> dmi.modalias:
> dmi:bvnAppleInc.:bvrMBA61.88Z.0099.B01.1307121317:bd07/12/2013:svnAppleInc.:pnMacBookAir6,2:pvr1.0:rvnAppleInc.:rnMac-7DF21CB3ED6977E5:rvrMacBookAir6,2:cvnAppleInc.:ct10:cvrMac-7DF21CB3ED6977E5:
> dmi.product.name: MacBookAir6,2
> dmi.product.version: 1.0
> dmi.sys.vendor: Apple Inc.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1245081/+subscriptions
>

Dan Herman (dan-herman) wrote :

This workaround works for me too on MacBook Air 6,2 using Ubuntu 13.10

Thanks!

Daryl Tucker (daryltucker) wrote :

To make this fix persistant, just add the line to your **/etc/rc.local**

>> echo 0 > /sys/module/hid_apple/parameters/iso_layout

hawodi (hawodi-gmail) wrote :

Thanks so much ~yuanchao! Your solution works for me.

Chris Cowan (agentme49) wrote :

I ran into this problem on a fresh install of Ubuntu 15.04 on a Macbook Air. The "echo 0 > /sys/module/hid_apple/parameters/iso_layout" workaround worked for me.

jonathan chetwynd (peepo-com) wrote :

workaround wfm mac mini 14.04 3.13.0-68

Thiago Martins (martinx) wrote :

Still present on Xenial 16.04.

Workaround is good.

FGM (fgm) wrote :

Workaround does not work on Xenial 16.04 in a Fusion 8.1.1 box: sys/module/hid_apple does not exist and can not be created, even with sudo.

Yuan Chao (yuanchao) wrote :

Workaround is still needed and works on Xenial 16.04 for my MBA 6,2 (2013).

azrobbo (azrobbo) wrote :

I can confirm this bug still exists and the workaround still works for Xenial 16.04 on my MBA 6,2

(Posted so the entry won't expire.)

Will the bug ever be fixed?

Gunnar Hjalmarsson (gunnarhj) wrote :

There is an XKB option solution to this issue on Debian/Ubuntu:

setxkbmap -option apple:badmap

azrobbo (azrobbo) wrote :

I can confirm this bug still exists in Zesty 17.04 on my MBA 6,2

This workaround still works:
echo 0 | sudo tee /sys/module/hid_apple/parameters/iso_layout

Kai-Heng Feng (kaihengfeng) wrote :

Please try latest mainline kernel (v4.13-rc3)

I think this commit solves the issue:
commit bd77a0f08ec57f7b805dfbaa64b36329dfa005d6
Author: Alex Henrie <email address hidden>
Date: Fri Jun 2 09:28:39 2017 -0600

    HID: apple: Use country code to detect ISO keyboards

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

Other bug subscribers

Remote bug watches

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