From nobody Thu Nov 13 23:32:14 2025 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4d6xPt2KxHz6GRTm for ; Thu, 13 Nov 2025 23:32:18 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d6xPt0KNXz3R6r; Thu, 13 Nov 2025 23:32:18 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763076738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7CjuovYoPidOf4IW8eLT8sNHfNYItLqFrkX/IYkKYpA=; b=qZc7wDBrqY5jZtn+QDQAftnNBp56KSnEf4NyWOtYDlhQxuce4/mcKBIqv4tZqlX9x70Y7X dW+Ix0LNjC9DVDyxs+d9OlXr7furr85t+ijlMQz9ddDv/vzsDBlBFDvxujx/FDicg8ZlUr dqyHZ7QN93xuCwpO+xSdAaKHoyaBoIANRSiJCMDTh6StUYAIc+EU8EyCFtNrqdujxjBS8e vJz+nerI6Aj0UHJhVpjp/Ag28VpFenT0OYYP2G6e1/LAlgKEmgVqGUXU1izaAGolAoAXJw UWEqYkxnsIUU8VlofOLhS1kSTiPlCyEdexegtWuMb/50i+y8jnH9x8pkxVyQHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763076738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7CjuovYoPidOf4IW8eLT8sNHfNYItLqFrkX/IYkKYpA=; b=PSTrBZ+8meC/ynDt44Lhw8snQG+1X1Z+4YJuUDlEK2LVyXzsz0iv8PgU2Qga6NK+nTBx32 Qbl/Xgz2o9aqaU7EmVVQ8DK1bsVz0+MpkHU1EjFo9GR9/CxfLcFCHFG0VLgOWoBeAFlXqV ODEnvFm2uGtHEq+j24y9Qz0bWYdmZiktw/Oegu+5VvQTL3/CkVLsmXt/uVD5H/YPURT+9t eN5dh3XkjgLdq7Dw3ei4IJde478K9utXXa9+WIvzVTi3jCk6buhNqBmAidah4rEoWkhNMi pJn88DjqtX3hSRkOJS7zJJ67AADFjh0LZm6GOw6q3jNpLeTLJ7r62jfVVpMC4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763076738; a=rsa-sha256; cv=none; b=DBC6bSVV2YoqFgcYd1cKaNyPOArkoB1VOro8Pnfh6/4q92eKXh6zdsxi0d8uYq7tFIb30b WWalIq4PGRfP/mT68OWDt9pWNexcFt0RNMVbioL+MYY0J1ssTG0cZrmfuFgIeHIr90JalV G1VLBgaA/CUCewV+S07nYoga+0ASHyBNWwQ0zrQRXncyQRJBB518sCBWnSxf5e34obRoDg AlqPqnwZZE3i26dbOBq+x4EuX4iaXw1j9fthSV8rKnfNHEp7j261D68kG6xX0xJHk/vjap 0+uHWOwBUVpeXnVFDKhDQVHNkkRTzowSfdpt04UScZdTR8g+VpxVLJB0HB+Xfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E8" (verified OK)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4d6xPs6BrYzBw3; Thu, 13 Nov 2025 23:32:17 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id D0E23A64805; Thu, 13 Nov 2025 23:32:03 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 109D72D029E6; Thu, 13 Nov 2025 23:32:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id uaKkFFrNrOyj; Thu, 13 Nov 2025 23:32:15 +0000 (UTC) Received: from nv.t4-02.sbone.de (nv.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 262002D029D8; Thu, 13 Nov 2025 23:32:14 +0000 (UTC) Date: Thu, 13 Nov 2025 23:32:14 +0000 (UTC) From: "Bjoern A. Zeeb" To: Andriy Gapon cc: Ed Maste , FreeBSD Current Subject: Re: keyboard in wrong mode after VT switch from X In-Reply-To: Message-ID: <95rrq49q-911r-q1r1-n151-1r276n0rq69@mnoonqbm.arg> References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Wed, 12 Nov 2025, Andriy Gapon wrote: > On 12/11/2025 21:38, Ed Maste wrote: >> On Wed, 12 Nov 2025 at 11:15, Andriy Gapon wrote: >>> >>> I usually work in desktop (X11) environment all the time, but recently I >>> had to >>> troubleshoot a problem with Xorg configuration and had to switch between X >>> and a >>> text console quite a bit. And quite frequently (but not always) the >>> keyboard >>> seemed to be in wrong mode after a switch. At least, that's how it >>> appeared: >>> most key presses wouldn't get through, but some (I think Enter) would have >>> an >>> effect. Switching to another text console and back always fixed the >>> input. >> >> I think I've seen this sort of thing being caused by incorrect >> modifier key state - that is, it's acting as if ctrl and/or alt are >> being pressed. If you get in this state again try pressing and >> releasing modifier keys to see if that clears it up. If so, it's a bit >> of an unfortunate workaround but at least will provide a hint for next >> debugging steps. > > Yes, that was it. > I've just repro-ed the issue and pressing Alt helped to restore the input. That's really good to know; I've seen this for years when I end a startx session and get back to VT2 I always had to switch to VT1 and back before Ctrl+d would work (or others) as I usually want to logout. I'll give it a try in a few days (unless a panic happens sooner). It never bothered me enough as it usually only get into this when I shutdown my system for updates. /bz -- Bjoern A. Zeeb r15:7