[Bug 274620] USB HID mouse not working

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 19 Jan 2024 05:15:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274620

gdinolt@pacbell.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdinolt@pacbell.net

--- Comment #1 from gdinolt@pacbell.net ---
I have had similar problems with recent Linux (Ubuntu and Rocky) VM's.  I saw
but cannot remember where I saw that that the mouse buffer must be larger for
these systems.I also saw that one could adjust this in bhyve.

 It turns out that if you change 

line 157 of /usr/src/usr.sbin/bhyve/mouse_usb.c from (Freebsd 14-STABLE) 

        .bMaxPacketSize = 8,

to 

        .bMaxPacketSize = 9,

this changes the size of the packet size used for the mouse buffer.  The buffer
becomes 2**9 bytes I think.

With this change, every thing works at least for the Linux VMs that I tried
(various Ubuntu's and Rocky)

It might be that there is another approach, but I don't know what it is.

-- 
You are receiving this mail because:
You are the assignee for the bug.