USB HID Joystick not detected by Virtualbox

Discussions related to using VirtualBox on Linux hosts.
Post Reply
BitMac
Posts: 4
Joined: 4. Sep 2016, 22:05

USB HID Joystick not detected by Virtualbox

Post by BitMac »

I use a 64bit Linux Mint 17.1
Virtualbox is 5.1 with guest additions installed.
I have an USB HID Joystick connected and want to use it with a flightsimulator in a Virtualbox.
The Joystick is recognized by the Linux-host and the kernel driver is loaded.
Using jstest /dev/input/js0 works fine.

The relating part in dmesg shows:

Code: Select all

[  331.319841] usb 2-4.2: new low-speed USB device number 8 using xhci_hcd
[  331.342325] usb 2-4.2: New USB device found, idVendor=0000, idProduct=0003
[  331.342336] usb 2-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  331.342342] usb 2-4.2: Product: RC-Joystick
[  331.342347] usb 2-4.2: Manufacturer: MUltiplex
[  331.342643] usb 2-4.2: ep 0x81 - rounding interval to 256 microframes, ep desc says 296 microframes
[  331.348005] input: MUltiplex RC-Joystick as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/input/input10
[  331.348834] hid-generic 0003:0000:0003.0003: input,hidraw2: USB HID v1.00 Joystick [MUltiplex RC-Joystick] on usb-0000:00:14.0-4.2/input0
[  601.337385] warning: `VirtualBox' uses 32-bit capabilities (legacy support in use)


And lsusb shows (device 008 is the problem device):

Code: Select all

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 008: ID 0000:0003  
Bus 002 Device 007: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 002 Device 006: ID 13ba:0018 PCPlay Barcode PCP-BCG4209
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
But when I execute
VBoxManage list usbhost
only one USB-Device is listed, but not my Joystick.

Code: Select all

Host USB Devices:

UUID:               b37c0caa-5d05-4c06-917a-5dc149668dbe
VendorId:           0x13ba (13BA)
ProductId:          0x0018 (0018)
Revision:           0.1 (0001)
Port:               2
USB version/speed:  1/Low
Product:            Barcode Reader 
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3//device:/dev/vboxusb/002/006
Current State:      Busy
How can be achieved that the joystick is recognized by Virtualbox ?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: USB HID Joystick not detected by Virtualbox

Post by Perryg »

Post the guests log file ( as an attachment ). Right click on the guest in the Main Manager then click show log. Save and post as an attachment. Compress if it is too large to post.
BitMac
Posts: 4
Joined: 4. Sep 2016, 22:05

Re: USB HID Joystick not detected by Virtualbox

Post by BitMac »

Attached you find the guest-logfile:
Hope it helps.
Attachments
logfile.zip
(15.04 KiB) Downloaded 185 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: USB HID Joystick not detected by Virtualbox

Post by Perryg »

Code: Select all

00:00:01.463316 HM: HMR3Init: Falling back to raw-mode: VT-x is disabled in the BIOS for all CPU modes
I would take care of the above.

Then make sure you have your user ID in the hosts vboxusers group and reboot.
BitMac
Posts: 4
Joined: 4. Sep 2016, 22:05

Re: USB HID Joystick not detected by Virtualbox

Post by BitMac »

Ok, I don't know the background of this warning, but I altered the bios settings so that this warning disappear in the log-file.
See attachment.
But this had no effect on my problem.
I'm already member of vboxusers and all other usb-devices work fine.
Attachments
logfile.tar.gz
(17.19 KiB) Downloaded 56 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: USB HID Joystick not detected by Virtualbox

Post by Perryg »

I'm already member of vboxusers and all other usb-devices work fine.
It would have been nice to know this in the beginning, but if other devices work then it must be the joystick that is to fault. It may just be the timing.
BitMac
Posts: 4
Joined: 4. Sep 2016, 22:05

Re: USB HID Joystick not detected by Virtualbox

Post by BitMac »

Sorry , I just forgot to mention it at the beginning.
In the meantime I installed Flightgear within my linux hostsystem only for testing.
There the joystick works.
Only virtualbox refused to deal with the jostick.
Post Reply