Bug 244999 - emulators/virtualbox-ose-additions: Mouse clicks not registering on Xorg on CURRENT
Summary: emulators/virtualbox-ose-additions: Mouse clicks not registering on Xorg on C...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-23 03:53 UTC by Neel Chauhan
Modified: 2021-03-15 23:22 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neel Chauhan freebsd_committer freebsd_triage 2020-03-23 03:53:23 UTC
I recently downgraded my FreeBSD host from 13-CURRENT to 12.x in order to be able to use the VirtualBox bridge mode. I plan to run CURRENT in VirtualBox.

If I install CURRENT r359106 in VirtualBox, and then install emulators/virtualbox-ose-additions and Xorg, I am able to move the mouse but not click it in the guest.

Anyone else having this issue?
Comment 1 Jason W. Bacon freebsd_committer freebsd_triage 2020-04-14 22:02:39 UTC
I'm seeing the same with FreeBSD 12.1 guest on both FreeBSD and OS X hosts.
Comment 2 Jason W. Bacon freebsd_committer freebsd_triage 2020-04-15 12:04:37 UTC
FYI, enabling moused in the guest is a simple workaround in my case.

In /etc/rc.conf:

moused_enable="YES"
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2020-08-15 12:28:15 UTC
I have the same issue with a FreeBSD 12.1-p8 guest running virtualbox-ose-additions 5.2.44 and xorg-server 1.20.8 in VirtualBox 6.1.12 on a Windows 10 Pro 1909 host.  Can confirm that enabling moused helps.
Comment 4 Niclas Zeising freebsd_committer freebsd_triage 2020-08-15 16:18:08 UTC
To fix this, set the sysctl kern.evdev.rcpt_mask to 12.

This is not related to virtualbox.  When xserver was updated 1.20, we changed how input devices were handled on FreeBSD 12 and later.  Unfortunately, 12.1 was already released, so it was not possible to update the default value for the sysctl above.  For 12.2, the sysctl above will have the value 12 by default.
Comment 5 Nick 2021-01-21 11:59:44 UTC
I have this issue with FreeBSD 12.2 and virtualbox-ose-additions 5.2.44_2 running under Windows 10 Virtualbox 6.1.16 r140961

Under X the mouse works, focus on mouseover works, but no mouse clicks are ever registered.

Starting moused doesn't help, the console mouse works fine BTW.

kern.evdev.rcpt_mask is set to 12, still doesn't work.

If I deselect pointer integration in Virtualbox then the mouse doesn't work at all, no pointer ever moves.

This hald hack doesn't work either
https://forums.FreeBSD.org/threads/virtualbox-ose-additions-doesnt-register-mouse-clicks.40070/post-222453
Comment 6 Helge Oldach 2021-01-27 10:33:48 UTC
(In reply to Nick from comment #5)
I had the same issue but it disappeared after updating to the latest stable/12 and ports. Maybe you need to remove leftover config in /usr/local/etc/X11 and/or /usr/local/etc/X11/xorg.conf.d. It should work ok without *any* tweaking of devices (i.e. these directories completely empty). Otherwise please check Xorg.log, it should see an input device System mouse on /dev/input/eventX through udev.
Comment 7 Neel Chauhan freebsd_committer freebsd_triage 2021-03-15 23:22:30 UTC
Closing. Using kern.evdev.rcpt_mask should work.