I used to have the same problem but I've found a simple hack.
All I do is to switch to a text terminal and back, so I press
ctrl-alt-F1  and then back to
ctrl-alt-F7 and it works.

A better aproach if the one above does not work is:

I also have about 7 no-brand KVM switches that never lock and I swith back and forth without any problems using different Linux Boxes.
Each switch holds 4 machines. I got them at www.startwest.com which is a computer store close to home.
Look here at http://www.starwest.com/cgi-bin/ss.cgi?ac=st&ai=Switchboxes,_USB_Hub 
The SKU is CAB4WAY. I also got the cables there as well. Simple but swift solution.

--C.F.

Dotan Cohen wrote:
On 6/29/05, David G. Miller <dave@davenjudy.org> wrote:
  
I typically see the problem when I either traverse
a system on the kvm that isn't in graphical mode or a port on the kvm that
doesn't have a system attached.
    

I think that you are right- now that I am very cafeful not to move the
switch over to an empty position (and VERY careful not to let the
mouse move while I switch), I have not yet had any problems. I have
not yet added the kernel parameters.

Now if I could just get my rat to behave as well as the mouse (yes, we
have a pet rat)...

Dotan Cohen
http://song-lirics.com/sl/artist/64/the-beatles-lirics.php
The Beatles Song Lirics