Created attachment 408598 [details]
emerge --info output
Specifying a non-default keyboard layout (Swedish in my case) does not work.
I have used the Applications->Settings->Keyboard dialog to try and specify the keyboard layout. Under the Layout tab I untick the "System defaults" box. I then leave the "Keyboard model" as "Generic 104/key PC" and select "Swedish" for the "Keyboard layout". Since I don't use other keyboards I also delete the default entry (US English I think it was).
Having closed the dialog there is no immediate effect: When I type some characters in a newly opened xterm I can see that XFCE still assumes I have a US English keyboard.
Terminating the desktop and starting it again does not help. If I open the Keybord dialog and look at the settings it says Swedish. However, XFCE still assumes I have a US English keyboard layout.
These findings are made on a recently installed system. I have not installed a display manager; I use 'startx'.
I have not done any tweaks of the xorg.conf file. The motherboard has ATI Radeon and I use the closed-source ati-drivers-15.7 package from the x11 overlay. I will attach the 'equery list -f ".*"' output for reference.
Probably not significant, but anyway: I have keymap="sv-latin1" in /etc/conf.d/keymaps and typing in a console window works correctly with my Swedisk keyboard.
Created attachment 408600 [details]
output from: equery list -f ".*"
I have found a workaround: Emerge x11-apps/setxkbmap and modify ~/.xinitrc to contain this:
I tried to check if the presence of the setxkbmap package would also make it possible to specify the keyboard via the XFCE "Keyboard" dialog, but this does not seem to be the case.
It worked for me to set and switch between many different keymaps. Did you set a key combo to swap the layout? Can you try maybe using the panel plugin to set the layout to Swedish? Adding a new language to the keyboard settings list did not switch to it automatically, you might have to actually switch it before you remove the old language.
What do you have under Settings -> Settings Editor -> keyboard-layout?
The bug still seems to be present. I'm affected by it on one of my machines with a fresh Gentoo install. I'm using Xorg with Xfce (xfce-settings-4.16.0) without DM, just starting it with startxfce4.
Changing layout in settings manager doesn't change anything. Value of "Settings -> Settings Editor -> keyboard-layout" is updated but doesn't work. I have to use setxkbmap each time I restart X.