0

I've two computers, one (computer A) running 14.04, and another one running 16.04 (computer B).
Computer A is in french, computer B in english, both with french keyboard layout.

On computer A, when I press AltGr+è or AltGr+é, it prints (e.g. on stackexchange messages) respectively ` or ~.
But on computer B, nothing prints when pressing same key combination. For printing backticks, I need to press AltGr+èAltGr+è; and AltGr+é Space for getting ~. I find this rather awkward.

Question: How to replicate the functioning of computer A on computer B?

Zanna
  • 70,465
ebosi
  • 397

1 Answers1

1

Maybe that you do not have the same layout on both computers ?

On computer A you can get the current layout with the command

gkbd-keyboard-display -g 1

(the name of the layout will be in the window's title bar) If that's not the same layout on computer B, you can run on computer B:

sudo dpkg-reconfigure keyboard-configuration

and change the keyboard layout (on step 2/4) to the same as the one on computer A. Just hit enter on the other steps to keep current settings.

inspired of Change keyboard layout (English UK) on command line to English US and Name of detect keyboard layout tool

  • Indeed: I had "french" ('xkb', 'fr') on A, and "french (legacy, alternative)" ('xkb', 'fr+latin9') on B. My bad. Note that the command mentioned in Serg's comment (gsettings get org.gnome.desktop.input-sources sources) makes the difference to be more obvious (since layout are, as far as I noticed, identical). – ebosi Sep 16 '16 at 17:32