[Bug 1229915] New: systemd - vconsole-setup / display-manager - clobbering vconsole.conf
https://bugzilla.suse.com/show_bug.cgi?id=1229915 Bug ID: 1229915 Summary: systemd - vconsole-setup / display-manager - clobbering vconsole.conf Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.6 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: bugrprt21882@online.de QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- I've noticed that, "localectl" was no longer reporting my preferred X11 keyboard model - should be: # localectl System Locale: LANG=de_DE.UTF-8 VC Keymap: de X11 Layout: de X11 Model: cymotionlinux X11 Variant: de_nodeadkeys X11 Options: terminate:ctrl_alt_bksp # Was: # localectl System Locale: LANG=de_DE.UTF-8 VC Keymap: de-nodeadkeys X11 Layout: de X11 Model: microsoftpro X11 Variant: nodeadkeys X11 Options: terminate:ctrl_alt_bksp # ---------------------------------------------------------------- Systemd Journal entries: [ 39.687375] display-manager[2035]: /etc/vconsole.conf available [ 39.687375] display-manager[2035]: KEYMAP: de-nodeadkeys [ 39.687375] display-manager[2035]: Command: localectl set-keymap de-nodeadkeys [ 39.687375] display-manager[2035]: W: Cannot find mapping for de-nodeadkeys in /usr/share/systemd/kbd-model-map [ 39.687375] display-manager[2035]: W: This will result in an 'us' X keyboard layout as default [ 39.687736] systemd[1]: Reached target Timer Units. [ 39.687966] systemd[1]: Starting The Apache Webserver... [ 39.688178] systemd[1]: Starting Postfix Mail Transport Agent... [ 39.688407] systemd[1]: Starting Do daily mandb update... [ 39.688602] systemd[1]: Starting Rotate log files... [ 39.688705] systemd[1]: Started The Apache Webserver. [ 39.688819] systemd[1]: Starting X Display Manager... [ 39.688904] (storecon)[2026]: postfix.service: Executable /sbin/restorecon missing, skipping: No such file or directory [ 39.689078] systemd[1]: Starting Locale Service... [ 39.689181] systemd[1]: Started Locale Service. [ 39.689253] systemd-localed[2043]: The virtual console keymap 'de-nodeadkeys' is converted to X11 keyboard layout 'de' model 'microsoftpro' variant 'nodeadkeys' options 'terminate:ctrl_alt_bksp' [ 39.689654] systemd-localed[2043]: Changed virtual console keymap to 'de-nodeadkeys' toggle '' [ 39.689771] systemd[1]: kbdsettings.service: Deactivated successfully. [ 39.689881] systemd[1]: Stopped Apply settings from /etc/sysconfig/keyboard. [ 39.689978] systemd[1]: Stopping Apply settings from /etc/sysconfig/keyboard... [ 39.690071] systemd[1]: systemd-vconsole-setup.service: Deactivated successfully. [ 39.690147] systemd[1]: Stopped Virtual Console Setup. [ 39.690219] systemd[1]: Stopping Virtual Console Setup... [ 39.690278] systemd[1]: Starting Virtual Console Setup... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1229915 https://bugzilla.suse.com/show_bug.cgi?id=1229915#c1 --- Comment #1 from Donald Curtis <bugrprt21882@online.de> --- I've also noticed that, if the VC Keymap is set to "de-nodeadkeys" then, the X11 Model changes to "pc105" with no variant. For the X11 Model to be set to (Cherry) "cymotionlinux" the VC Keymap has to be set to "de" - without any "nodeadkeys". ----------------- For now, I've masked the systemd-vconsole-setup.service - # systemctl list-unit-files systemd-vconsole-setup.service UNIT FILE STATE PRESET systemd-vconsole-setup.service masked disabled 1 unit files listed. # But, haven't yet tested with a reboot - back soon ... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1229915 https://bugzilla.suse.com/show_bug.cgi?id=1229915#c2 --- Comment #2 from Donald Curtis <bugrprt21882@online.de> --- Didn't help - after a reboot the Locale is now - # localectl System Locale: LANG=de_DE.UTF-8 VC Keymap: de X11 Layout: de X11 Model: pc105 X11 Options: terminate:ctrl_alt_bksp # Systemd Journal entries - [ 40.437401] systemd[1]: Starting X Display Manager... [ 40.463198] display-manager[1978]: /etc/vconsole.conf available [ 40.464041] display-manager[1978]: KEYMAP: de [ 40.464145] display-manager[1978]: Command: localectl set-keymap de [ 40.469907] (storecon)[1971]: postfix.service: Executable /sbin/restorecon missing, skipping: No such file or directory [ 40.473055] display-manager[1978]: I: Using systemd /usr/share/systemd/kbd-model-map mapping [ 40.479128] dbus-daemon[1071]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.25' (uid=0 pid=1987 comm="localectl set-keymap de ") [ 40.484870] systemd[1]: Starting Locale Service... [ 40.539754] dbus-daemon[1071]: [system] Successfully activated service 'org.freedesktop.locale1' [ 40.539952] systemd[1]: Started Locale Service. [ 40.545686] systemd-localed[1988]: The virtual console keymap 'de' is converted to X11 keyboard layout 'de' model 'pc105' variant '' options 'terminate:ctrl_alt_bksp' [ 40.572555] systemd-localed[1988]: Changed virtual console keymap to 'de' toggle '' [ 40.574130] systemd-localed[1988]: Failed to issue method call: Unit systemd-vconsole-setup.service is masked. ------------------------- I've unmasked the systemd-vconsole-setup.service. * Will setup a private systemd service to setup the VConsole X11 attributes after the boot completes. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1229915 https://bugzilla.suse.com/show_bug.cgi?id=1229915#c3 --- Comment #3 from Donald Curtis <bugrprt21882@online.de> --- For now I'm using the following admin/local-system systemd service to deal with this issue –
cat /etc/systemd/system/restore-vconsole-settings.service [Unit] Description=Reset the parameter values in vconsole config After=multi-user.target systemd-vconsole-setup.service StopWhenUnneeded=yes
[Service] Type=exec ExecStart=/root/bin/Reset_vconsole-conf [Install] WantedBy=graphical.target
# cat /root/bin/Reset_vconsole-conf #!/bin/bash # # Called by restore-vconsole-settings.service # systemd unit file location: /etc/systemd/system/ # systemd-cat --identifier=Admin echo "Start: \"Reset_vconsole-conf\"" # localectl set-keymap de-nodeadkeys localectl set-x11-keymap de cymotionlinux nodeadkeys terminate:ctrl_alt_bksp # systemd-cat --identifier=Admin echo "End: \"Reset_vconsole-conf\"" # exit 0 # # End of Reset_vconsole-conf # -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1229915 Donald Curtis <bugrprt21882@online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|systemd - vconsole-setup / |systemd - vconsole-setup / |display-manager - |display-manager - changing |clobbering vconsole.conf |vconsole.conf -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1229915 https://bugzilla.suse.com/show_bug.cgi?id=1229915#c10 --- Comment #10 from Donald Curtis <bugrprt21882@online.de> --- (In reply to Franck Bui from comment #5)
(In reply to Donald Curtis from comment #2)
[ 40.437401] systemd[1]: Starting X Display Manager...
It's actually xdm.
Stefan, do you know the purpose of calling `localectl set-keymap xxx` from the display manager ?
It has the bad side effect to cancel any previous customization that the user might have done on the xkeymap.
Unfortunately "/etc/X11/xdm/keytable" uses '/usr/share/systemd/kbd-model-map' which doesn't reflect everything in '/usr/share/kbd/keymaps/xkb/' -- A glaring omission is "de-nodeadkeys". -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com