protonscr

Steam Client Causes Mouse/Keyboard disconnects

steamopen Distro Family: Ubuntu
ValveSoftware/steam-for-linux#6669 · opened 2019-11-09 by kdickerson · updated 2024-03-08 · 9 comments · github
Kkdickerson 2019-11-09 github

Your system information

  • Steam client version (build number or date): Nov 6 2019, at 03:10:37
  • Distribution (e.g. Ubuntu): Mint 19.1
  • Opted into Steam client beta?: [Yes/No] No
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

As of the most-recent client update (which deployed the new library UI) running the Steam client will cause USB devices to disconnect (in particular, my Logitech, USB-dongle, wireless mouse and keyboard). Which is rather annoying.

I can restore connectivity by physically disconnecting and reconnecting the USB dongle, but it can recur. Since it kills my mouse and keyboard there's not much I can do to investigate the issue when it's happening. However, if needed I could SSH in to poke around if there's something in particular to poke at.

I think it has happened every single time I've opened Steam since the update, sometimes multiple times in one "session" (meaning opening Steam once and having the issue occur more than one time before closing Steam).

It has never happened while in a game launched via Steam, only while the client was open standalone. It has never happened when Steam was not open and usually happens within a few seconds of opening Steam. It has happened after closing a game launched from Steam while Steam was still open waiting for cloud syncs to complete. If I open Steam and then close it again within a few seconds the issue doesn't happen.

I don't see anything particularly interesting in system logs. Syslog shows the USB devices being disconnected with entries like:
"usb 10-1: USB disconnect, device number 2" and "acpid: input device has been disconnected, fd 10"

I was also unable to find anything interesting in the Steam logs found at ~/.steam/steam/logs.

Steps for reproducing this issue:

  1. Open Steam Client
  2. Wait ~10 seconds
  3. USB devices become inoperable
Kkisak-valve maintainer 2019-11-09 github

Hello @kdickerson, this is quite an abnormal issue report. Best guess is that you're encountering a kernel bug which is causing the usb controller to reset and is aggravated by Steam.

If possible, please update to Linux Mint 19.2 and test a newer kernel release.

Kkdickerson 2019-11-09 github

I just updated to Mint 19.2 and switched to the 5.3.0-19 kernel. Steam showed an "installing update" window when that happened, but it still shows the same build version, so presumably it just reinstalled a kernel module or something?

Have had Steam open for a few minutes now and the USB devices have been disconnected twice.

Kkdickerson 2019-11-10 github

Been running through any experiments I can think of.

My USB devices are all connected to the hub built in to my monitor, which connects to a USB 3 port on my motherboard.

I have 2 devices:

  1. Logitech Webcam
  2. Logitech Unifying Receiver (LUR), which hosts both keyboard and mouse

1. Normal Setup

Webcam and LUR connected to monitor.

Result

Unable to use mouse or keyboard, webcam activity unaffected

2. Add Lenovo Mouse/Keyboard Dongle

LUR same as in 1. Additional Lenovo Mouse/Keyboard dongle connected to monitor.

Result

Unable to use either mouse or keyboard

2.a Switch ports used by LUR and Lenovo dongles on monitor

Both connected to monitor but swapped which USB port each used.

Result

Unable to use either mouse or keyboard; however there was a delay between the two sets becoming unusable (just a few seconds, probably not relevant).

3. Lenovo Mouse/Keyboard Direct to PC

LUR same as in 1. Lenovo dongle connected to motherboard via USB 3.

Result

Unable to use LUR mouse/keyboard. Able to use Lenovo mouse/keyboard

4. Swap Lenovo and LUR dongles

LUR connected to motherboard via USB 3. Lenovo dongle connected to monitor.

Result

Unable to use Lenovo mouse/keyboard. Able to use LUR mouse/keyboard.

5. Connect Monitor via USB 2 port

LUR, webcam, and Lenovo dongle connected to monitor. Monitor connected to motherboard via USB 2 port instead of USB 3

Result

So far I have had no issues with this arrangement (~10 minutes of poking around Steam). I will leave this arrangement in place (well, I'll disconnect the Lenovo dongle) and will definitely add a new comment if I do run into the issue again with this arrangement.


So it looks a lot like the issue involves the monitor's hub being connected via USB 3. It's a Dell U2415. Running lsusb identifies the hub as "Texas Instruments, Inc. TUSB8041 4-Port Hub".

I wiped out my Steam installation and reinstalled with no change in behavior.

I've only ever had the issue within the library, but it also opens to that page and the issue usually happens within a few seconds so that may be irrelevant.

Still no clue why the Steam client is triggering this issue. It has worked perfectly for years so it seems to definitely have been something in the recent update.

?ghost 2020-04-01 github

I started having a USB stick disconnecting on one port at about that same time and thought it was an application. After some time it happened again and I did more testing.

For me it was also happening in Windows so I new the port or cable was having a problem which I've never seen before. I suppose these problems could be a bug in the bios as well.

For now, I'm not using that port and its all good, but it can be a bit disorienting to figure out what the cause is.

For all we know here, Steam could be doing something not related to USB but that thing does affect/use USB and then triggers it. So difficult to say.

Ddidli 2020-05-17 github

Same here in Fedora. Steam Linux disconnects my keyboard (but not my mouse) and it would happen randomly but not often (once out of 20 times, maybe). Physically disconnecting and reconnecting the keyboard is not working which forces me to restart the computer.

MMtheInsomniac 2021-06-03 github

This same thing is happening for me upon opening Steam on Windows 10. Disconnects my Logitech MX Vertical mouse.

OOljake 2023-03-09 github

I have pretty much the same issue here! After opening the steam.exe file my mouse started disconnecting and coming back.. Before that everything were okey.

AAirbrorne 2023-08-07 github

Over Here on EndeavourOS, Have tested on the latest ZEN kernel aswell as a linux-tkg build based off of Linux 6.4, also having logitech mouse disconnect when starting steam.

SSeerixsan 2024-03-08 github

Same issue on Windows 10. I have mouse & keyboard connected via a USB Hub, but only the mouse disconnects and I have to physically remove and plug it back in to recover. It doesn't always happen either, only sometimes upon launcing steam.

Nothing extracted yet.