Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2025 23:32:14 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        Ed Maste <emaste@freebsd.org>, FreeBSD Current <current@freebsd.org>
Subject:   Re: keyboard in wrong mode after VT switch from X
Message-ID:  <95rrq49q-911r-q1r1-n151-1r276n0rq69@mnoonqbm.arg>
In-Reply-To: <dda2b0c2-6f63-4131-bfbd-03f7d8bf049b@freebsd.org>
References:  <eaa55e8d-3dc0-4b27-ace8-7be43d8b93f6@FreeBSD.org> <CAPyFy2DbQA0uZ1yQTC_E_6NsgGDOj_57wpe%2BTRJ0B7Vwb3%2B_vg@mail.gmail.com> <dda2b0c2-6f63-4131-bfbd-03f7d8bf049b@freebsd.org>

index | next in thread | previous in thread | raw e-mail

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 <avg@freebsd.org> 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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95rrq49q-911r-q1r1-n151-1r276n0rq69>