The built-in keyboard of my laptop is connected to the system as a USB device.
During installation of XUbuntu 16.04 from the official 64 bit ISO image, I was asked about my keyboard layout.
I entered German, keyboard layout changed as requested and installation went as expected.
But after reboot, the keyboard was set to US layout.
I ran dpkg-reconfigure keyboard-configuration
and afterwards, keyboard layout was back to German. Nice.
But after reboot, the keyboard was set to US layout.
I checked /etc/default/keyboard
and it did contain the expected entries:
XKBMODEL="pc105"
XKBLAYOUT="de"
But after reboot, the keyboard was set to US layout.
I ran setxkbmap -query
and it returned:
rules: evdev
model: pc105
layout: de
The layout is US, despite -query
returning DE. When I ran setxkbmap de
, the layout changed as requested.
But after reboot, the keyboard was set to US layout.
I pushed CTRL+ALT+F1 and got a non-GUI console. There, keyboard was German directly after reboot.
What is going on here? Why is lightdm on X starting with a US layout, while the non-X text console is DE?
I have tried various suggestions on this site and elsewhere to fix it, but to no avail. Also curious, my XUbuntu desktop machine is also using a USB keyboard and does not show this behaviour.