Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2005 11:40:28 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Alex Welycz <theawel@gmail.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: KVM USB
Message-ID:  <20050309194028.GA17398@odin.ac.hmc.edu>
In-Reply-To: <aa8567bf050309111011a8a824@mail.gmail.com>
References:  <aa8567bf050309111011a8a824@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--SLDf9lqlvOQaIe6s
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 09, 2005 at 02:10:49PM -0500, Alex Welycz wrote:
> All,
>=20
> I'm using FreeBSD 5.3 and I've run into a bit of a problem. I am using
> a KVM switch that does not keep a live connection to the computer when
> switching between computers ie. the computers show that the usb
> keyboard/mouse are unplugged when you switch between them. My problem
> occurs when the i switch from my Windows box back to my FreeBSD box.
> The USB deamon on the BSD box shows that the keyboard is recognized
> and loads it but when i try to use the keyboard nothing comes up. The
> USB keyboard does work when I reboot the BSD box and dont switch
> between computers. Now how I get the USB keyboard to work when i
> switch between computers I have to run this script.
>=20
> sleep 15
> kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null
>=20
> Apparently when I reboot the box everything works fine, the USB
> keyboard is accessed as
>=20
> kbd0 -> ukbd0
>=20
> but when I switch between boxes and switch back the keyboard doesnt
> get mounted at
>=20
> kbd0 -> ukbd0 but instead is mounted at kbd1 -> ukbd1.=20
>=20
> So my question is how do I get FreeBSD to always mount the keyboard as
> kbd0 -> ukbd0 and not kbd1 -> ukbd1
>=20
> Because upon bootup my kbdcontrol is called as:
>=20
>  kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null and cannot be called
> wih kbd1 because at bootup that device does not exist, and also that
> device disappears when I swicth to my other computer so kbdcontrol
> sets itself back to kbd0.

This is caused by a bug in /etc/devd.conf that I fixed a week ago in 5.
Just change the line to refer to ukbd0 instead of bogusly refering to
kbd1.  The problem was caused by crappy examples in the manpage making
me think you had to use the generic /dev/kbd# device not the specific
/dev/ukdb# device with kbdcontrol.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--SLDf9lqlvOQaIe6s
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFCL1ErXY6L6fI4GtQRAlAKAKDSaA2ozmU+Ex5cOv/DldwOOJiZcgCg0m2T
rv0L2Wl8T69G/5M6S1UTE9c=
=aFap
-----END PGP SIGNATURE-----

--SLDf9lqlvOQaIe6s--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050309194028.GA17398>