#1092167 kmscon: <Ctrl> stucks after switching to another vt by Ctrl+Alt+Fn

Package:
kmscon
Source:
kmscon
Description:
Simple terminal emulator based on Kernel Mode Setting
Submitter:
Alex Volkov
Date:
2026-10-23 00:13:01 UTC
Severity:
normal
#1092167#5
Date:
2025-01-05 14:53:27 UTC
From:
To:
Dear Maintainer,

when launching kmscon at any vtN and switching on another vtN by Ctrl+Alt+Fn,
after switching back to the kmscon the keyboard is rendered unusable,
as any keypress is regarded as if Ctrl was pressed (e.g. C brings ^C, L clears
the screen like Ctrl+L etc). Strangely, D doesn't end the session like Ctrl+D
would do.

#1092167#12
Date:
2026-10-23 00:10:52 UTC
From:
To:
On Sun, 05 Jan 2025 19:53:27 +0500 Alex Volkov <alex@bootes.sytes.net> wrote:
 > Package: kmscon
 > Version: 9.0.0-4
 > Severity: normal
 >
 > Dear Maintainer,
 >
 > when launching kmscon at any vtN and switching on another vtN by Ctrl+Alt+Fn,
 > after switching back to the kmscon the keyboard is rendered unusable,
 > as any keypress is regarded as if Ctrl was pressed (e.g. C brings ^C, L clears
 > the screen like Ctrl+L etc). Strangely, D doesn't end the session like Ctrl+D
 > would do.
 >
 >
 > -- System Information:
 > Debian Release: 12.8
 > APT prefers stable-updates
 > APT policy: (991, 'stable-updates'), (991, 'stable-security'), (991, 'stable'), (99, 'testing'), (90, 'unstable')
 > Architecture: amd64 (x86_64)
 > Foreign Architectures: i386
 >
 > Kernel: Linux 6.11.10-bootes2-p-1000 (SMP w/16 CPU threads; PREEMPT)
 > Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
 > Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en_US
 > Shell: /bin/sh linked to /usr/bin/dash
 > Init: sysvinit (via /sbin/init)
 > LSM: AppArmor: enabled
 >
 > Versions of packages kmscon depends on:
 > ii init-system-helpers 1.65.2
 > ii libc6 2.36-9+deb12u9
 > ii libdrm2 2.4.114-1+b1
 > ii libegl1 1.6.0-1
 > ii libelogind0 [libsystemd0] 246.10-1debian1
 > ii libgbm1 22.3.6-1+deb12u1
 > ii libgles2 1.6.0-1
 > ii libglib2.0-0 2.74.6-2+deb12u4
 > ii libpango-1.0-0 1.50.12+ds-1
 > ii libpangoft2-1.0-0 1.50.12+ds-1
 > ii libpixman-1-0 0.42.2-1
 > ii libtsm4 4.0.2-0.4
 > ii libudev1 254.22-1~bpo12+1
 > ii libxkbcommon0 1.5.0-1
 >
 > kmscon recommends no packages.
 >
 > kmscon suggests no packages.
 >
 > -- debconf-show failed

This modifier-state race was fixed upstream by e083e3c (#315), first included in Debian 9.3.3-1.

I reproduced stuck Ctrl in 9.0.0-4 using a controlled VT-switch test. Debian 10.0.4-3 and current upstream main
correctly clear the modifier state under the same conditions.

Marking as fixed. Please let us know if this still occurs with a current version.

Regards,
Boyuan Yang