Comment 5 for bug 2030788

Revision history for this message
Chad Smith (chad.smith) wrote : Re: "localectl set-x11-keymap" doesn't work in mantic

@enr0n, while I think the approach James is taking in PR 4361 to write /etc/default/keyboard directly (followed by running: systemctl restart console-setup ) will persist the keyboard values provided, I find it hard to confirm that the keyboard settings are properly set and maybe this warrants a separate bug?.

  Are there suggestions for how in Ubuntu we can report status of configured keyboard layout as `localectl status` doesn't seem to report values from /etc/default/keyboard anymore either.

After such a change, localectl status still does not represent the updated settings on Ubuntu:

Note as well that any call to localectl status initially reports "Could not get properties: Access Denied" on first call while systemd-localed.service is being started up by udev/systemd.

root@schema-m:~# localectl status
Could not get properties: Access denied
root@schema-m:~# journalctl -b 0 -f
Aug 23 03:25:08 schema-m systemd[1]: systemd-localed.service: Deactivated successfully.
Aug 23 03:27:05 schema-m dbus-daemon[209]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.39' (uid=0 pid=2003 comm="localectl status" label="unconfined")
Aug 23 03:27:05 schema-m systemd[1]: Starting systemd-localed.service - Locale Service...
Aug 23 03:27:05 schema-m dbus-daemon[209]: [system] Successfully activated service 'org.freedesktop.locale1'
Aug 23 03:27:05 schema-m systemd[1]: Started systemd-localed.service - Locale Service.
Aug 23 03:27:55 schema-m systemd[1]: systemd-localed.service: Deactivated successfully.
Aug 23 03:28:08 schema-m dbus-daemon[209]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.43' (uid=0 pid=2011 comm="localectl status" label="unconfined")
Aug 23 03:28:08 schema-m systemd[1]: Starting systemd-localed.service - Locale Service...
Aug 23 03:28:08 schema-m dbus-daemon[209]: [system] Successfully activated service 'org.freedesktop.locale1'
Aug 23 03:28:08 schema-m systemd[1]: Started systemd-localed.service - Locale Service.
^^^^^^^^^^^^^^^^^ Note systemd
root@schema-m:~# localectl status
System Locale: LANG=C.UTF-8
    VC Keymap: (unset)
   X11 Layout: (unset) <------------- Note layout still unset despite /etc/default/keyboard "gb" value