The officially official Devuan Forum!

You are not logged in.

#1 2021-10-30 16:57:26

NicePics13
Member
Registered: 2019-09-13
Posts: 14  

[SOLVED] USB gamepad and boy it's a weird one!

Need help with this gamepad:
https://retro-bit.com/sega-collaboration#GenMDusb

When plugging it in a running machine the gamepad defaults to D-input (just press START+B for 5 seconds for X-input). This actually does a usb modeswitch:

ID 0079:0011 DragonRise Inc. Gamepad
ID 045e:028e Microsoft Corp. Xbox360 Controller

4b9c7w.png
20773a.png
Both modes work, but emulating an Xbox360 controller gives you more options and better compatibility.

But.. when rebooting my PC the gamepad reverts to:

ID 0f0d:00c1 Hori Co., Ltd Pro Controller

zzavvp.png
Completely useless as most games don't recognize it and I have to unplug and reconnect mad

Last edited by NicePics13 (2021-10-30 19:51:08)

Offline

#2 2021-10-31 08:10:28

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] USB gamepad and boy it's a weird one!

Let's see what udev is doing with the device — open a terminal and run this command (as root):

udevadm monitor

Then plug in the controller and post any and all new output that appears in the terminal afterwards. Probably best to fullscreen the terminal, it might be a lot of information.


Brianna Ghey — Rest In Power

Offline

#3 2021-10-31 09:05:34

NicePics13
Member
Registered: 2019-09-13
Posts: 14  

Re: [SOLVED] USB gamepad and boy it's a weird one!

When hotplugging:

KERNEL[1698.923150] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
KERNEL[1698.925900] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
KERNEL[1698.934936] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006 (hid)
KERNEL[1698.935526] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22 (input)
KERNEL[1698.935697] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22/event16 (input)
KERNEL[1698.935791] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22/js0 (input)
KERNEL[1698.935847] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/hidraw/hidraw3 (hidraw)
KERNEL[1698.935905] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006 (hid)
KERNEL[1698.935969] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
KERNEL[1698.936037] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
UDEV  [1698.943260] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
UDEV  [1698.949203] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
UDEV  [1698.949225] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006 (hid)
UDEV  [1698.949493] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22 (input)
UDEV  [1698.951384] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/hidraw/hidraw3 (hidraw)
UDEV  [1698.960610] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22/js0 (input)
UDEV  [1699.160257] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22/event16 (input)
UDEV  [1699.163646] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006 (hid)
UDEV  [1699.165172] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
UDEV  [1699.169281] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)

When switching input mode:

KERNEL[1717.090956] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22/event16 (input)
UDEV  [1717.093388] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22/event16 (input)
KERNEL[1717.106120] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22/js0 (input)
UDEV  [1717.107361] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22/js0 (input)
KERNEL[1717.126255] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22 (input)
KERNEL[1717.126319] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/hidraw/hidraw3 (hidraw)
KERNEL[1717.126370] unbind   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006 (hid)
KERNEL[1717.126404] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006 (hid)
KERNEL[1717.126435] unbind   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
KERNEL[1717.126465] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
KERNEL[1717.126747] unbind   /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
KERNEL[1717.126813] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
UDEV  [1717.127481] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/input/input22 (input)
UDEV  [1717.128495] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006/hidraw/hidraw3 (hidraw)
UDEV  [1717.130157] unbind   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006 (hid)
UDEV  [1717.130841] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/0003:0079:0011.0006 (hid)
UDEV  [1717.132131] unbind   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
UDEV  [1717.132690] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
UDEV  [1717.134186] unbind   /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
UDEV  [1717.134811] remove   /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
KERNEL[1718.206931] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
KERNEL[1718.209735] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
KERNEL[1718.209795] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/leds/xpad0 (leds)
KERNEL[1718.209936] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/input/input23 (input)
KERNEL[1718.210135] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/input/input23/event16 (input)
KERNEL[1718.210201] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/input/input23/js0 (input)
KERNEL[1718.210248] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
KERNEL[1718.210356] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
UDEV  [1718.218070] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)
UDEV  [1718.221180] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/leds/xpad0 (leds)
UDEV  [1718.223959] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
UDEV  [1718.223999] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/input/input23 (input)
UDEV  [1718.232928] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/input/input23/js0 (input)
UDEV  [1718.320163] add      /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0/input/input23/event16 (input)
UDEV  [1718.322585] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1/3-1:1.0 (usb)
UDEV  [1718.326544] bind     /devices/pci0000:00/0000:00:02.0/usb3/3-1 (usb)

Offline

#4 2021-10-31 09:25:21

NicePics13
Member
Registered: 2019-09-13
Posts: 14  

Re: [SOLVED] USB gamepad and boy it's a weird one!

big_smile Temp solved the rebooting issue by using one of these to quickly powercycle the gamepad!
qj4z2z.jpeg

Offline

Board footer