Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gdm for openSUSE:Factory checked in at 2026-08-19 17:55:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gdm (Old) and /work/SRC/openSUSE:Factory/.gdm.new.1258 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gdm" Wed Aug 19 17:55:45 2026 rev:305 rq:1371792 version:50.2 Changes: -------- --- /work/SRC/openSUSE:Factory/gdm/gdm.changes 2026-08-13 13:15:39.368894258 +0200 +++ /work/SRC/openSUSE:Factory/.gdm.new.1258/gdm.changes 2026-08-19 17:56:28.295010593 +0200 @@ -1,0 +2,8 @@ +Thu Aug 13 02:31:39 UTC 2026 - Xiaoguang Wang <[email protected]> + +- Add gdm-fix-tty1-mode.patch: During system startup, tty1 is left + in an invalid state, preventing it from being switched away from + (bsc#1250688, bsc#1272490, bsc#1252888) +- Drop gdm-initial-vt-tty1.patch: Fixed by gdm-fix-tty1-mode.patch + +------------------------------------------------------------------- Old: ---- gdm-initial-vt-tty1.patch New: ---- gdm-fix-tty1-mode.patch ----------(Old B)---------- Old: (bsc#1250688, bsc#1272490, bsc#1252888) - Drop gdm-initial-vt-tty1.patch: Fixed by gdm-fix-tty1-mode.patch ----------(Old E)---------- ----------(New B)---------- New: - Add gdm-fix-tty1-mode.patch: During system startup, tty1 is left in an invalid state, preventing it from being switched away from ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gdm.spec ++++++ --- /var/tmp/diff_new_pack.Pfnok1/_old 2026-08-19 17:56:29.398049779 +0200 +++ /var/tmp/diff_new_pack.Pfnok1/_new 2026-08-19 17:56:29.400049850 +0200 @@ -65,12 +65,12 @@ Patch2: gdm-initial-setup-hardening.patch # PATCH-FIX-OPENSUSE gdm-service-keytable.patch bsc#1248831 bsc#1250366 [email protected] -- set KEYMAP to XkbLayout for GNOME Patch3: gdm-service-keytable.patch +# PATCH-FIX-OPENSUSE gdm-fix-tty1-mode.patch bsc#1250688 [email protected] -- Fix invalid tty1 state +Patch4: gdm-fix-tty1-mode.patch ### NOTE: Keep please SLE-only patches at bottom (starting on 1000). # PATCH-FIX-SLE gdm-disable-gnome-initial-setup.patch bnc#1067976 [email protected] -- Disable gnome-initial-setup runs before gdm, g-i-s will only serve for CJK people to choose the input-method after login. Patch1000: gdm-disable-gnome-initial-setup.patch -# PATCH-FIX-SLE gdm-initial-vt-tty1.patch bsc#1252888 [email protected] -- Greeter session runs on tty1 -Patch1001: gdm-initial-vt-tty1.patch # dconf and gnome-session-core are needed for directory ownership BuildRequires: dconf ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.Pfnok1/_old 2026-08-19 17:56:29.462052053 +0200 +++ /var/tmp/diff_new_pack.Pfnok1/_new 2026-08-19 17:56:29.465052159 +0200 @@ -1,6 +1,6 @@ -mtime: 1786517503 -commit: e3c21bbd448713dbe66470493438e9200d4a2f61204f3abc5f9156fe4403f44e +mtime: 1786601608 +commit: 80992192253192e9a9f2cb9eeb9e35084e0e0dc8fee5b367eeda0a048843d06e url: https://src.opensuse.org/GNOME/gdm -revision: e3c21bbd448713dbe66470493438e9200d4a2f61204f3abc5f9156fe4403f44e +revision: 80992192253192e9a9f2cb9eeb9e35084e0e0dc8fee5b367eeda0a048843d06e projectscmsync: https://src.opensuse.org/GNOME/_ObsPrj ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-08-13 08:13:28.000000000 +0200 @@ -0,0 +1,5 @@ +*.obscpio +*.osc +_build.* +.pbuild +osc-collab.* ++++++ gdm-fix-tty1-mode.patch ++++++ diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c index ac6bf69..18c412f 100644 --- a/daemon/gdm-session-worker.c +++ b/daemon/gdm-session-worker.c @@ -1013,9 +1013,37 @@ fix_terminal_vt_mode (GdmSessionWorker *worker, int tty_fd) { struct vt_mode getmode_reply = { 0 }; + struct vt_mode setmode_request = { 0 }; + struct vt_stat vt_state = { 0 }; int kernel_display_mode = 0; gboolean mode_fixed = FALSE; gboolean succeeded = TRUE; + int active_vt = -1; + + if (ioctl (tty_fd, VT_GETSTATE, &vt_state) < 0) { + g_debug ("GdmSessionWorker: couldn't get current VT: %m"); + } else { + active_vt = vt_state.v_active; + } + + if (active_vt == 1) { + g_debug ("GdmSessionWorker: active VT is tty1, setting VT_AUTO + KD_TEXT"); + + setmode_request.mode = VT_AUTO; + + if (ioctl (tty_fd, VT_SETMODE, &setmode_request) < 0) { + g_debug ("GdmSessionWorker: couldn't set VT mode: %m"); + succeeded = FALSE; + } + + if (ioctl (tty_fd, KDSETMODE, KD_TEXT) < 0) { + g_debug ("GdmSessionWorker: couldn't set text mode: %m"); + succeeded = FALSE; + } + + mode_fixed = TRUE; + goto out; + } if (ioctl (tty_fd, VT_GETMODE, &getmode_reply) < 0) { g_debug ("GdmSessionWorker: couldn't query VT mode: %m");
