GNOME Bugzilla – Bug 727214
GDM disables XkbOption ctrl:nocaps from /etc/X11/xorg.conf.d/10-evdev.conf
Last modified: 2018-05-24 11:00:59 UTC
Like many of us, I use a single-user laptop. Since I use the German Dvorak TypeII keyboard layout, I want to have it configured globally. For the X11 part of it, I have this entry in my /etc/X11/xorg.conf.d/10-evdev.conf: Section "InputClass" Identifier "evdev keyboard catchall" MatchIsKeyboard "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "XkbLayout" "de" Option "XkbVariant" "dvorak" Option "XkbOptions" "ctrl:nocaps" EndSection It works in so far that in fact, the correct German Dvorak layout is enabled globally even in GDM. However, the XkbOption "ctrl:nocaps" is NOT enabled, and I need to type "setxkbmap -option ctrl:nocaps" every time I log into GNOME. First, I've thought it's an X issue, but then I switched from GDM to LightDM for testing, and with that, the option is enabled after logging into GNOME. So it seems GDM disables it somehow. I don't have any input sources configured in the GNOME settings. I'm the only user, so I have no need to configure them on a per-user basis. It should just use what's configured globally. I'm happy to provide any details you might need.
I can confirm this is still an issue for GDM 3.12.1. I've set the same option in xorg.conf.d/10-evdev.conf, but GDM ignores it. I also tried `sudo -u gdm dconf-editor` and added 'ctrl:nocaps' to org.gnome.desktop.input-sources.xkb-options - it didn't help. It seems GDM is working very hard to toss out your keyboard configuration, regardless of how you try to tell it what you want.
Indeed, when I enable Typing > Ctrl key position > CapsLock as Ctrl in the Tweak Tool which sets org.gnome.desktop.input-sources.xkb-options, it also doesn't help as Jesse already mentioned.
This is probably the cause of why org.gnome.desktop.input-sources.xkb-options has no effect: https://bugzilla.gnome.org/show_bug.cgi?id=699123
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/188.