[Bug 1023211] New: Wrong behaviour in localectl set-keymap MAP
http://bugzilla.suse.com/show_bug.cgi?id=1023211 Bug ID: 1023211 Summary: Wrong behaviour in localectl set-keymap MAP Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: sndirsch@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- localectl set-keymap <MAP> doesn't change "XkbLayout" to "<MAP>" in /etc/X11/xorg.conf.d/00-keyboard.conf, if <MAP> is already set in /etc/vconsole.conf (KEYMAP=<MAP>). It does work if KEYMAP is set to a different value in etc/vconsole.conf. I consider this a bug. Example: # localectl set-keymap us # cat /etc/X11/xorg.conf.d/00-keyboard.conf [...] Option "XkbLayout" "us" [...] <change KEYMAP in /etc/vconsole.conf from "us" to "de". # localectl set-keymap de # cat /etc/X11/xorg.conf.d/00-keyboard.conf [...] Option "XkbLayout" "us" [...] <change KEYMAP in /etc/vconsole.conf from "de" back to "us". localectl set-keymap de # cat /etc/X11/xorg.conf.d/00-keyboard.conf [...] Option "XkbLayout" "de" [...] -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fbui@suse.com Assignee|bnc-team-screening@forge.pr |systemd-maintainers@suse.de |ovo.novell.com | Summary|Wrong behaviour in |systemd: Wrong behaviour in |localectl set-keymap MAP |localectl set-keymap MAP -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c1 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Franck Bui <fbui@suse.com> --- According to upstream that's expected if you edit manually vconsole.conf: https://github.com/systemd/systemd/issues/5221 So I'm closing this one, if you don't agree please discuss with upstream directly. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c2 --- Comment #2 from Stefan Dirsch <sndirsch@suse.com> --- Thanks for reporting the issue to github! I've promised to you some time ago to file a bug for this issue, so I did this in the end. I don't think it's worth discussing this with upstream. This guy won't listen to me and won't accept a fix for that issue either. I'm pretty sure. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c3 --- Comment #3 from Franck Bui <fbui@suse.com> --- Well it depends on how good your arguments are ;) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c4 --- Comment #4 from Stefan Dirsch <sndirsch@suse.com> --- (In reply to Franck Bui from comment #3)
Well it depends on how good your arguments are ;)
I seriously doubt this. I thought about workarounding the issue, but failed miserably. . $vconsole_conf_file if [ ! -z $KEYMAP ]; then echo "KEYMAP: $KEYMAP" options="$KEYMAP $KEYMAP_TOGGLE" ### Linux console and X11 keymap isn't set, if $KEYMAP option for ### "localectl set-keymap" is the same as specified in ### vconsole.conf; so # make sure this cannot happen by setting it ### to some bogus value first (bnc#1023211) # sed -i 's/KEYMAP=.*/KEYMAP=replace_me/g' $vconsole_conf_file setkeyboard "$options" fi Issue seems to be, that the value of $KEYMAP inside of localed and in /etc/vconsole.conf are not in sync, i.e. localed is caching this somehow regularly. :-( -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c5 --- Comment #5 from Stefan Dirsch <sndirsch@suse.com> --- (In reply to Stefan Dirsch from comment #4)
(In reply to Franck Bui from comment #3)
Well it depends on how good your arguments are ;)
I seriously doubt this. I thought about workarounding the issue, but failed miserably.
. $vconsole_conf_file if [ ! -z $KEYMAP ]; then echo "KEYMAP: $KEYMAP" options="$KEYMAP $KEYMAP_TOGGLE" ### Linux console and X11 keymap isn't set, if $KEYMAP option for ### "localectl set-keymap" is the same as specified in ### vconsole.conf; so # make sure this cannot happen by setting it ### to some bogus value first (bnc#1023211) # sed -i 's/KEYMAP=.*/KEYMAP=replace_me/g' $vconsole_conf_file setkeyboard "$options" fi
Issue seems to be, that the value of $KEYMAP inside of localed and in /etc/vconsole.conf are not in sync, i.e. localed is caching this somehow regularly. :-(
The sed command was the key here. I commented it out afterwards. The issue was, that localed apparently thought the previous keymap before the bogus value was still set in vconsole.conf, so it did just nothing, i.e. it also did not overwrite the bogus value in /etc/vconsole.conf. Oh well. So no reliable way to set Linux console and X11 keymap originated from the value in /etc/vconsole.conf. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c6 --- Comment #6 from Franck Bui <fbui@suse.com> --- Apparently localed expects modifications in vconsole.conf are done by localectl ony. Why can't this assumption be met in your case ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c7 --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> --- Well, previously Linux console and X11 default keymaps were set during displaymanger startup according to the configuration in /etc/sysconfig/keyboard. /etc/vconsole.conf looked like the successor to me. Meanwhile it turned out to be something different, not very useful to me. Anyway, I'll let the YaST guys to no longer to write /etc/vconsole.conf directly - in case they (still) do - and run "localectl set-x11-keymap <keymap> [...]" instead. And I'll remove this keymap configuration script completely. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c8 --- Comment #8 from Franck Bui <fbui@suse.com> --- Sounds better indeed, thanks Stefan. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.suse.com/s | |how_bug.cgi?id=1023774 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c9 --- Comment #9 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (1023211) was mentioned in https://build.opensuse.org/request/show/454992 Factory / xdm -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1023211 http://bugzilla.suse.com/show_bug.cgi?id=1023211#c10 --- Comment #10 from Stefan Dirsch <sndirsch@suse.com> --- *** Bug 1023775 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com