|
Erratic Mouse Behavior with Mouse on Linux and Belkin KVM Switch
by Jeff Hunter, Sr. Database Administrator
Contents
Introduction
The root cause for this erratic behavior with the mouse rests in the fact that the PS/2 specification
was not designed to be hot-pluggable. So, why is this a problem? Read on.
All PS/2 mice can work
in what we will call "Basic PS/2 Mouse Mode" no scroll wheel and only 2 or three
buttons work. This is the default mode when the mouse initially gets power.
To activate the scroll wheel and/or any extra buttons, the mouse must
receive a special reset code. This switches the mouse to "Advanced Mouse Mode"
and changes the mouse data protocol a little.
Several KVM switches (Belkin and Rose Electronics for example) stop feeding power to the mouse when switching from one
system to another. This causes the mouse to reset to "Basic PS/2 Mouse Mode". The system
has no way of detecting that the mouse was reverted back to the basic mode. If the system
was in a state where it had detected the mouse with "Advanced" capabilities and had
sent it the appropriate reset code, it will expect the mouse to still be in "Advanced" mode
and will misinterpret the mouse data (remember the mouse data protocol is different between
Advanced and Basic mouse mode).
One of the most practical solutions is to upgrade from using Belkin and Rose Electronics KVM switches to
a far superior line of KVM switches like those offered by
Avocent Corporation. The following
KVM switches, for example, offer advanced capabilities for both home and the enterprise at
an exceptionally economical price:
For a more detailed discussion on the above mentioned KVM switches, please review
the article "KVM Switches For the Home and the Enterprise - (Avocent)".
This article provides several solutions that I have used to resolve the erratic mouse
behavior inherent with the Belkin and Rose line of KVM Switches.
When using a Belkin KVM switch (and several others), you may notice erratic behavior with the
PS/2 mouse when switching back and forth to a Linux machine running Red Hat Linux (and Mandrake 10).
The PS/2 mouse will simply go nuts; jumping all around the screen with random button clicks
when you try to move it anywhere! Often times, switching to a USB mouse will
resolve the problem. Another solution is to reboot the system every time you
switch to the Linux machine and get back into your
X Windows session. This gets old real quick!
SwitchView® 1000 8-port KVM Switch
AutoView® 1415 KVM Switch