[systemd-devel] Unicode support in console after boot

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Oct 13 06:36:00 PDT 2014


On Mon, Oct 13, 2014 at 03:13:50PM +0200, Jan Synacek wrote:
> Andrei Borzenkov <arvidjaar at gmail.com> writes:
> > On Mon, Oct 13, 2014 at 4:33 PM, Jan Synacek <jsynacek at redhat.com> wrote:
> >> Andrei Borzenkov <arvidjaar at gmail.com> writes:
> >>> On Mon, Oct 13, 2014 at 12:48 PM, Jan Synacek <jsynacek at redhat.com> wrote:
> >>>> Mantas Mikulėnas <grawity at gmail.com> writes:
> >>>>> On Mon, Oct 13, 2014 at 10:36 AM, Jan Synacek <jsynacek at redhat.com> wrote:
> >>>>>> Hello,
> >>>>>>
> >>>>>> currently, unicode characters are not correctly displayed in the
> >>>>>> console. After login, when I run /usr/bin/unicode_start, unicode works
> >>>>>> fine. I tried to create a service file that runs this script, linking
> >>>>>> tty to stdout and stderr, but that didn't work. Is there a way how to
> >>>>>> turn on unicode support in console after boot using a service file? Or
> >>>>>> any other type of unit? Or is this something that has to be patched in
> >>>>>> the source (logind perhaps?)?
> >>>>>
> >>>>> This is already done by systemd-vconsole-setup [1], but only if the
> >>>>> system locale is a UTF-8 one [2].
> >>>>>
> >>>>> [1]: http://cgit.freedesktop.org/systemd/systemd/tree/src/vconsole/vconsole-setup.c?h=a158dbf156ac#n70
> >>>>> [2]: http://cgit.freedesktop.org/systemd/systemd/tree/src/shared/util.c?h=a158dbf156ac#n5547
> >>>>
> >>>> Thank you. There seems to be something wrong with the
> >>>> systemd-vconsole-setup.service, it doesn't seem to be run correctly at
> >>>> boot. If restarted, I get the unicode support.
> >>>>
> >>>
> >>> Do you use graphical splash screen (plymouth) by any chance?
> >>
> >> Yes, I'm trying this in somewhat newish rawhide, I believe plymouth is
> >> on by default. I tried removing "rhgb" from the kernel command line, but
> >> that didn't change anything.
> >>
> >
> > Does booting with plymouth.enable=0 change anything?
> 
> Nope, that doesn't help. After "loadkeys cz", I still see white
> rectangles instead of proper characters.
Could be a kernel bug too, don't rule this out. IIRC, some settings do
not get propagated from the foreground console to other consoles, or they
get reset at some point, or something like that (should be the ML archives).

Zbyszek


More information about the systemd-devel mailing list