Project

General

Profile

Actions

Emulator Issues #13754

open

SDL conflicts with native GC Adapter handling on Linux

Added by autofire372 6 days ago. Updated 5 days ago.

Status:
Accepted
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
Linux
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

N/A

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

N/A

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

N/A

What's the problem? Describe what went wrong.

Building Dolphin with SDL enabled on Linux causes Dolphin to be unable to connect to the GameCube Controller Adapter, with the emulator declaring "Resource busy", unless the adapter is unplugged and replugged while Dolphin is running.

What steps will reproduce the problem?

  1. Build Dolphin from source on Linux with default CMake settings
  2. Set up GC Adapter support
  3. Boot Dolphin and open Controller Configuration
  4. Change Controller 1 dropdown from "Standard Controller" to "GameCube Controller Adapter (USB)"
  5. Configure Port 1. Dolphin will report "Error opening device: Resource busy"

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

Yes. Repro'd on build of latest source (2412-347 at time of writing).

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

Yes, the issue is present in 2412.

If the issue isn't present in the latest release, 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.)

As far as I can tell, this has been an issue ever since SDL input was re-added to Dolphin (5.0-16861).

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: Intel Core i7-13700k @ 5.4 Ghz
GPU: NVIDIA GeForce RTX 4060 Ti w/ 16 GiB VRAM, driver 570.124
OS: Cachy OS (Arch derivative; also reproduced on EndeavourOS)

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

[Anything else here]

Actions #1

Updated by Billiard26 6 days ago

  • Status changed from New to Accepted
  • Assignee set to Billiard26
  • Operating system Linux added
  • Operating system deleted (N/A)
Actions #2

Updated by Billiard26 5 days ago

We just need this.

SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE, "0");

But ideally we'd only do that when "GameCube Controller Adapter (USB)" is actually being used.

Actions

Also available in: Atom PDF