Summary: | [gnome-overlay] =gnome-base/gdm-3.14.1 ignores xorg keyboard layout | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Wegner <gentoo-bugs> |
Component: | [OLD] GNOME | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | rodolphe.rocca |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 523688 |
Description
Martin Wegner
2014-11-24 12:58:49 UTC
I think I have also seen this... but since I have autologin enabled I didn't notice until I opened control center and noticed the settings were reset to english for some reason Ah no, I had it disabled and I logged it properly (and, then, maybe keymap was ok) :/ I have seen other reports... but they look to be caused by wrong config files around or people don't setting the proper layout with localectl: https://bbs.archlinux.org/viewtopic.php?id=188509 https://bugs.archlinux.org/task/42406 http://forum.pcastuces.com/gnome_3141__clavier_azerty_passe_en_qwerty-f8s14473.htm https://forums.archlinux.fr/viewtopic.php?p=136402#p136402 Maybe you are suffering this: https://bugzilla.gnome.org/show_bug.cgi?id=741833 https://bugzilla.redhat.com/show_bug.cgi?id=1164283 Anyway, we aren't able to reproduce (with spanish and french locales). What are your /etc/X11/xorg.conf and /etc/X11/xorg.conf.d/* files? Also look if this is not a variant of bug 537428 Thanks for coming back to me on this. I am still seeing this with =gnome-base/gdm-3.14.1-r1 from the tree (no overlay anymore). However, I think, the bug has changed slightly since the initial report: As of now, I am seeing a keyboard layout switcher in the upper right corner of gdm, with a German layout ("de") preselected and the option to switch to English layout ("en"). However, the X11 keyboard model still seems to be ignored (it's set to "dvorak", see below). When I type, the layout/model is the same as the standard german QWERTZ layout. I will try to provide a screenshot when I am physically sitting in front of the computer the next time to try it. Also unfortunately, I cannot see any direct connection to the mentioned bug reports: It definitely has nothing to do with special characters not working, if I try out the layout by choosing to login with another username not in the list, the layout is "correct" with regards to the wrong layout being set initially. The layout seems not to be forgotten either, just the X11 keyboard setting being ignored. Config files are as follows: $ localectl System Locale: LANG=C LC_CTYPE=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 VC Keymap: dvorak-de-type2 X11 Layout: de X11 Model: dvorak xorg.conf does not exist in /etc/X11 . Contents of files in /etc/X11/xorg.conf.d by filename: /etc/X11/xorg.conf.d/00-keyboard.conf: # Read and parsed by systemd-localed. It's probably wise not to edit this file # manually too freely. Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" Option "XkbLayout" "de" Option "XkbModel" "dvorak" EndSection /etc/X11/xorg.conf.d/20opengl.conf: Section "Files" ModulePath "/usr/lib32/xorg/modules" ModulePath "/usr/lib64/opengl/nvidia" ModulePath "/usr/lib64/xorg/modules" EndSection Try to reconfigure using "localectl" and, if still valid, please report also to upstream -> bugzilla.gnome.org And post the link here. I would at first open it for the component "gnome-control-center" instead of gdm as I think it's the one really being responsible of keyboard layout on gdm and gnome-shell (they will reassign if needed) Sorry for coming back so late to this, but I haven't found the time earlier. I finally managed to narrow down and eliminate the cause for this bug, however it was and is not related to gdm. The key was the following error message in the gdm.service log: % journalctl --unit=gdm.service -b 0 [...] gdm-Xorg-:0[2433]: (**) Option "xkb_rules" "evdev" gdm-Xorg-:0[2433]: (**) Option "xkb_model" "de" gdm-Xorg-:0[2433]: (**) Option "xkb_layout" "pc105" gdm-Xorg-:0[2433]: (**) Option "xkb_variant" "dvorak" gdm-Xorg-:0[2433]: The XKEYBOARD keymap compiler (xkbcomp) reports: gdm-Xorg-:0[2433]: > Error: Can't find file "pc105" for symbols include gdm-Xorg-:0[2433]: > Exiting gdm-Xorg-:0[2433]: > Abandoning symbols file "default" gdm-Xorg-:0[2433]: Errors from xkbcomp are not fatal to the X server gdm-Xorg-:0[2433]: (EE) Error loading keymap /var/lib/xkb/server-0.xkm gdm-Xorg-:0[2433]: (EE) XKB: Failed to load keymap. Loading default keymap instead. After a while it hit me, xkb_model and xkb_layout are swapped, also in the output of localectl: % localectl [...] X11 Layout: pc105 X11 Model: de X11 Variant: dvorak The reason why this happened is quite simple albeit elusive: The zsh auto completion of arguments for localectl set-k11-keymap ... completes the arguments in the wrong order: First it offers models for completion, then the layouts, then the variants. But the first two need to be the other way round. So I called localectl with the right order of the arguments, i. e. % localectl set-x11-keymap de pc105 dvorak and it worked. So the question is, should this bug report be reopened and dedicated to the obvious bug in the zsh completion, or should I report this in another bug report? I would open a new bug for zsh completion (you can add a reference to this one in "See also" field for example... and maybe an upstream enhancement bug report to systemd (bugzilla.freedesktop.org) to make localectl warn when the model and layout settings are wrong :/ Thanks a lot for the investigation and feedback :) |