From owner-freebsd-stable@freebsd.org Sat May 8 14:20:09 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CABC6636759 for ; Sat, 8 May 2021 14:20:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FcqGK5LZcz4vXQ; Sat, 8 May 2021 14:20:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 9055E214EA; Sat, 8 May 2021 14:20:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2001:470:7a58:0:1dca:bba0:f51c:b110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E90F133B9B; Sat, 8 May 2021 16:20:06 +0200 (CEST) From: Dimitry Andric Message-Id: <0F510E0A-32F9-464E-AAF4-E9F056F17E05@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_41940078-6B8A-4C03-8EDF-3B4F0B41875D"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: FreeBSD 13 console stops working under VMware Date: Sat, 8 May 2021 16:20:02 +0200 In-Reply-To: <89FD974C-F8A0-489B-B325-C8AABF919C02@codelibre.net> Cc: FreeBSD-STABLE Mailing List To: Roger Leigh References: <89FD974C-F8A0-489B-B325-C8AABF919C02@codelibre.net> X-Mailer: Apple Mail (2.3654.80.0.2.43) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 May 2021 14:20:09 -0000 --Apple-Mail=_41940078-6B8A-4C03-8EDF-3B4F0B41875D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 8 May 2021, at 16:02, Roger Leigh wrote: >=20 > This might sound like a bit of an odd one, but I=E2=80=99ll try to = describe it. When I run a FreeBSD 13-RELEASE virtual machine under = VMware, it appears to work correctly, but randomly stops working. >=20 > If I focus the VMware window, and press Ctrl-G to grab input focus (or = click in the window), I can log into the system using the console. = However, if I press Ctrl-Alt to ungrab the input focus, or click outside = the window, the block cursor on the console vanishes, and it=E2=80=99s = no longer possible to type any input. >=20 > However=E2=80=A6 if I grab focus again, I can use Alt-Fn to switch to = a different virtual console, log in again and everything is fine=E2=80=A6 = up until I switch focus to something else and the block cursor vanishes = in that virtual console. Repeat until you run out of virtual consoles! >=20 > I can=E2=80=99t reproduce this with FreeBSD 12. It seems to only = happen with FreeBSD 13. I=E2=80=99ve had it happen reproducibly when = losing focus, but then again sometimes I=E2=80=99ve had a few minutes = where it doesn=E2=80=99t happen, until it starts occurring again. While = it seems that losing focus is the trigger, there might be something else = going on. >=20 > Has anyone else noticed this or have any suggested workarounds? Press the Scroll Lock key to 'fix' it, if that is possible for you. This = is some weird interaction between VMware's input focus grabbing method = and our console, which sometimes turns on Scroll Lock accidentally. I = have not been able to put my finger on when it happens exactly, but it = does happen often. For me, it usually occurs when I use Microsoft Remote Desktop to access = a Windows machine running VMware, and switch back and forth between = Remote desktop and another application. Something about losing the focus = is making the VMware GUI inject a Scroll Lock event. It's pretty tricky = to generate Scroll Lock via Remote Desktop though, especially from a = Mac, which doesn't have that key at all. :) -Dimitry PS: Note that Scroll Lock is normally used in FreeBSD's console to = scroll back in the virtual consoles, as opposed to Linux's shift-PageUp = and shift-PageDown. But it is a toggle, not a one-off key. --Apple-Mail=_41940078-6B8A-4C03-8EDF-3B4F0B41875D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYJaeEgAKCRCwXqMKLiCW o17tAJsHwFMJcVAkelm7KAwHKGAoS/n/wwCfbqvjcedDCIwGhi91/xh/4o+6Oyk= =EtOM -----END PGP SIGNATURE----- --Apple-Mail=_41940078-6B8A-4C03-8EDF-3B4F0B41875D--