I am using the Mac Canadian Multilingual keyboard with Ubuntu 16, shown below. The Canadian Multilingual text entry option works almost fine, but I have the following problems.
The left alt and right alt are swapped. I have to press on the right alt key in order to write the brackets
{
and}
(that makes coding and writing in Latex very difficult).The keys for ù and / are also swapped.
How can I fix this? I tried everything suggested in the related posts on this site (and elsewhere), to no avail.
I tried using an English configuration for my keyboard, only switching to French when necessary, but this makes me waste too much time.
Note: This problem is very serious for French-Canadian Ubuntu users. I must keep my MacBook air next to my Ubuntu desktop to write emails and to write in Latex.
Attempted fixes:
Using
xev
, I found that the left alt is keycode 64, registered as Alt_L, right alt is keycode 108, registered as ISO_Level3_Shift. The commandxmodmap -e "keycode 64 = ISO_Level3_Shift"
makes the left alt key unresponsive whitout fixing the problem.In the file '/usr/share/X11/xkb/symbols/ca', I swapped the content (what is in the brackets) between the two following lines:
key <TLDE> { [ slash, backslash, bar ] }; key <LSGT> { [ ugrave, Ugrave ] };
While in the file '/usr/share/X11/xkb/symbols/level3' I swapped all appearances of LALT and RALT.
xkb
and notxmodmap
. – Delorean Mar 24 '17 at 20:40apple:badmap
option. – Gunnar Hjalmarsson Mar 24 '17 at 22:40/etc/default/keyboard
. Please seeman keyboard
. Also, on my 16.10 there is no/sys/module/hid_apple
folder. – Gunnar Hjalmarsson Mar 24 '17 at 22:51xkeyboard-config
upstream is updated continuously, and it's more likely than not that an upgrade to a new Ubuntu version means an update ofxkb-data
. But yes, a stable release update ofxkb-data
is unlikely to happen. – Gunnar Hjalmarsson Mar 25 '17 at 22:13