Solved [Help] Keyboard fixed to US in X11, can not change keyboard layout

I installed FreeBSD-15-STABLE and the base runs fine despite very few minor flaws. But not so the ports, thus I switched them back from latest to quarterly and reinstalled most ports (from packages; except a few that are doing fine). Setting the keybord map to ch works well for the text console, but
  • In KDE/X11, the keyboard layout is fixed to US, I can not change it for the GUI.
  • Setting sddm_lang in rc.conf(5) changes the language of the greeter, but not the keyboard layout.
  • In FreeBSD-14, I had to have a small config script /usr/local/etc/X11/xorg.conf.d/10-keyboard.conf
INI:
# Set the layout of the internal keyboard of a x86 laptop
Section "InputClass"
        Identifier "Keyboard0"
        MatchIsKeyboard "on"
        #MatchDevicePath "/dev/kbd0"
        #MatchDriver "atkbd"
        Option "XkbLayout" "ch"
        Option "XkbVariant" "de"
        Option "XkbModel" "pc105"
EndSection
but this does not work as indended. Any ideas highly appreciated!
Thx in advance
[EDIT] I am not sure if this is a problem with KDE or X11
 
WTF! I don't know how & why, but somehow setxkbmap was not installed... So either some pkg maintainer forgot to include it (I'll check that), or it fell off because of my switch from latest to quarterly packages & ports(7).
 
HI
Usually after a fresh install i set SWEDEN keyboard and remove USA keyboard in two places:

- The KDE System settings Keyboard Dialogue
- IBUS (Gnome) Preferences.

Some apps use KDE preferencces and otherapps use IBUS prefernces.
( i usually install Abiword Gnumeric , Gnotes , Gnome-planner , Glables ..... from the old GNOME office suite )

TTY non-Xwindows is never a problem as I select SWEDEN keyboard during installation.
and I did have setxkbmap installed . so it was installed when I asked for # Pkg install xorg.
 
P.S. Now I can set the keyboard layout in a GUI user session, but not for sddm(8). Can't set the theme either... Looks like a have to open another thread for that.
 
Back
Top