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
  • 69,223
  • 56
  • 216
  • 327
ebosi
  • 397
  • 6
  • 20
  • 1
    Do they have the same French layouts ? compare outputs of `gsettings get org.gnome.desktop.input-sources sources` command on both computers – Sergiy Kolodyazhnyy Sep 16 '16 at 08:32
  • well, the output won't be exactly that, you have to see if it shows something like `[('xkb','fr')]` . Important part is that it shows the same text – Sergiy Kolodyazhnyy Sep 16 '16 at 08:51

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](http://askubuntu.com/questions/825611/auto-escape-special-characters-e-g-etc?noredirect=1#comment1254962_825611) (`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