YARG icon indicating copy to clipboard operation
YARG copied to clipboard

Controller disconnects as soon as it's plugged in

Open Kommynct opened this issue 1 year ago • 12 comments

My controller isn't detected, if I unplug it and plug it back in, I get the notification that it's disconnected and connected at the same time.

image

It works in clone hero. I'm on archlinux using the aur package

Kommynct avatar May 16 '24 07:05 Kommynct

I'm on Arch Linux too, but the game is from the official AppImage launcher. I still have the same issue, but with another guitar.

image

NicKoehler avatar May 25 '24 10:05 NicKoehler

Did y'all follow the additional setup instructions needed for Linux in the readme?

EliteAsian123 avatar May 25 '24 15:05 EliteAsian123

Yes.

  • [x] Installed additional packages with pacman -S hidapi systemd-libs
  • [X] Added the udev rule KERNEL=="hidraw*", TAG+="uaccess"

If there is something I can do to debug this issue, I'm willing to help!

NicKoehler avatar May 25 '24 15:05 NicKoehler

Clone hero:

  • [x] PS2 GUITAR (connected using an usb adapter)
  • [x] XBOX GUITAR (connected directly to the usb port)

Yarg:

  • [x] PS2 GUITAR (connected using an usb adapter)
  • [ ] XBOX GUITAR (connected directly to the usb port)

NicKoehler avatar May 25 '24 15:05 NicKoehler

Xbox stuff isn't reliably supported currently on Linux, there's some hacks going on to disable the native Unity controller support and that's the "instant disconnect" you're seeing. I tried to make sure Xbox controllers would make it through, but unfortunately that doesn't work on all distros.

TheNathannator avatar May 25 '24 19:05 TheNathannator

Did y'all follow the additional setup instructions needed for Linux in the readme?

It wouldn't have worked in clone hero if I hadn't.

My controller isn't an xbox controller, i'd like an option to enable the native unity controller support because again, this works absolutely flawlessly in clone hero.

Kommynct avatar May 25 '24 22:05 Kommynct

As far as I know, Clone Hero uses Rewired and not the native Unity controller support, so unfortunately that wouldn't help with this problem.

EliteAsian123 avatar May 25 '24 22:05 EliteAsian123

It wouldn't have worked in clone hero if I hadn't.

Yes it would have, CH doesn't use the same input system we use and has no dependencies on hidapi. We use the newer Unity input system and handle bindings more manually, while CH uses Rewired which is much more generic.

For now, if you want to re-enable the native Unity input support, uninstall hidapi, that'll make our custom backend not initialize. Just beware that it is not perfect, and will likely miss certain controls. The custom HID backend exists to fix these issues, there just isn't an equivalent for evdev devices on Linux yet.

TheNathannator avatar May 25 '24 22:05 TheNathannator

hidapi is required for a lot of other packages on my system. I tried to remove it temporarily to see if my guitar would be detected, but as you said, certain controls do not work, like the red button and the strums.

NicKoehler avatar May 26 '24 06:05 NicKoehler

I had this problem too. My solution was to just install the game on Windows instead lol.

AlenaEK avatar Jul 12 '24 20:07 AlenaEK

I'm having this problem on Windows 10 with the RB4 Xbox One controller

RaysandraRexxia avatar Feb 23 '25 08:02 RaysandraRexxia