From nobody Fri Aug 22 13:08:47 2025 X-Original-To: freebsd-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 4c7gW24KMWz65p55 for ; Fri, 22 Aug 2025 13:09:02 +0000 (UTC) (envelope-from timothyk@beachpatt.com) Received: from serendipity35.net.net (serendipity35.net [167.71.244.20]) (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 (2048 bits) client-digest SHA256) (Client CN "serendipity35.net", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c7gW22Gfwz3mJG for ; Fri, 22 Aug 2025 13:09:02 +0000 (UTC) (envelope-from timothyk@beachpatt.com) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.254.154] (50-36-34-57.drr01.mybh.sc.frontiernet.net [50.36.34.57]) (authenticated bits=0) by serendipity35.net.net (8.18.1/8.18.1) with ESMTPSA id 57MD8m4D055546 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 22 Aug 2025 09:08:48 -0400 (EDT) (envelope-from timothyk@beachpatt.com) X-Authentication-Warning: serendipity35.net.net: Host 50-36-34-57.drr01.mybh.sc.frontiernet.net [50.36.34.57] claimed to be [192.168.254.154] Content-Type: multipart/alternative; boundary="------------gvHxAYNTkND0ee9gZO75jMM7" Message-ID: Date: Fri, 22 Aug 2025 09:08:47 -0400 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 User-Agent: Mozilla Thunderbird Subject: Re: Console keyboard disabled under Parallels To: Michael Grimm Cc: freebsd-current@freebsd.org References: Content-Language: en-US From: TIM Beach In-Reply-To: X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:14061, ipnet:167.71.240.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c7gW22Gfwz3mJG This is a multi-part message in MIME format. --------------gvHxAYNTkND0ee9gZO75jMM7 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/21/25 4:28 PM, Michael Grimm wrote: > TIM Beach wrote: > >> When using Current under Parallels Desktop Pro, recent kernels remove the keyboard function from the default console. > […] > >> Was there a change to usbhid or ugen when CURRENT went to PRERELEASE? > Please have a look at:https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288968 > > There's a patch that needs to be tested by someone running Parallels. > > Regards, > Michael > Thank you, I was going to post this as a Comment in the bug report, but my login isn't working and I'm pressed for time this morning. Reporting it here for historical purposes in case anyone else runs into it.  The code in Comment 6 in the bug report fixed the issue. Using this diff on current sources updated 12 pm UTC today and rebuilding/installing the kernel, fixed the problem: # diff -u /usr/src/sys/dev/hid/hkbd.c.orig /usr/src/sys/dev/hid/hkbd.c --- /usr/src/sys/dev/hid/hkbd.c.orig 2025-08-20 11:09:37.000000000 -0700 +++ /usr/src/sys/dev/hid/hkbd.c 2025-08-21 14:32:06.870020000 -0700 @@ -1596,8 +1596,9 @@ sc->sc_state &= ~LOCK_MASK; sc->sc_state |= *(int *)arg; - /* set LEDs and quit */ - return (hkbd_ioctl_locked(kbd, KDSETLED, arg)); + /* try to set LEDs and quit */ + (void)hkbd_ioctl_locked(kbd, KDSETLED, arg); + return (0); Thanks again, Tim --------------gvHxAYNTkND0ee9gZO75jMM7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 8/21/25 4:28 PM, Michael Grimm wrote:
TIM Beach <timothyk@beachpatt.com> wrote:

When using Current under Parallels Desktop Pro, recent kernels remove the keyboard function from the default console.
[…]

Was there a change to usbhid or ugen when CURRENT went to PRERELEASE?
Please have a look at: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288968

There's a patch that needs to be tested by someone running Parallels.

Regards,
Michael

Thank you, I was going to post this as a Comment in the bug report, but my login isn't working and I'm pressed for time this morning.

Reporting it here for historical purposes in case anyone else runs into it.  The code in Comment 6 in the bug report fixed the issue.


Using this diff on current sources updated 12 pm UTC today and rebuilding/installing the kernel, fixed the problem:

# diff -u /usr/src/sys/dev/hid/hkbd.c.orig /usr/src/sys/dev/hid/hkbd.c
--- /usr/src/sys/dev/hid/hkbd.c.orig	2025-08-20 11:09:37.000000000 -0700
+++ /usr/src/sys/dev/hid/hkbd.c	2025-08-21 14:32:06.870020000 -0700
@@ -1596,8 +1596,9 @@
 		sc->sc_state &= ~LOCK_MASK;
 		sc->sc_state |= *(int *)arg;
 
-		/* set LEDs and quit */
-		return (hkbd_ioctl_locked(kbd, KDSETLED, arg));
+		/* try to set LEDs and quit */
+		(void)hkbd_ioctl_locked(kbd, KDSETLED, arg);
+		return (0);
 

Thanks again,

Tim


--------------gvHxAYNTkND0ee9gZO75jMM7--