public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kmscon] rawhide: Fix kmscon starting in background
@ 2026-06-09 12:54 Jocelyn Falempe
  0 siblings, 0 replies; only message in thread
From: Jocelyn Falempe @ 2026-06-09 12:54 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/kmscon
            Branch : rawhide
            Commit : 4e90da4671eca3f58641b535a6ecf568dfb60cc1
            Author : Jocelyn Falempe <jfalempe@redhat.com>
            Date   : 2026-06-09T14:53:26+02:00
            Stats  : +37/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/kmscon/c/4e90da4671eca3f58641b535a6ecf568dfb60cc1?branch=rawhide

            Log:
            Fix kmscon starting in background

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>

---
diff --git a/0001-seat-Fix-seat-startup-in-background.patch b/0001-seat-Fix-seat-startup-in-background.patch
new file mode 100644
index 0000000..bf7359f
--- /dev/null
+++ b/0001-seat-Fix-seat-startup-in-background.patch
@@ -0,0 +1,32 @@
+From 087ded3ac1ef932e73fd0f1fb47a8d49c4404a67 Mon Sep 17 00:00:00 2001
+From: Jocelyn Falempe <jfalempe@redhat.com>
+Date: Tue, 9 Jun 2026 14:38:44 +0200
+Subject: [PATCH] seat: Fix seat startup in background
+
+If VT 2 is active, and you run systemctl restart kmsconvt@tty3
+
+Then the session will try to directly take the GPU, and fails.
+So don't awake the seat on startup, but wait for the tty be be activated.
+
+Fix: 0dffbd7 session: Simplify session management
+Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
+---
+ src/kmscon_seat.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/kmscon_seat.c b/src/kmscon_seat.c
+index 91b8db8..7dd13de 100644
+--- a/src/kmscon_seat.c
++++ b/src/kmscon_seat.c
+@@ -1101,8 +1101,6 @@ void kmscon_seat_startup(struct kmscon_seat *seat)
+ 	if (!seat)
+ 		return;
+ 
+-	seat_go_awake(seat);
+-
+ 	s = kmscon_seat_new_session(seat);
+ 	if (s)
+ 		seat_switch(seat, s);
+-- 
+2.54.0
+

diff --git a/kmscon.spec b/kmscon.spec
index cee55b3..33029c6 100644
--- a/kmscon.spec
+++ b/kmscon.spec
@@ -29,13 +29,16 @@ BuildRequires:  pkgconfig(systemd)
 BuildRequires:  pkgconfig(xkbcommon) >= 0.5.0
 BuildRequires:  pkgconfig(zlib)
 
-Patch: localectl_support.patch
+Patch1: localectl_support.patch
+
+# Fix background startup:
+Patch2: 0001-seat-Fix-seat-startup-in-background.patch
 
 # Temporary downstream patch until kmscon natively supports /usr/lib/issue.d
 # This is needed by Fedora Server and Fedora ELN to display the Cockpit
 # console URL at the login prompt.
 # See https://github.com/kmscon/kmscon/issues/407 for more details
-Patch: 0001-Use-agetty-on-Fedora.patch
+Patch10: 0001-Use-agetty-on-Fedora.patch
 
 %description
 Kmscon is a simple terminal emulator based on linux kernel mode setting (KMS).

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

only message in thread, other threads:[~2026-06-09 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 12:54 [rpms/kmscon] rawhide: Fix kmscon starting in background Jocelyn Falempe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox