Android guest - Pointing Device possible bug (#17446)

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.

Android guest - Pointing Device possible bug (#17446)

Postby Cyrrus30 » 4. Jan 2018, 15:54

[ModEdit; related ticket: #17446: Multiple pointing device reported when choosing USB Multi-Touch Tablet]


I'm running Android x86 in VirtualBox (I know, it is not a supported guest), on a Windows host, running on a machine with a touch screen. I'm trying to have a proper touch behavior in the virtual machine, ideally without having to forward the USB device of the touch screen to the VM (this is causing issues where the USB driver would eventually detach itself and stop responding. But this is not the point of my post).

I've tried the differents "Pointing device" of the "System/Motherboard" settings tab. At first none of them seemed to give me the expected behavior in my host, but then I realized something:

If I enable USB Tablet, I can check from the Android command line (running the "dumpsys input" command) that this particular input device is present:

7: VirtualBox USB Tablet
Classes: 0x800000004
Path /dev/input/event3

However, it doest not behave like a proper touch screen.

If I enable USB Multi-Touch Tablet, the touch seems broken too. But if I inspect the available input devices in Android, I can see that both devices are present:

7. VirtualBox USB Multi-Touch
Classes: 0x80000014
Path: /dev/input/event4

8. VirtualBox USB Tablet
Classes: 0x800000004
Path /dev/input/event3

After inspecting the touch events in the Android guest, I realized that the presence of both devices is the cause of my incorrect touch behavior. When I touch the screen, the Virtual Box Multi-Touch device reports the event, but as soon as I move my finger around, the touch is "intercepted" by the VirtualBox USB Tablet device.

To confirm that, I deleted the /dev/input/event3 file (the one mapped to the VirtualBox USB Tablet device). After that everything was correct. The touch screen was working properly and only the proper device was handling the touch.

So my question here is: is it an expected behavior that, when selecting VirtualBox USB Multi-Touch as the input device, my guest OS reports VirtualBox USB Multi-Touch AND VirtualBox USB Tablet as input devices? Or is it an issue in VirtualBox?

Last edited by socratis on 10. Jan 2018, 23:15, edited 1 time in total.
Reason: Added ticket related information.
Posts: 1
Joined: 4. Jan 2018, 15:46

Re: Android guest - Pointing Device possible bug (#17446)

Postby socratis » 10. Jan 2018, 23:16

Added ticket related information.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Site Moderator
Posts: 27690
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Return to Other Guests

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests