LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-06-2021, 09:23 AM   #1
barnw0l
LQ Newbie
 
Registered: Mar 2021
Posts: 5

Rep: Reputation: Disabled
Joystick issues - obscure Wii adapter


Hello. This is my first post here but I've been using Linux pretty consistently for 20 years now. Wasn't sure where to turn on this one. As far as I can tell, I'm looking for udev help.

I've got a fresh install of Linux Mint 20.1 (Xfce). It's going to be kind of half-ass arcade cabinet set-up. I've got some nice fightsticks that were made for the Wii, using its "classic controller" port. A company called Mayflash makes adapters to interface 2 of these controllers to PC (USB).

I have Mayflash's PC045 (wired) and PC047 (wireless). The wired one works for the first controller only (the second oddly registers directional input as the first controller while the buttons are totally ignored) and the wireless one works fine. Waste of batteries and introduces a bit of input lag though. I only got that one because for a time the PC045 gave a blue screen of death in Windows. That was fixed at some point and these days the PC045 works perfectly in Windows, plug and play.

I came across instructions on getting this company's Gamecube adapter to be recognized by udev and tried those out with the PC045's numbers I found with dmesg, but that didn't do anything. I guess the adapter had no trouble being recognized anyhow... udev just doesn't seem to realize it's for 2 controllers and not 1.

The PC045 wasn't on the market long before being replaced by another Mayflash adapter with the same functionality, the PC052. I'm thinking getting that for $20 might sort this out. But that's no fun (and no guarantee). I'm curious what the heck the difference might be as far as Linux is concerned. Is there some way I could tell udev to treat the PC045 as a PC052? Are these things "known" in udev or is this whole thing (and the past Windows crashes) caused by the PC045 trying to identify itself in some wacky, obscure way?

For what it's worth, the game frontend RetroArch lets you choose between input drivers (udev, linuxraw, parport, sdl2, and hid). Changing from udev didn't seem to affect anything.

Cheers!
 
Old 03-08-2021, 06:01 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,633

Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
To fix or diagnose something like this, you need to get exact. My not very precise understanding (in no particular order) is
  1. You insert something
  2. It's interrogated and results are posted in dmesg
  3. Module & firmware are loaded as required
  4. A udev device is assigned, allowing you access
  5. programs can deal with it.

Post the output of dmesg as your device is connected.
 
1 members found this post helpful.
Old 03-09-2021, 02:23 PM   #3
barnw0l
LQ Newbie
 
Registered: Mar 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you. Dunno what to make of the output. Any insights much appreciated.

dmesg | grep Mayflash
[ 2.332529] usb 3-2.4: Product: Mayflash Wii Classic Controller
[ 2.332531] usb 3-2.4: Manufacturer: Mayflash.,Ltd
[ 2.343313] input: Mayflash.,Ltd Mayflash Wii Classic Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.4/3-2.4:1.0/0003:0925:03E8.0008/input/input20
[ 2.343432] hid-generic 0003:0925:03E8.0008: input,hidraw5: USB HID v1.01 Joystick [Mayflash.,Ltd Mayflash Wii Classic Controller] on usb-0000:00:14.0-2.4/input0
[99135.923189] usb 3-2.4: Product: Mayflash Wii Classic Controller
[99135.923190] usb 3-2.4: Manufacturer: Mayflash.,Ltd
[99135.935563] input: Mayflash.,Ltd Mayflash Wii Classic Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.4/3-2.4:1.0/0003:0925:03E8.000B/input/input31
[99135.935759] hid-generic 0003:0925:03E8.000B: input,hidraw5: USB HID v1.01 Joystick [Mayflash.,Ltd Mayflash Wii Classic Controller] on usb-0000:00:14.0-2.4/input0
[100300.203560] usb 3-2.4: Product: Mayflash Wii Classic Controller
[100300.203561] usb 3-2.4: Manufacturer: Mayflash.,Ltd
[100300.210421] input: Mayflash.,Ltd Mayflash Wii Classic Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.4/3-2.4:1.0/0003:0925:03E8.000C/input/input32
[100300.210616] hid-generic 0003:0925:03E8.000C: input,hidraw5: USB HID v1.01 Joystick [Mayflash.,Ltd Mayflash Wii Classic Controller] on usb-0000:00:14.0-2.4/input0
[101175.461903] usb 3-2.4: Product: Mayflash Wii Classic Controller
[101175.461905] usb 3-2.4: Manufacturer: Mayflash.,Ltd
[101175.474238] input: Mayflash.,Ltd Mayflash Wii Classic Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.4/3-2.4:1.0/0003:0925:03E8.000F/input/input35
[101175.474584] hid-generic 0003:0925:03E8.000F: input,hidraw5: USB HID v1.01 Joystick [Mayflash.,Ltd Mayflash Wii Classic Controller] on usb-0000:00:14.0-2.4/input0
[102235.547796] usb 3-2.4: Product: Mayflash Wii Classic Controller
[102235.547798] usb 3-2.4: Manufacturer: Mayflash.,Ltd
[102235.560522] input: Mayflash.,Ltd Mayflash Wii Classic Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.4/3-2.4:1.0/0003:0925:03E8.0010/input/input36
[102235.617619] hid-generic 0003:0925:03E8.0010: input,hidraw5: USB HID v1.01 Joystick [Mayflash.,Ltd Mayflash Wii Classic Controller] on usb-0000:00:14.0-2.4/input0
[102752.920216] usb 3-2.4: Product: Mayflash Wii Classic Controller
[102752.920218] usb 3-2.4: Manufacturer: Mayflash.,Ltd
[102752.931132] input: Mayflash.,Ltd Mayflash Wii Classic Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.4/3-2.4:1.0/0003:0925:03E8.0011/input/input37
[102752.931438] hid-generic 0003:0925:03E8.0011: input,hidraw5: USB HID v1.01 Joystick [Mayflash.,Ltd Mayflash Wii Classic Controller] on usb-0000:00:14.0-2.4/input0
 
