[Bug 270883] Enable mouse on Hyper-V 2022 Gen2 VM

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 06 May 2023 10:41:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270883

--- Comment #5 from fgorter <fgorter@gmail.com> ---
(In reply to ovidiup@microsoft.com from comment #4)

I came across something (by chance) while looking for some more information
about the sysctl switches to kern.evdev.rcpt_mask modes...

Have a look at https://reviews.freebsd.org/D24370

"EVDEV_RCPT_KBDMUX bit in evdev_rcpt_mask will make it silent.
It also applicable to Hyper-V Gen 2 keyboards enabled by default in
i386|amd64/conf/GENERIC kernel configs."

Now, this is obviously for the keyboard, rather than the mouse & for powerpc32
hardware, rather than x86/amd64 -- but it may offer a hint why you might be
having trouble with your mouse. Perhaps there is something peculiar about HP
Proliant hardware interfacing with certain VMs.

In any case, you may want to try doing some sysctl switches to
kern.evdev.rcpt_mask yourself. Old default was kern.evdev.rcpt_mask=3 if I am
not mistaken & kern.evdev.rcpt_mask=6 or kern.evdev.rcpt_mask=12 are more
modern standards.

The pkg info to xorg-server offers some clues that may give a hint -- it is in
regards to more advanced features of mice, but perhaps helpful; particularly
when moused & sysmouse are present / not present.
Double check if libinput & evdev related packages are installed as well.
Check to see what "sysctl -a | grep -i evdev" output says.

Example: On one of my laptops (with custom kernel), if I do not have libinput
installed, the mouse/touchpad will not work (pointer does not even show up) & I
need kern.evdev.rcpt_mask=6 to gain full functionality.

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