From nobody Wed Nov 12 19:38:08 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 4d6DGP3q14z6GVRR for ; Wed, 12 Nov 2025 19:38:21 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d6DGP1wH2z3vs9 for ; Wed, 12 Nov 2025 19:38:21 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-94863b3620cso5155139f.3 for ; Wed, 12 Nov 2025 11:38:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762976300; x=1763581100; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=e+JZctcSw68BBveDeO9Rk4nx839n5m5AqEuS8nKNgJQ=; b=nTneFDwve5NGaBomSmBq9tBz5pYEpFi+ge8S6Zs0dvh7TyoeYPL0vvIlKip2FWg1GK KvHGH1ljpFd0gPE/ATzriVjAdlqMy+uKLmhsl65Q8A5i731kOB/3N89upwB7HG+bHb8j Uc0dBS59Yyx90tZeyhUfJ69+8uLcXhbUf4gTBJ2GqRMAuVWwzQAI2Fu2aHs6ZgfMjdE9 6zt/kFNSTrAtmkPetF6+1t+zvq06ww6sfW2M+hx/+uSoRvjmGjBemLkrkIjlqW02+dib gWcn8hE5ODycIcxaEsvctgxHKEmUhksSEJ9J9MUa//i44k3gGcJexRJq/ARdj0JlI4xa cVbg== X-Gm-Message-State: AOJu0Yyrsf7CvftWyG/YaEqohye4zrdxZAgWFbeNegGVjwE1LcZGspne HdJ2A4UP8QaALhrYe2STdNBSJwDxhZViYWycGEPiA47N5lMjqVfqEDlipG68OnjOjXYskTonMxc 6BXN/WVonwesd0mSqUc/JmZ5L1QZG4x+3rQ== X-Gm-Gg: ASbGncu761dcdsqkwjI9O9FWM0MdRjQHZ768ZvgN9zR6gd9WDzTtL/S5ice8J6mXOZ8 UaykQ2my+ZfEw1J6exrzRgJgLeCrBc1HfvUBT9S6Fj2w2aiuF9qFtIXBUc0usi4RB+asX8fBDDv ra29OU9ralVXXO3IZn7udbYTN9n49I0T/bGPLRZc/4yId5gPSHjPjDQXd69LvzePRn20uGxNfoL OFu4u3LI212IT1UjX5gPVLa85u78qwSNO9239PcVew2uwWh1JaQptyGy5vbf3MZgdpOBqHxI4az rTSKvoSD/uvGHp92 X-Google-Smtp-Source: AGHT+IG9WDsZXgVWTdgNcEQol6r3ibgxTpB9f83vZO3TNJvWBGb/NlNqDEX5HTcv/NsCq40YpXq26G+urVGn3zHRf/I= X-Received: by 2002:a05:6602:1550:b0:941:3f8:5bbc with SMTP id ca18e2360f4ac-948c463c62bmr537790139f.11.1762976300139; Wed, 12 Nov 2025 11:38:20 -0800 (PST) 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 References: In-Reply-To: From: Ed Maste Date: Wed, 12 Nov 2025 14:38:08 -0500 X-Gm-Features: AWmQ_bnaXz5f53eXz2v1TMYp8cfbRJDvpeUZCHOo_rdnPB8VDJojzVjKFZzhm9A Message-ID: Subject: Re: keyboard in wrong mode after VT switch from X To: Andriy Gapon Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4d6DGP1wH2z3vs9 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.