Published 2025-04-22.
Time to read: 2 minutes.
My Windows 10 computer was connecting and disconnecting USB devices every few minutes. Each time this happened, the mouse cursor would freeze, and sometimes it would permanently disappear.
Below I describe everything I tried, in order. Eventually I used USBLogView to discover and fix the problem. The debugging tool also works with Windows 11.
First I removed all unnecessary USB devices. The problem continued.
Next I tried swapping out the Logitech G413 TKL SE keyboard. I have had it for 18 months, during which time it has performed well. This did not help.
Next I enabled USB Selective Suspend, which allows hub drivers to suspend individual ports without affecting the operation of the other ports on the hub. To do that, I opened Control Panel, navigated to System and Security / Power Options, and then set the power plan settings to enable USB Selective Suspend.

This setting made no difference.
I performed the following because this is often a good set of commands to run whenever Windows misbehaves. Open CMD as administrator and run these 3 commands:
C:\WINDOWS\system32> sfc /scannow Beginning system scan. This process will take some time.
Beginning verification phase of system scan. Verification 100% complete.
Windows Resource Protection found corrupt files and successfully repaired them. For online repairs, details are included in the CBS log file located at windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline repairs, details are included in the log file provided by the /OFFLOGFILE flag.
C:\WINDOWS\system32> Dism /Online /Cleanup-Image /RestoreHealth Deployment Image Servicing and Management tool Version: 10.0.19041.3636
Image Version: 10.0.19045.5737
[===== 10.0% ] [==========================100.0%==========================] The operation completed successfully.
C:\WINDOWS\system32> Dism /online /Cleanup-Image /StartComponentCleanup Deployment Image Servicing and Management tool Version: 10.0.19041.3636
Image Version: 10.0.19045.5737
[===== 10.0% ] [==========================100.0%==========================] The operation completed successfully.
No serious problems were found, so Windows is probably in good shape. However, the problem continued.
USBLogView is a small utility by NirSoft that runs in the background and records the details of any USB device that is plugged or unplugged into your system. I have used NirSoft software for years and have found it to be high quality (and free!)
Immediately after installing, two events appeared:

Here is an enlarged portion of the log:

Searching for “usb device 0A4F
” found this page:

Aha! The optical mouse has a problem. The mouse is branded Swann, but it seems the manufacturer is actually Trust International B. V.
After throwing the Swann mouse into the garbage, I dug into my collection of mice and pulled out a cheap wired Amazon Basics mouse, and plugged it in.

Then I cleared the USBLogView history and waited to see if the problem reappeared. It did not. Mischief managed!