Re: keyboard in wrong mode after VT switch from X

From: Andriy Gapon <avg_at_freebsd.org>
Date: Wed, 12 Nov 2025 21:20:40 UTC
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.
Thanks!

-- 
Andriy Gapon