I've read post from quite a few furiously frustrated individuals plagued by the same issue without a resolution.
There were several things I observed going wrong on my fresh install of Windows 11 with updated drivers.
- USB devices connected to my eGPU (Razer Core X Chroma) USB ports would cut out, but ethernet was fine.
- USB devices connected to my Thunderbolt 3 hub USB ports would cut out, but monitors were fine.
- My USB keyboard would ignore the first keystroke after a few minutes of inactivity, and sometimes only a few seconds.
- Rarely, My USB keyboard would lag and then completely cut out and not recover until plugged in to a new port.
- The USB hub built into my dell monitor (daisy chained to the eGPU dock via USB) was also unstable.
I saw it recommended to disable USB Selective Suspend in the Advanced Power Plan settings, but on my Microsoft Surface Laptop Studio, that option doesn't appear by default. I tried running scripts to edit the registry and force power options to show up, but toggling them didn't help. Also, I don't actually want that feature disabled, I'd rather have it work correctly since it saves power and USB bus resources.
I did, however, learn that the USB Sleep timeout is set to 50 milliseconds which may have something to do with why devices like the keyboard cut out even while in active use.
Further, I found an article on Microsoft's site that mentioned USB devices can end up frozen in a bad state if they receive a suspend request, but then are asked to wake up again before fully suspended which matches the behavior I'm seeing with the keyboard. So I think we're on the right track with USB sleep behavior being the source of the problem.