Thank you vanvugt, it works for me with Ubuntu 17.10 and your procedure.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1660041
Title:
wrong keyboard layout in gdm
To manage notifications about this
Public bug reported:
Hello
GDM does not load my user preferences about my locale.
I have a french keyboard (layout fr, "azerty"), nicely configured in the Gnome
settings, but my layout is qwerty in GDM. I tried to create a xorg
configuration file
(https://wiki.archlinux.org/index.php/Keyboard_