On 8/21/25 4:28 PM, Michael Grimm wrote:
TIM Beach<timot...@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