Skip to contentSkip to conversation

make psaux reconnect adjustable

PATCH [email protected] 1 participant 1 message Aug 14, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

PS/2 mouse protocol was designed to easily re-synchronize

Not very easily. The Microsoft protocol synchronizes after a single packet, but the PS/2 protocol has packets of three bytes, two of which have completely arbitrary contents, while the first byte has arbitrary contents except that bit 3 is always set. No doubt it takes only a few packets to resynchronize in practice, but in theory one could have arbitrarily long strings of ..., 8, 8, 8, 8, 8, 12, 8, 8, 8, ... and nobody knows whether the 12 was a mouse button.

Quoted 1 line

_This_ shows, user-mode must be notified of the re-connect!

Yes, we agree completely: this AUX_RECONNECT stuff should be ripped out of the kernel, no sysctl, no ioctl, no boot param, just out. Now gpm can handle the sequence AA 00 as it sees fit, possibly by reinitializing the mouse, and if X gets its mouse events via gpm it doesnt need the same code itself.

Andries