Yvan Posted November 26, 2023 Share Posted November 26, 2023 (edited) I have a Windows 10 virtual machine currently connected with a keyboard, a mouse, and two gamepads. The two gamepads are of the same model, with identical product IDs. When booting up, I encountered an error message: 'operation failed: Multiple USB devices for 20bc:504d, use to specify one.' The default USB configuration in the Windows XML is as follows: <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x05ac'/> <product id='0x024f'/> </source> <address type='usb' bus='0' port='2'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x20bc'/> <product id='0x504d'/> </source> <address type='usb' bus='0' port='3'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x25a7'/> <product id='0xfa61'/> </source> <address type='usb' bus='0' port='4'/> </hostdev> <memballoon model='none'/> The USB devices information is as follows: Bus 001 Device 001 Port 1-0 ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 007 Port 1-10 ID 0951:1665 Kingston Technology Digital DataTraveler SE9 Bus 001 Device 008 Port 1-11 ID 05e3:0610 Genesys Logic, Inc. Hub Bus 001 Device 009 Port 1-12 ID 8087:0029 Intel Corp. AX200 Bluetooth Bus 001 Device 012 Port 1-11.3 ID 0b05:1939 ASUSTek Computer, Inc. AURA LED Controller Bus 001 Device 056 Port 1-3 ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE Bus 001 Device 059 Port 1-1 ID 05ac:024f Apple, Inc. Aluminium Keyboard (ANSI) Bus 001 Device 060 Port 1-2 ID 25a7:fa61 Areson Technology Corp Elecom Co., Ltd MR-K013 Multicard Reader Bus 001 Device 064 Port 1-4 ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE Bus 002 Device 001 Port 2-0 ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001 Port 3-0 ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001 Port 4-0 ID 1d6b:0003 Linux Foundation 3.0 root hub port 1-1 is keyboard port 1-2 is mouse port 1-3 and port 1-4 is Gamepads update: Yesterday, I only connected one USB controller, selected it in the Windows virtual machine, and then started it up. Today, when I returned home, I found that this game controller had been recognized as an Xbox controller and was working fine. At this point, I connected another controller to Unraid, selected it in Windows, and started it up, but the other controller still showed as ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE, and couldn't function properly. After disconnecting and reconnecting both controllers, they reverted to their original state, both displaying as ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE. Just now, I connected one game controller first, then selected it in Windows and started it up, and then connected the second controller. That's the complete situation. It seems that if the game controller is recognized as an Xbox controller, it works properly. But how can I make both game controllers recognized as Xbox controllers? Is it possible that after connecting the game controller to Unraid, it needs some time to automatically identify as an Xbox controller before it can work properly? Edited November 28, 2023 by Yvan Quote Link to comment
Solution SimonF Posted November 29, 2023 Solution Share Posted November 29, 2023 On 11/26/2023 at 1:09 PM, Yvan said: I have a Windows 10 virtual machine currently connected with a keyboard, a mouse, and two gamepads. The two gamepads are of the same model, with identical product IDs. When booting up, I encountered an error message: 'operation failed: Multiple USB devices for 20bc:504d, use to specify one.' The default USB configuration in the Windows XML is as follows: <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x05ac'/> <product id='0x024f'/> </source> <address type='usb' bus='0' port='2'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x20bc'/> <product id='0x504d'/> </source> <address type='usb' bus='0' port='3'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x25a7'/> <product id='0xfa61'/> </source> <address type='usb' bus='0' port='4'/> </hostdev> <memballoon model='none'/> The USB devices information is as follows: Bus 001 Device 001 Port 1-0 ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 007 Port 1-10 ID 0951:1665 Kingston Technology Digital DataTraveler SE9 Bus 001 Device 008 Port 1-11 ID 05e3:0610 Genesys Logic, Inc. Hub Bus 001 Device 009 Port 1-12 ID 8087:0029 Intel Corp. AX200 Bluetooth Bus 001 Device 012 Port 1-11.3 ID 0b05:1939 ASUSTek Computer, Inc. AURA LED Controller Bus 001 Device 056 Port 1-3 ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE Bus 001 Device 059 Port 1-1 ID 05ac:024f Apple, Inc. Aluminium Keyboard (ANSI) Bus 001 Device 060 Port 1-2 ID 25a7:fa61 Areson Technology Corp Elecom Co., Ltd MR-K013 Multicard Reader Bus 001 Device 064 Port 1-4 ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE Bus 002 Device 001 Port 2-0 ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001 Port 3-0 ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001 Port 4-0 ID 1d6b:0003 Linux Foundation 3.0 root hub port 1-1 is keyboard port 1-2 is mouse port 1-3 and port 1-4 is Gamepads update: Yesterday, I only connected one USB controller, selected it in the Windows virtual machine, and then started it up. Today, when I returned home, I found that this game controller had been recognized as an Xbox controller and was working fine. At this point, I connected another controller to Unraid, selected it in Windows, and started it up, but the other controller still showed as ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE, and couldn't function properly. After disconnecting and reconnecting both controllers, they reverted to their original state, both displaying as ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE. Just now, I connected one game controller first, then selected it in Windows and started it up, and then connected the second controller. That's the complete situation. It seems that if the game controller is recognized as an Xbox controller, it works properly. But how can I make both game controllers recognized as Xbox controllers? Is it possible that after connecting the game controller to Unraid, it needs some time to automatically identify as an Xbox controller before it can work properly? You need to use bus and device ID for same type. I have a plugin that will do that automatically for you based on the port it is connection or device+serial and map into the VM when it starts or is hot plugged. Also you need to set USB3 in the vm as USB2 will not have enough free USB ports. look for USB Manager in CA. You will need to remove the mappings from the VM Template of the ones you want to map using my plugin. Quote Link to comment
Yvan Posted December 1, 2023 Author Share Posted December 1, 2023 The USB manager resolved the issue with my two gamepads. However, it's odd that my mouse and keyboard have remained in a disconnected state. Currently, my gamepads are mapped through the USB manager, while the mouse and keyboard are being accessed in the settings of the virtual machine, and everything is functioning properly Quote Link to comment
SimonF Posted December 1, 2023 Share Posted December 1, 2023 6 hours ago, Yvan said: The USB manager resolved the issue with my two gamepads. However, it's odd that my mouse and keyboard have remained in a disconnected state. Currently, my gamepads are mapped through the USB manager, while the mouse and keyboard are being accessed in the settings of the virtual machine, and everything is functioning properly Can you provide a screen shot, the keyboard and mouse should show as connected(outside) as not action by USB Manager. Try stop vm physically unplug the keyb and mouse and startagain to see if that fixes the USB screen. It may be that the state file does not include those devices, but should add them. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.