Skip to content

User report very long controller init times after uprev to 2.26.1 #6799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Novum opened this issue Dec 12, 2022 · 8 comments
Closed

User report very long controller init times after uprev to 2.26.1 #6799

Novum opened this issue Dec 12, 2022 · 8 comments

Comments

@Novum
Copy link

Novum commented Dec 12, 2022

Novum/vkQuake#594
This didn't happen before on SDL 2.0.22 (with some backports)

Getting those in the log:

ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Broken pipe
ioctl (GFEATURE): Connection timed out
ioctl (GFEATURE): Connection timed out
ioctl (GFEATURE): Connection timed out
ioctl (GFEATURE): Connection timed out
ioctl (GFEATURE): Connection timed out
ioctl (GFEATURE): Connection timed out

User is running a custom kernel and Arch though so this might just be a some problem in other parts of the system. Still wanted to point it out because it seems it was fine in older SDL versions.

@slouken
Copy link
Collaborator

slouken commented Dec 12, 2022

What is the output of lsusb?
We might be running into a problem where SDL is probing Logitech devices for PS3/PS4 controller interfaces.

@putridpete
Copy link

Hi, user in question here. Output of lsusb:

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID b58e:9e84 Blue Microphones Yeti Stereo Microphone
Bus 003 Device 002: ID 1532:0226 Razer USA, Ltd Huntsman Elite
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 2433:b200 ASETEK [NZXT Kraken X60]
Bus 001 Device 005: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 010: ID 045e:0b12 Microsoft Corp. Xbox Wireless Controller (model 1914)
Bus 001 Device 008: ID 1532:0099 Razer USA, Ltd Razer Basilisk V3
Bus 001 Device 002: ID 1532:0529 Razer USA, Ltd Razer USB Sound Card
Bus 001 Device 006: ID 26ce:01a2 ASRock LED Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

@slouken
Copy link
Collaborator

slouken commented Dec 12, 2022

Ah, I'm betting it's one of the Razer devices.

Let's see if we can isolate which device is causing the issue. Can you try launching with this environment variables set?

env SDL_HIDAPI_IGNORE_DEVICES=0x1532/0x0000 /home/<YourName>/Applications/AppimageName.AppImage

Then, if that works, try each device individually?

env SDL_HIDAPI_IGNORE_DEVICES=0x1532/0x0226 /home/<YourName>/Applications/AppimageName.AppImage
env SDL_HIDAPI_IGNORE_DEVICES=0x1532/0x0099 /home/<YourName>/Applications/AppimageName.AppImage
env SDL_HIDAPI_IGNORE_DEVICES=0x1532/0x0529 /home/<YourName>/Applications/AppimageName.AppImage

And just for kicks, let's try this one too?

env SDL_HIDAPI_IGNORE_DEVICES=0x26ce/0x01a2 /home/<YourName>/Applications/AppimageName.AppImage

@putridpete
Copy link

OK, so the result was

0x0000 > No issue
0x0226 > No issue
0x0099 > ioctl (GFEATURE): Connection timed out
0x0529 > ioctl (GFEATURE): Connection timed out
0x01a2 > ioctl (GFEATURE): Connection timed out

As for the last item, ASRock LED Controller, I use a udev rule to blacklist the device, as it was interfering with input for my controllers:

/etc/udev/rules.d/01-asrock-LED-controller.rules

# Disable Asrock LED controller
 SUBSYSTEM=="usb", ATTRS{idVendor}=="26ce", ATTRS{idProduct}=="01a2", ATTR{authorized}="0"

Not sure if that has anything to do with this, but just figured I should disclose this.

@Novum
Copy link
Author

Novum commented Dec 13, 2022

Judging from that it is the keyboard (Ltd Huntsman Elite).

Are you using the OpenRazor Arch package? (https://openrazer.github.io/#arch)?

Honestly this looks like a bug in their stack somehow.

@slouken
Copy link
Collaborator

slouken commented Dec 13, 2022

Thanks! This should be fixed by 817454c.

@slouken slouken closed this as completed Dec 13, 2022
@Novum
Copy link
Author

Novum commented Dec 13, 2022

Well that certainly is a fix haha. Thanks @slouken

@slouken
Copy link
Collaborator

slouken commented Dec 13, 2022

You're welcome! :)
We needed similar fixes for the other Huntsman keyboards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants