Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557102 - xfce-base/xfce4-settings-4.12.0: keyboard layout has no effect
Summary: xfce-base/xfce4-settings-4.12.0: keyboard layout has no effect
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: XFCE Team
Depends on:
Reported: 2015-08-09 09:15 UTC by Rabbe Fogelholm
Modified: 2021-03-26 11:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info output (ei.txt,4.79 KB, text/plain)
2015-08-09 09:15 UTC, Rabbe Fogelholm
output from: equery list -f ".*" (p.txt,13.78 KB, text/plain)
2015-08-09 09:19 UTC, Rabbe Fogelholm

Note You need to log in before you can comment on or make changes to this bug.
Description Rabbe Fogelholm 2015-08-09 09:15:57 UTC
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.
Comment 1 Rabbe Fogelholm 2015-08-09 09:19:22 UTC
Created attachment 408600 [details]
output from: equery list -f ".*"
Comment 2 Rabbe Fogelholm 2015-08-09 20:32:18 UTC
I have found a workaround: Emerge x11-apps/setxkbmap and modify ~/.xinitrc to contain this:

    setxkbmap se
    exec startxfce4

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.
Comment 3 Jason Zaman gentoo-dev 2015-09-13 13:35:20 UTC
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?
Comment 4 Tomasz Golinski 2021-03-26 11:44:58 UTC
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.