linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fbcon font is reset after GPU is loaded
@ 2023-01-24 17:23 novenary
  0 siblings, 0 replies; only message in thread
From: novenary @ 2023-01-24 17:23 UTC (permalink / raw)
  Cc: Daniel Vetter, Helge Deller, Sam Ravnborg, Thomas Zimmermann,
	Geert Uytterhoeven, Tetsuo Handa, linux-fbdev, dri-devel,
	linux-kernel

Hi,

This appears to be a pretty common problem. systemd includes a udev
rule[1] which loads a console font from userspace, using setfont from
the kbd package, when a vtcon device is added. According to udev debug
logs, this event only fires once.

This actually works fine all the way until the GPU driver is loaded,
after which the console is reverted to the default kernel font. My
understanding from skimming the code in fbcon.c is that fonts should
be persisted from one instance to the next.

I can reproduce this on both of my machines, one with an AMD Polaris
GPU, and one with Intel integrated graphics (Kaby Lake R).

As discussed in [2], it seems the only reliable way to change the
console font at the moment is to ensure that the graphics driver is
loaded before udev starts, but I don't believe this is an acceptable
or even correct solution.

Am I missing something? It would be really helpful if someone could
shed light on why this is happening.

[1] https://github.com/systemd/systemd/blob/main/rules.d/90-vconsole.rules.in
[2] https://github.com/NixOS/nixpkgs/issues/202846

Thanks in advance,
novenary

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-24 17:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 17:23 fbcon font is reset after GPU is loaded novenary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).