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