Re: ps/2 mouse problem with KVM switch

From: Vojtech Pavlik
Date: Fri Feb 13 2004 - 03:14:59 EST


On Thu, Feb 12, 2004 at 02:29:24PM -0800, Robert White wrote:

> Less than optimal, yes, but technologically sound. Since there is no "soft
> reset" behavior provided by the PS/2 standard, let alone any way for the KVM
> switch to signal the driver that such logic needs to be invoked in software,
> the real truth of the issue is that this is a limitation inherent in the
> design of the PS/2 interface and any solution other than
> greatest-common-denominator will be unstable.
>
> It would have been better if the PS/2 (and keyboard) interface were designed
> with hot-plugability in mind and the KVM switch did nothing but detach the
> devices so that a "switch to" even caused the software to rediscover the
> device and reset the parameters. The thing was that part of the core
> purpose of the KVM today was designed to prevent the old "keyboard not
> found, press F1 to continue booting" nonsense... Thank You Pane/Webber. 8-)
>
> Rob.
>

Sadly enough, there is a soft reset command in the PS/2 protocol, and
the PS/2 interface is designed for hotplug, and because of that Linux
2.6 can easily handle hotplugging of both PS/2 keyboards and mice,
including type detection, etc, BUT the KVM switches don't use that,
because Windows historically doesn't support unplugging a PS/2 mouse.

The most ugly part of the KVM switch in this play is that while the KVM
switch usually implements a virtual mouse for each of the machines, it
lets them all talk to the real one, and if they have different ideas
about what mode the mouse should be set to, well, then there goes the
road to madness.

--
Vojtech Pavlik
SuSE Labs, SuSE CR
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/