steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Nintendo Switch Pro Controller random disconnects with rumble enabled

Open sirdeiu opened this issue 5 years ago • 52 comments

Your system information

  • Steam client version (build number or date): 20 Dec 2020 , package version: 1608507519
  • Distribution (e.g. Ubuntu): openSUSE Tumbleweed kernel: 5.10.9-1-default and KDE Plasma5
  • Opted into Steam client beta?: [Yes/No] No (but tried with Beta version also)
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

While trying to play Streets of Rage 4, the Nintendo Pro Controller keeps disconnecting (turns off, LEDs off - no input), then back on again and Steam shows again the Nintendo Pro config notification and game continues. The controller is connected via Bluetooth and this behavior seems to happen randomly, meaning sometimes I can play half a level in SOR4 or sometimes it happens as soon as starting to move it the level.

Steps for reproducing this issue:

  1. Connect Nintendo Switch Pro controller via Bluetooth
  2. Start Streets of Rage 4, start new or continue game, try playing
  3. Randomly the Switch Pro controller gets disconnected, game presents pause menu, then controller is back and you can resume.

Playing with the controller connected via USB cable is normal, the issue is not present there.

Sometimes this appears in dmesg when the issue occurs: Bluetooth: Frame is too long (len 54, expected len 51)

Have tried this with two adapters: Intel AX200 Wifi Bluetooth adapter and an ASUS BT-400 Bluetooth Adapter

So far, this game seems to be only one that causes this random disconnect issue, or at least the most reliable.

sirdeiu avatar Jan 30 '21 05:01 sirdeiu

Adding info: issue is not present on Windows 10 on the same machine/hardware/steam version/game etc.

sirdeiu avatar Jan 30 '21 11:01 sirdeiu

Hello @sirdeiu, any particular reason why you suspect this is a Steam client issue? To me, this reads like a kernel or Bluetooth daemon issue and an investigation should probably start there.

kisak-valve avatar Jan 30 '21 12:01 kisak-valve

Hi @kisak-valve, well, mainly because I'm playing the game on Steam and using the Steam controller support for Nintendo Pro or Sony DS4 etc. It mostly seems like a game issue, but I said I'd try asking here first.

I've also now tried with the dkms-hid-nintendo driver and joycond, and I can see the issue using that also, but not as frequent.

I have raised this issue also with the dkms-hid-nintendo owner and they asked about rumble in game, so I tested disabling that in game (setting the Vibration Intensity to 0%) and while playing the Pro controller was OK, I could finish an entire game level.

I've tried the same using Steam (and also disabling rumble in Steam Controller configuration for the Pro controller) and it worked a bit better I guess, but the issue is still present while testing. It seems that for some reason, when using Steam, the Pro controller is more prone to this issue. But mostly for SOR4. Have tried other games also and they worked OK.

So it may be just the rumble function or something else also.

Any ideas, please?

sirdeiu avatar Jan 30 '21 23:01 sirdeiu

Nintendo Switch Pro Controller random disconnects with rumble enabled

Issue transferred from https://github.com/ValveSoftware/steam-for-linux/issues/7776. @AwesamLinux posted on 2021-05-01T14:05:08:

Your system information

  • Steam client version (build number or date): 1618256785 (Built Apr 12 2021)
  • Distribution (e.g. Ubuntu): Linux Mint 20.1
  • Opted into Steam client beta?: Currently no (but tried both)
  • Have you checked for system updates?: Yes system_info.txt

Please describe your issue in as much detail as possible:

Nintendo Switch Pro Controller over bluetooth randomly disconnects when rumble is enabled (in Steams controller settings). The more rumble feedback a game has, the more frequent the problem occurs.

I have tried both the client version above, and the current beta available version available today 1/5.

I remember having this exact same problem sometime last year, it got fixed at some point with a client update if I remember correctly, but now the problem appears to be back.

Steps for reproducing this issue:

  1. Make sure rumble is enabled in Steams controller settings
  2. Play a game that has rumble, I tried it with the Linux Native game DRAG, and R-Type Final 2 through Proton.
  3. Controller will randomly disconnect

kisak-valve avatar May 01 '21 14:05 kisak-valve

Was this fixed ? I also have this issue. Tried different Bluetooth dongles.

ravinsweden avatar May 29 '21 02:05 ravinsweden

I get the same issue with No Man's Sky. If it's not a Steam Input issue, it's a specific issue with how Proton interacts with Steam Input.

clarfonthey avatar Jun 10 '21 21:06 clarfonthey

