jojopi wrote:klricks wrote:You MUST reboot after changing keyboard layout.
raspi-config offers a reboot if it has done anything that requires one (such as changing /boot/config.txt). It does not suggest a reboot after changing keyboard layout, because it goes to the trouble of activating the new layout, so a reboot should not be required. Are you saying there is still a bug with this?
(If you change keyboard layout by other methods, such as dpkg-reconfigure or editing /etc/default/keyboard, then you may indeed need to reboot, or manually activate the new layout.)
A reboot is still required. Here is the keyboard setting code in /usr/bin/raspi-config. The code calls the dpkg routine.
Code: Select all
do_configure_keyboard() {
dpkg-reconfigure keyboard-configuration &&
printf "Reloading keymap. This may take a short while\n" &&
invoke-rc.d keyboard-setup start || return $?
udevadm trigger --subsystem-match=input --action=change
return 0
}
Note there is other keyboard code for NOOBS. I don't use NOOBS.
What confuses people I think is that the GUI setting utility is a different and independent configuration which has priority.
For example:
If both the GUI keyboard utility and raspi-config keyboard utility are both set to UK....
Now from GUI.... If the keyboard is changed from UK to US using sudo raspi-config then, the keyboard seems to be changed to US in the LXterminal. However if you then exit the GUI to CLI, the keyboard will still be UK
until reboot.
Now reboot or not, when you go back to GUI (startx) the GUI will still be set to UK. This gives the impression that the keyboard setting in raspi-config did not work. (The CLI will now be US and the GUI will be UK).
IOW
-If you use GUI then you must use the GUI config in [Menu] --> [Preferences] to change keyboard. Reboot is not required
-If you use CLI then you must use sudo raspi-config. Reboot is required.
-The keyboard settings in GUI utility will override the raspi-config settings.