Created attachment 187303 [details]
Replacement patch-config_devd.c with automatic vmmouse detection
Vmmouse detection has never worked with devd and hence, vmmouse has been more or less useless since at least FreeBSD 10.3.
I've implemented a fix in the devd config backend. It's not super clean, but given the version of the devd config backend that's upstream, I guess this will do for now.
Please review for security since we're calling an external application (vmmouse_detect) as root. The utility vmmouse_detect is part of the xf86-input-vmmouse package / port.
Also if possible, please include in all maintained freebsd versions.