If i disable Steam controller support for a specific game in Steam big picture and instead run the game with built in controller support the disconnections stops.

ravinsweden avatar Jul 18 '21 19:07 ravinsweden

Try running dolphin emulator, e.g Metroid Prime 2.

ravinsweden avatar Jul 18 '21 20:07 ravinsweden

I don't think it's too game-specific. This also happens to me when playing The Elder Scrolls: Skyrim with Proton. For what it's worth, this doesn't happen with other titles on Steam for macOS, if that helps the developers figure out how it happens.

s-daveb avatar Sep 02 '21 02:09 s-daveb

I also encountered this problem. Disabling the Steam management of the Switch Controller fixed it, like others have said.

dkms-hid-nintendo had similar issues when rumble was enabled. It seems like the connection was spammed with rumble-state-updates, resulting in instability — but that's fixed now. The steam-for-linux implementation might have a similar problem? Looking at their commits could help.

hashworks avatar Sep 19 '21 23:09 hashworks

I also encountered this problem. Disabling the Steam management of the Switch Controller fixed it, like others have said.

dkms-hid-nintendo had similar issues when rumble was enabled. It seems like the connection was spammed with rumble-state-updates, resulting in instability — but that's fixed now. The steam-for-linux implementation might have a similar problem? Looking at their commits could help.

This fixes it for me as well.

Rizilla-OG avatar Sep 28 '21 01:09 Rizilla-OG

For me it was enough to just disable the rumble feature in Steam settings.

s-daveb avatar Sep 28 '21 01:09 s-daveb

For me it was enough to just disable the rumble feature in Steam settings.

I'll try this tonight.

Edit: just disabling rumble fixes the random disconnects.

Rizilla-OG avatar Sep 28 '21 16:09 Rizilla-OG

This has been an issue for me for months now compounded by the fact that Proton not respecting my controller options (turning off rumble, disabling the light on the controller)

Your system information Steam Ver: Sep 17 2021 Package ver: 1631912732 Distro: Arch Kernel 5.14.8 KDE5

Cknight70 avatar Oct 04 '21 06:10 Cknight70

I also encountered this problem. Disabling the Steam management of the Switch Controller fixed it, like others have said.

dkms-hid-nintendo had similar issues when rumble was enabled. It seems like the connection was spammed with rumble-state-updates, resulting in instability — but that's fixed now. The steam-for-linux implementation might have a similar problem? Looking at their commits could help.

I've found that the hid-nintendo kernel driver still has some problems with rumble and disconnects even after that latest patch. I was able to play through a full track of Little Racers Street with rumble enabled (with only one controller connected) without problem, but trying to play Pocket Cars (with four controllers enabled), which seems to have a fair amount of controller issues anyway at their current point of early access and which seems to use rumble excessively, caused spurious disconnects of the controllers pretty often.

I'm starting to believe the underlying problem may be in the linux bluetooth stack.

I have no problems with disconnects with four controllers going as long as rumble is disabled.

psycho-driver avatar Dec 30 '21 15:12 psycho-driver

The random disconnects also happen for me, but they happen basically anywhere, whether I'm in a game or not, and disabling rumble does indeed get rid of the disconnects entirely. I don't think the third party game label is actually relevant for this issue.

DaVince avatar Jan 30 '22 13:01 DaVince

There is a battery connection problem on some controllers, that will disconnect the battery if the controller is vibrating, you can check if this is the case by smashing the controller on your hand and see if it’s disconnects. If this is the case then open the controller and put some paper to make pressure on the connection.

ravinsweden avatar Jan 30 '22 14:01 ravinsweden

There is a battery connection problem on some controllers

Just to be clear: This issue is real and does not occur with the same Switch Pro Controller when one is using a different bluetooth stack (f.e. on the Nintendo Switch, Windows, Android or using a bluetooth adapter for controllers like the 8BitDo USB Wireless Adapter).

hashworks avatar Jan 30 '22 15:01 hashworks

Hi I’m sorry but that is incorrect, when using 8bit-do adapter I also have disconnections but it was solved but disable controller support in steam because somehow steam is interfering with the controller connection.

ravinsweden avatar Jan 30 '22 15:01 ravinsweden

There is a battery connection problem on some controllers, that will disconnect the battery if the controller is vibrating, you can check if this is the case by smashing the controller on your hand and see if it’s disconnects. If this is the case then open the controller and put some paper to make pressure on the connection.

I intensively use the controller on my Switch as well (from a 9 foot distance and without any disconnects) so this sounds like a software issue to me.

DaVince avatar Jan 30 '22 15:01 DaVince