Project

General

Profile

Actions

Emulator Issues #11763

closed

GC Adapter Sending LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT on Game Start

Added by mangooses almost 5 years ago. Updated almost 4 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
5.0-12263

Description

Game Name?

Super Smash Brothers Melee 20XX

Game ID? (right click the game in the game list, Properties, Info tab)

GALE01

MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)

17756217401a39227feea1ebb8542376

What's the problem? Describe what went wrong.

Dolphin detects the Gamecube adapter when plugging in, but once game is started the adapter disconnects. This is after installation of the custom .kext for post 10.11 versions of OSX. The adapter is not the official Nintendo model.

What steps will reproduce the problem?

Plug in adapter with one controller in port 1. Seems to break with the launch of any game.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

[Version number here]

Is the issue present in the latest stable version?

yes, 5.0

If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)

[First broken version number here (if applicable)]

If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer

[Attach any fifologs if possible, write a description of fifologs and screenshots here to assist people unfamiliar with the game.]

What are your PC specifications? (CPU, GPU, Operating System, more)

CPU - 2.8 GHz Intel Core i7
GPU - NVIDIA GeForce GT 330M 512 MB
OS - MacOS 10.13.6 High Sierra

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

The logs look like this:

25:48:154 /Users/osxguest/release/Source/Core/InputCommon/GCAdapter.cpp:228 N[SI]: Found GC Adapter with Vendor: 57E Product: 337 Devnum: 1
25:58:504 /Users/osxguest/release/Source/Core/InputCommon/GCAdapter.cpp:365 N[SI]: GC Adapter detached

If the adapter is plugged while the game is already running this process is immediate.

30:56:596 /Users/osxguest/release/Source/Core/InputCommon/GCAdapter.cpp:228 N[SI]: Found GC Adapter with Vendor: 57E Product: 337 Devnum: 1
30:56:626 /Users/osxguest/release/Source/Core/InputCommon/GCAdapter.cpp:365 N[SI]: GC Adapter detached

Looking through the code it looks like the code is calling Reset() in https://github.com/dolphin-emu/dolphin/blob/8d8ed37e275766beedf9ff2fb447c95acf7bb0eb/Source/Core/InputCommon/GCAdapter.cpp#L133 when the adapter is sending LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT in the hotplug handling callback.

I assume this is an issue with the adapter, but why would launching a game cause this event? Is there a way to disable hotplugging? Thank you for any help you can offer.

Actions #1

Updated by Miksel12 almost 5 years ago

Did you test this on the latest development version?

Actions #2

Updated by mangooses almost 5 years ago

On the latest dev version (5.0-10474) I get more verbose output:

38:59:168 InputCommon/GCAdapter.cpp:275 N[SI]: Found GC Adapter with Vendor: 57E Product: 337 Devnum: 1
39:06:048 InputCommon/GCAdapter.cpp:429 E[SI]: error reading payload (size: 0, type: 00)
39:06:064 InputCommon/GCAdapter.cpp:403 N[SI]: GC Adapter detached

I looks like the adapter is sending a payload of type 00 instead of LIBUSB_DT_HID, which is 0x21. Is OSX still intercepting the controller into IOKit? I thought I installed the .kext correctly, is there another way to check if the controller is being ignored by IOKit as intended?

Actions #3

Updated by DragynfyreX almost 5 years ago

It looks like Arcanii is seeing similar symptoms on Linux. https://forums.dolphin-emu.org/Thread-gc-adapter-not-working--56277

I also got my third party GC adapter yesterday and I see the same issue on Windows 10 so this doesn't appear OS specific.

Seems like something in the newer third party GC adapters have issues in Wii U mode. PC DirectInput mode still appears to work though.

I think the guide page here https://dolphin-emu.org/docs/guides/how-use-official-gc-controller-adapter-wii-u/ should be updated to mention this problem. Currently it claims that adapters that work on Wii U generally work on Dolphin but that may not be true going forward.

Actions #4

Updated by Billiard26 about 4 years ago

"The adapter is not the official Nintendo model."

Which adapter are you using?

Actions #5

Updated by DragynfyreX about 4 years ago

This generic one from Aliexpress https://www.aliexpress.com/item/33010327806.html?spm=a2g0s.9042311.0.0.5bab4c4d8WqhU2

I no longer have it as I switched to a Mayflash one which does work.

Actions #6

Updated by Billiard26 almost 4 years ago

  • Status changed from New to Fix pending
  • Assignee set to Billiard26
Actions #7

Updated by Billiard26 almost 4 years ago

  • Status changed from Fix pending to Fixed
  • Fixed in set to 5.0-12263
Actions

Also available in: Atom PDF