The Curious Case of the Dropping Mouse

Broken Mouse
Broken Mouse

I was deep in a long session on Psychic Chat, with the admin dashboard on one screen, the code on another and the live site on a third, all driven by one Mac. Dragging windows across the three monitors, I noticed the pointer wasn’t gliding. It stuttered, froze for a blink, then jumped ahead.

It felt like software lag, the kind you shrug off. Instead I asked Claude Code, the AI coding assistant I was already using on the project, to find out why. What followed was an afternoon of experiments and a lesson about USB I would never have learned otherwise.

The setup

PartWhat it is
ComputerMac mini (M4), macOS 26.6
Monitors2 × Apple Studio Display (5K) + 1 ultrawide at 2560×1080, 75 Hz
MouseLogitech B100 wired optical mouse (USB ID 046d:c077), slow USB at 1.5 Mb/s, 125 reports a second
KeyboardLogitech wired USB Keyboard (USB ID 046d:c31c)
KVM switchShared with a second computer; inside it a 4-port USB 2 hub on a GenesysLogic chip (05e3:0610)
AdapterUSB-A to USB-C, needed for the Studio Displays’ USB-C ports

Clue one: the Mac was keeping score

The mouse wasn’t lagging. It was unplugging itself. macOS records every USB event, and Claude found the same three lines repeating in the system log: a USB “transaction error”, then “hardware connection lost”, then the mouse reconnecting about 10 milliseconds later. Each cycle froze the pointer for roughly a fifth of a second.

It had happened 41 times in the last hour, and it was speeding up: once at 13:55, then 27 times between 14:45 and 14:50.

Later, the KVM’s own port counters confirmed it. The mouse’s port had reconnected 63 times since the Mac started, with zero over-current events. Nothing was drawing too much power. The link to the mouse simply kept dying.

The red herrings

Three suspects looked guilty and weren’t.

  • Spotlight. The Mac had just restarted and was re-indexing two NVMe backup drives, pushing the load to 9.6 on 10 cores. That makes a Mac feel sluggish, but it can’t make a USB device disconnect.
  • ChatGPT and Chrome. This was the surprise of the day. Every time the mouse reconnected, both apps tried to open it directly at the USB level, and often got exclusive hold of it. They do the same to every USB device: the keyboard, the hubs, even an iPhone. The ChatGPT desktop app turned out to run on the same Chromium engine as Chrome (version 158), which explains the identical behaviour. I quit both apps, and the mouse dropped anyway. Nosy, not guilty.
  • Power. Zero over-current events on any port, all afternoon.

The experiments

We moved the mouse from port to port and counted every disconnect in the log. Here is the whole afternoon, in order:

#Mouse plugged intoAdapterTime thereDrops
1KVM port 3 (its usual port)Noabout 55 minabout 55, once 27 in five minutes
2Main Studio DisplayYes17 min1
3KVM port 4, ChatGPT and Chrome openNo26 min8
4KVM port 4, both apps quitNo9 min2
5KVM port 2, never used beforeNo17 min4
6KVM port 2, after power-cycling the KVMNo10 minabout 12
7Second Studio DisplayYes31 minabout 30, mostly while fast-swiping
8Main Studio Display again, normal useYes22 min0
9Main Studio Display, deliberate fast swipingYes1 min1
10Main Studio Display, normal useYes11 min7
11Main Studio Display, fast swiping againYes5 min2
12Main Studio Display, the rest of the afternoonYes23 min7

The keyboard, in the same KVM all afternoon, dropped just twice, and not once in its final port for almost two hours.

The fast-swipe test

The quiet spells fooled us more than once. A port would look healthy for ten minutes, then fail. The reason: a mouse that sits still sends nothing, so it has nothing to fail on.

Once it moves, a mouse sends 125 reports a second. A keyboard sends data only when you press a key. Give both the same small chance of a garbled report, and the mouse fails far more often. That is why the keyboard on the same KVM barely noticed.

So I swiped the mouse hard on purpose. On the second Studio Display that produced bursts of five drops in six seconds. Holding the cable still while swiping made no difference, which pointed away from a break where the cable enters the mouse. On the main display, the same abuse produced one drop, but the next 11 minutes of ordinary work brought seven more.

The verdict

There was no single villain, just a weak link made worse by the path around it.

  • The mouse side is the root. A healthy wired mouse never disconnects. This one dropped in every port we tried, including the best: 18 times in about 80 minutes on the main display, 15 of them outside the swipe tests. Something in the mouse, its cable or the USB-C adapter is failing.
  • The KVM amplifies it. Through the KVM the drops came about once a minute; on the main display, about once every four or five minutes.
  • Port quality beats hop count. Both Studio Displays connect to the Mac the same way, yet the second display’s port was several times worse than the main one’s.

The best port only made it bearable. The real fix is a new mouse: a Logitech Signature Wired M520 with a USB-C plug, which retires the old mouse and the adapter in one go. Until it arrives, the mouse lives in the main Studio Display’s port, and the keyboard stays on the KVM.

The jerky pointer felt like software. It was hardware failing hundreds of times an afternoon, and the Mac had written down every one. Without Claude Code reading the logs and counting with me, I’d have blamed the Mac and never known.

Try it on your own Mac

If your pointer stutters, open Terminal and check whether your mouse is quietly reconnecting. This lists every USB disconnect in the last hour:

log show --last 1h --style compact --predicate 'eventMessage CONTAINS "hardware connection lost"'

This shows where each USB device is plugged in, through which hubs:

ioreg -p IOUSB -w0

No output from the first command means no drops, and your stutter lies somewhere else. A long list means it’s time to start swapping ports.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Hi,

I’m Ajay

I write about tech stuff, mostly tech problems and solutions.

Fliprly iOS app: buy and sell domains, mobile apps and websites. Download on the App Store

All Categories

Social me

Mastodon

Latest comments