diff options
author | Jan Engelhardt <jengelh@inai.de> | 2015-02-24 17:49:02 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-27 13:55:23 -0400 |
commit | 240c4b086839edfb1a72898453069d4a7427c666 (patch) | |
tree | e3f31f32293f39477046aa767bf7c6f0f0bbdbab | |
parent | 64a51989b90b89a4cd3e908131dd8fac9e64a973 (diff) |
vconsole: match on vtcon events, not fbcon onesv216-stable
I observe that upon loading of framebuffer drivers, I do not get the
desired system font, but the kernel-level defaults (usually
lib/fonts/font_8x16.c, but your mileage may vary depending on kernel
config and boot options).
The fbcon driver may be loaded at a time way before the first
framebuffer device is active, such that the vconsole setup helper
runs too early.
The existing rule is non-fitting. The going live of the fbcon kernel
component does not indicate the proper time at which to load the
visuals, which really ought to be done when a new vtcon object comes
into existence. (The font table is a per-vtcon property.)
(cherry picked from commit a52750d1483ff139df33149afc0b675531e9cd79)
(cherry picked from commit b83da13fffc79b5f4c1edaba3764f4d9be6993ff)
-rw-r--r-- | src/vconsole/90-vconsole.rules.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vconsole/90-vconsole.rules.in b/src/vconsole/90-vconsole.rules.in index 062009640..35b9ad515 100644 --- a/src/vconsole/90-vconsole.rules.in +++ b/src/vconsole/90-vconsole.rules.in @@ -5,7 +5,6 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. -# Kernel resets vconsole state when changing console drivers so run -# systemd-vconsole-setup when fbcon loads - -ACTION=="add", SUBSYSTEM=="graphics", KERNEL=="fbcon", RUN+="@rootlibexecdir@/systemd-vconsole-setup" +# Each vtcon keeps its own state of fonts. +# +ACTION=="add", SUBSYSTEM=="vtconsole", KERNEL=="vtcon*", RUN+="@rootlibexecdir@/systemd-vconsole-setup" |