I'm not quite sure about the history, but it strikes me that there may be some misconceptions floating around in the above discussion.
On my Ubuntu 16.10 I
* removed all keyboard layout related user settings,
* set XKBLAYOUT="se" in /etc/default/keyboard, and
* rebooted.
The resulting effective layout on lightdm-gtk-greeter was Swedish as expected.
Please note that the language chooser shown by default in lightdm-gtk-greeter is about setting the session's display language, and has nothing to do with keyboard layouts.
I'm not quite sure about the history, but it strikes me that there may be some misconceptions floating around in the above discussion.
On my Ubuntu 16.10 I
* removed all keyboard layout related user settings, keyboard, and
* set XKBLAYOUT="se" in /etc/default/
* rebooted.
The resulting effective layout on lightdm-gtk-greeter was Swedish as expected.
Please note that the language chooser shown by default in lightdm-gtk-greeter is about setting the session's display language, and has nothing to do with keyboard layouts.
You can enable a keyboard layout switcher; please see <http:// askubuntu. com/q/821017> including the comments.