|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From 4d4eff2436b63f19811fa39ef26fa1e2ca31a54a Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From: Ray Strode <rstrode@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Date: Wed, 5 Nov 2014 08:30:52 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Subject: [PATCH] login: rerun vconsole-setup when switching from vgacon to
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
fbcon
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
The initialization performed by systemd-vconsole-setup is reset
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
when changing console drivers (say from vgacon to fbcon), so we
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
need to run it in that case.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
See
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
http://lists.freedesktop.org/archives/systemd-devel/2014-October/023919.html
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
http://lists.freedesktop.org/archives/systemd-devel/2014-October/024423.html
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
http://lists.freedesktop.org/archives/systemd-devel/2014-November/024881.html
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
This commit adds a udev rule to make systemd-vconsole-setup get run when
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
the fbcon device becomes available.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
(david: moved into new file 90-vconsole.rules instead of 71-seats.rules;
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
build-failures are on me, not on Ray)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
(cherry picked from commit f6ba8671d83f9fce9a00045d8fa399a1c07ba7fc)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Makefile.am | 3 +++
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
src/vconsole/90-vconsole.rules | 11 +++++++++++
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
2 files changed, 14 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
create mode 100644 src/vconsole/90-vconsole.rules
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
diff --git a/Makefile.am b/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
index a94578a9a7..22fd306c81 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
--- a/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+++ b/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -4403,6 +4403,9 @@ rootlibexec_PROGRAMS += \
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
nodist_systemunit_DATA += \
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
units/systemd-vconsole-setup.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+dist_udevrules_DATA += \
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+ src/vconsole/90-vconsole.rules
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
SYSINIT_TARGET_WANTS += \
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
systemd-vconsole-setup.service
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
endif
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
diff --git a/src/vconsole/90-vconsole.rules b/src/vconsole/90-vconsole.rules
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
new file mode 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
index 0000000000..bf6a9efaa5
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
--- /dev/null
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+++ b/src/vconsole/90-vconsole.rules
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -0,0 +1,11 @@
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+# This file is part of systemd.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+#
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+# systemd is free software; you can redistribute it and/or modify it
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+# under the terms of the GNU Lesser General Public License as published by
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+# the Free Software Foundation; either version 2.1 of the License, or
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+# (at your option) any later version.
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+# Kernel resets vconsole state when changing console drivers so run
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+# systemd-vconsole-setup when fbcon loads
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+ACTION=="add", SUBSYSTEM=="graphics", KERNEL=="fbcon", RUN+="/usr/lib/systemd/systemd-vconsole-setup"
|