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