Old 03-09-2021, 03:01 PM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
You need to give a little more information, and a much smaller clip from dmesg. That post was from time 2 to time 102752 of dmesg and only the lines that had Mayflash in them.

I suggest you remove the controller, wait a time and look at dmesg so you can see the ending time on what is there now. Then plug in the controller and give us everything new that results from dmesg as the controller is configured. This limits the time span as well as providing all the dmesg detail for that time span.

Just as a suggestion as well. Please enclose everything you post from terminal output within code tags so it is easier to read. As you are typing your post, the "go advanced" button on the bottom will give you more options on the top bar. Then the "#" on the top bar will give the code tags and simply paste your input between the provided tags.

Last edited by computersavvy; 03-09-2021 at 03:02 PM.
 
1 members found this post helpful.
Old 03-09-2021, 03:54 PM   #5
barnw0l
LQ Newbie
 
Registered: Mar 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks, gotcha. Here is that!

Quote:
[690219.338219] usb 3-2.4: USB disconnect, device number 12
[690289.703333] usb 3-2.4: new low-speed USB device number 13 using xhci_hcd
[690289.809925] usb 3-2.4: New USB device found, idVendor=0925, idProduct=03e8, bcdDevice= 1.00
[690289.809930] usb 3-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[690289.809932] usb 3-2.4: Product: Mayflash Wii Classic Controller
[690289.809935] usb 3-2.4: Manufacturer: Mayflash.,Ltd
[690289.823328] input: Mayflash.,Ltd Mayflash Wii Classic Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.4/3-2.4:1.0/0003:0925:03E8.0012/input/input38
[690289.883648] hid-generic 0003:0925:03E8.0012: input,hidraw5: USB HID v1.01 Joystick [Mayflash.,Ltd Mayflash Wii Classic Controller] on usb-0000:00:14.0-2.4/input0
 
Old 03-10-2021, 04:56 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,633

Rep: Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636Reputation: 2636
I did a quick search for "linux mayflash wii controller module" and got loads of relevant hits. I suggest you have a good read as there appears to be helpful advice.
 
1 members found this post helpful.
Old 03-14-2021, 09:29 AM   #7
barnw0l
LQ Newbie
 
Registered: Mar 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks, your search terms led me to a thread on the Batocera forums about the same adapter. It seems it was the same issue until the guy recompiled kernel module hid-sjoy to tell it to treat that specific adapter as 2 inputs and not 1. Per my dmesg output, I'm guessing I need to do that for hid-generic? I'll look up guidance on how to do this in Ubuntu. I don't seem to have hid-sjoy in play at all.

(the stuff about hid-quirks on there won't apply for these sticks)

Cheers
 
Old 06-06-2021, 12:13 PM   #8
barnw0l
LQ Newbie
 
Registered: Mar 2021
Posts: 5

Original Poster
Rep: Reputation: Disabled
Back to add solution I found via here. Just had to add the following to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub:

usbhid.quirks=0×0925:0×03e8:0×040

Apparently it’s a typical Linux “quirk” when two controllers are using one USB.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SDL joystick event from N64 controller adapter not recognized Secant Linux - Hardware 1 05-03-2011 03:03 PM
Joystick recognised - but not as a joystick! Captain_Bodge Linux - Hardware 4 03-11-2008 03:13 PM
Wii Lan Adapter setup dekay23 Linux - Networking 1 08-08-2007 05:21 PM
Obscure USB-serial adapter ratman96 Linux - Hardware 23 01-06-2007 11:02 PM
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration