Setxkbmap shows the following:
$ setxkbmap -query
rules: evdev
model: pc105
layout: us
So I have to manually switch to Hungarian either by
1.) clicking on the only Hungarian item in the keyboard indicator,
(Setxkbmap shows:
rules: evdev
model: pc105
layout: hu,us
variant: , )
2.) or entering setxkbmap hu in the terminal.
(Setxkbmap shows:
rules: evdev
model: pc105
layout: hu )
But after this and using any modifier key (e.g. switching tasks with Alt+Tab or switching desktops with Ctrl+Alt+cursors) I face the mentioned inconsistent numpad state.
BTW numlockx says:
$ numlockx status
Numlock is on
Since I have to do the layout switching only once after startup I overcame this faulty behavior with a script starting automatically after login, as follows:
I also experienced this weird NumLock state described by Egmont (5 is a digit, the rest are cursor keys).
I only use one keyboard layout (Hungarian) and don't want to switch it to any other, thus I deleted the English one in the System Settings / Text Entry. askubuntu. com/questions/ 362973/ keyboard- layout- switches- to-english- each-time- i-reboot).
But after startup my keyboard layout is mostly set to English (which is also described by others, e.g. http://
Setxkbmap shows the following:
$ setxkbmap -query
rules: evdev
model: pc105
layout: us
So I have to manually switch to Hungarian either by
1.) clicking on the only Hungarian item in the keyboard indicator,
(Setxkbmap shows:
rules: evdev
model: pc105
layout: hu,us
variant: , )
2.) or entering setxkbmap hu in the terminal.
(Setxkbmap shows:
rules: evdev
model: pc105
layout: hu )
But after this and using any modifier key (e.g. switching tasks with Alt+Tab or switching desktops with Ctrl+Alt+cursors) I face the mentioned inconsistent numpad state.
BTW numlockx says:
$ numlockx status
Numlock is on
Since I have to do the layout switching only once after startup I overcame this faulty behavior with a script starting automatically after login, as follows:
#!/bin/sh
setxkbmap hu
numlockx off
numlockx on