Ubuntu 16.04 doesn't handle Macbook keyboard

I installed Ubuntu 16.04 on my Macbook Pro yesterday and today I noticed that the key right below ESC isn't correct. Where it should produce ` and ~ (which it does under OS X), it produces < and >. I haven't tested the whole keyboard, so I don't know if there are others. Is there a way to fix that without reinstalling Ubuntu?

2

2 Answers

Here's the fix that worked for my MacBookPro 12,1 (Retina) on Xubuntu 16.04 LTS "xenial" running kernel 4.8.0-51 generic

Back up before editing:

nano /usr/share/X11/xkb/symbols/pc

Comment out

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

and add

key <LSGT> { [ grave, asciitilde, grave, asciitilde ] };

Apply the change

rm -rf /var/lib/xkb/*

Logout/login.

Thanks to Timofey (source here)

On Ubuntu 16.04 with a Mac keyboard you should be able to get a tilde symbol by pressing Right Alt + ] key.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like