Re: KVM Switch bug

Keith Owens
2002-04-12T11:41:18Z

On Thu, 11 Apr 2002 20:50:36 +0200,
Stijn Verrept <sverrept@vub.ac.be> wrote:
>When switching using a KVM switch I loose keyboard (only in Linux so it's not
>hardware related)

For flakey KVMs, I define a user (switched) in /etc/passwd with the
same uid/gid as root and no password. Instead of a normal shell, its
login entry is /usr/local/bin/switched which contains

#!/bin/sh
/etc/rc.d/init.d/gpm restart
/sbin/kbdrate -r 30

If there are any problems I log in as user switched, either keyboard or
network. The script runs to reset mouse and keyboard then the user
exits. The lack of password means that anybody can reset the KVM
devices to fix problems.