[Solved] USB Gamepad detected but not working
Posted: 24. Jan 2018, 16:57
Hello,
I'm trying to use an old Logitech gamepad on a virtual machine. When plugged, the joystick is captured and correctly appears as /dev/input/js2. Also, jstest-gtk reconises it as a 4 axis, 12 button controller. However, no button press or axis movement is detected, nor anything is showed if I cat /dev/input/js2.
Dmesg on guest system reports an error when plugging the gamepad:
The gamepad works perfectly in the host system. Any help with be greatly appreciated...
Thank you.
Complementary information:
- Host: Ubuntu 14.04, 4.4.0-109-generic #132~14.04.1-Ubuntu SMP
- Guest: Ubuntu 12.04, 3.13.0-117-generic #164~precise1-Ubuntu SMP
(Pretty old systems due legacy projects)
I'm trying to use an old Logitech gamepad on a virtual machine. When plugged, the joystick is captured and correctly appears as /dev/input/js2. Also, jstest-gtk reconises it as a 4 axis, 12 button controller. However, no button press or axis movement is detected, nor anything is showed if I cat /dev/input/js2.
Dmesg on guest system reports an error when plugging the gamepad:
Code: Select all
[ 1520.599847] usb 2-2: USB disconnect, device number 4
[ 1526.716154] usb 2-2: new full-speed USB device number 5 using ohci-pci
[ 1526.978564] usb 2-2: New USB device found, idVendor=046d, idProduct=c216
[ 1526.978574] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1526.978580] usb 2-2: Product: Logitech Dual Action
[ 1526.978585] usb 2-2: Manufacturer: Logitech
[ 1537.011586] hid-generic 0003:046D:C216.0004: usb_submit_urb(ctrl) failed: -1
[ 1537.011995] hid-generic 0003:046D:C216.0004: timeout initializing reports
[ 1537.012189] input: Logitech Logitech Dual Action as /devices/pci0000:00/0000:00:06.0/usb2/2-2/2-2:1.0/input/input10
[ 1537.033303] hid-generic 0003:046D:C216.0004: input,hidraw1: USB HID v1.10 Joystick [Logitech Logitech Dual Action] on usb-0000:00:06.0-2/input0
Thank you.
Complementary information:
- Host: Ubuntu 14.04, 4.4.0-109-generic #132~14.04.1-Ubuntu SMP
- Guest: Ubuntu 12.04, 3.13.0-117-generic #164~precise1-Ubuntu SMP
(Pretty old systems due legacy projects)
Code: Select all
id
uid=1000(ivan) gid=1000(ivan) groups=1000(ivan),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare),127(vboxusers)
Code: Select all
VBoxManage -version
4.3.36_Ubuntur105129
Code: Select all
VBoxManage list extpacks
Extension Packs: 2
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 4.3.36
Revision: 105129
Edition:
Description: USB 2.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
Pack no. 1: VNC
Version: 4.3.36
Revision: 105129
Edition:
Description: VNC plugin module
VRDE Module: VBoxVNC
Usable: true
Why unusable:
Code: Select all
VBoxManage list usbhost
Host USB Devices:
UUID: 0862cb4b-ea73-4d53-b727-f8f8e3b9ea5e
VendorId: 0x046d (046D)
ProductId: 0xc216 (C216)
Revision: 2.0 (0200)
Port: 0
USB version/speed: 1/1
Manufacturer: Logitech
Product: Logitech Dual Action
Address: sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1//device:/dev/vboxusb/001/027
Current State: Busy
UUID: 3a83f281-4734-47fa-963a-e52cec4599b7
VendorId: 0x0a5c (0A5C)
ProductId: 0x5832 (5832)
Revision: 1.1 (0101)
Port: 9
USB version/speed: 1/1
Manufacturer: Broadcom Corp
Product: 5880
SerialNumber: 0123456789ABCD
Address: sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10//device:/dev/vboxusb/001/008
Current State: Available
UUID: 1c9c65eb-a1a5-4bbb-aaca-83b6275a6aab
VendorId: 0x1bcf (1BCF)
ProductId: 0x2b96 (2B96)
Revision: 104.37 (10437)
Port: 4
USB version/speed: 2/2
Manufacturer: CNFGH19N2431010025E2
Product: Integrated_Webcam_HD
Address: sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5//device:/dev/vboxusb/001/004
Current State: Busy
UUID: 0d03d076-662a-4071-8f1f-e13816f6a99e
VendorId: 0x1fd2 (1FD2)
ProductId: 0x6003 (6003)
Revision: 1.0 (0100)
Port: 7
USB version/speed: 2/1
Manufacturer: Melfas
Product: LGDisplay Incell Touch
Address: sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8//device:/dev/vboxusb/001/006
Current State: Busy
UUID: 065679cc-2b7c-4a2f-8ecf-a85d9f8d32dc
VendorId: 0x8087 (8087)
ProductId: 0x0a2b (0A2B)
Revision: 0.16 (0016)
Port: 6
USB version/speed: 2/1
Address: sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-7//device:/dev/vboxusb/001/005
Current State: Busy
Code: Select all
VBoxManage list usbfilters
Global USB Device Filters:
<none>
Code: Select all
VBoxManage showvminfo ROS_Hydro
Name: ROS_Hydro
Groups: /
Guest OS: Ubuntu (64-bit)
UUID: 79006a68-ccfd-487e-9828-55c7c6a1a95b
Config file: /home/ivan/Tools/VBox_Images/ROS_Hydro/ROS_Hydro.vbox
Snapshot folder: /home/ivan/Tools/VBox_Images/ROS_Hydro/Snapshots
Log folder: /home/ivan/Tools/VBox_Images/ROS_Hydro/Logs
Hardware UUID: 79006a68-ccfd-487e-9828-55c7c6a1a95b
Memory size: 4096MB
Page Fusion: off
VRAM size: 12MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: off
Long Mode: on
Synthetic CPU: off
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
Time offset: 0ms
RTC: UTC
Hardw. virt.ext: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
VT-x unr. exec.: on
State: powered off (since 2018-01-24T14:15:54.000000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0): IDE
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
Storage Controller Name (1): SATA
Storage Controller Type (1): IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 30
Storage Controller Port Count (1): 1
Storage Controller Bootable (1): on
IDE (1, 0): /home/ivan/.config/VirtualBox/VBoxGuestAdditions_4.3.36.iso (UUID: bd55eff5-b532-4c58-8d5c-63cdf580a10e)
SATA (0, 0): /home/ivan/Tools/VBox_Images/ROS_Hydro/ROS_Hydro.vdi (UUID: c6025769-bb19-45cf-8384-8f03f4643bb1)
NIC 1: MAC: 080027572B18, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: PulseAudio, Controller: AC97)
Clipboard Mode: Bidirectional
Drag'n'drop Mode: disabled
VRDE: disabled
USB: enabled
EHCI: enabled
USB Device Filters:
Index: 0
Active: yes
Name: Logitech Dual Action [0200]
VendorId: 046d
ProductId: c216
Revision: 0200
Manufacturer: Logitech
Product: Logitech Dual Action
Remote: 0
Serial Number:
Available remote USB devices:
<none>
Currently Attached USB Devices:
<none>
Bandwidth groups: <none>
Shared folders: <none>
VRDE Connection: not active
Clients so far: 0
Video capturing: not active
Capture screens: 0
Capture file: /home/ivan/Tools/VBox_Images/ROS_Hydro/ROS_Hydro.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Guest:
Configured memory balloon size: 0 MB