You are not logged in.
I've configured everything and still occasionally my keyboard layout is lost. Whether it is the fault of systemctl suspension or the xscreensaver, I am not sure. The keyboard layout is set to US in both, xorg and the terminal.
/etc/vconsole.conf:
KEYMAP=uk
.xinitrc and .profile contain:
setxkbmap gb
/etc/locale.gen
en_GB.UTF-8 UTF-8
/etc/X11/xorg.conf.d
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "gb"
EndSection
Do you have any suggestions? Thanks
Offline
What's the output of...
localectl...before and after suspending?
How do you start X?
What DE are you using? If it's Gnome are you using X or Wayland?
Last edited by Slithery (2017-03-02 19:19:10)
Offline
So that's another issue. I cannot easily reproduce this problem. If I start xscreensaver myself which I use a lot to lock the screen, this does not happen. The sleep itself in short periods of time does not do it either (it also does not start xscreensaver if the period of sleep is too short).
Right now localectl gives the correct settings. I'll update the post once the problem happens again. This is the correct layout:
System Locale: LANG=en_GB.UTF-8
VC Keymap: uk
X11 Layout: gb
My DE is Awesome WM with Xorg, which on arch wiki says that the keyboard configuration in Xorg is used.
Thanks
Last edited by bieniekmat (2017-03-02 19:41:13)
Offline
.xinitrc and .profile contain:
setxkbmap gb
Why? It sounds as if the keyboard gets removed and re-added w/ the STR , if the layout isn't successfully configured by the xorg snippet (check the xorg log and dmesg for the pot. keyboard re-addition) but only the setxkbmap calls (of which one should be superfluous), you'll end up with a US keyboard.
Notice:if "/etc/X11/xorg.conf.d" is a file (as your post suggests) - that won't work. /etc/X11/xorg.conf.d is supposed to be a directory which contains several files (eg. 11-keyboard.conf / root:root, 644)
Offline
I added the laytout setting to .profile despite .xinitrc a few days ago as a simple test.
Of course the path is a directory as you noticed. The correct path is /etc/X11/xorg.conf.d/00-keyboard.conf
The next time it happens I'll investigate the logs.
Thanks
Offline
so the xinitrc call is required? the xorg configlet isn't sufficient (for basic usage, ignoring the issue of this thread)?
Offline
The .xinitrc is sufficient, I've added the other settings later on to see if that removes the occasional problem.
After rebooting the system the layout is configured fine. It is only occasionally that the settings are lost and that could be linked to system suspension.
Offline
the point is that /etc/X11/xorg.conf.d/00-keyboard.conf should suffice and any setxkbmap calls should be unrequired entirely.
Offline
Of course. This was just quick tests to see if this changes anything with hopes that whichever configuration is picked up, it will be the one I want.
Offline