From owner-freebsd-questions@FreeBSD.ORG Tue Jun 10 18:10:16 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4172B37B401 for ; Tue, 10 Jun 2003 18:10:16 -0700 (PDT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 0CFFE43FA3 for ; Tue, 10 Jun 2003 18:10:15 -0700 (PDT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 11 Jun 2003 02:10:14 +0100 (BST) To: Scott Saunders In-Reply-To: Your message of "Tue, 10 Jun 2003 16:08:39 CDT." Date: Wed, 11 Jun 2003 02:10:09 +0100 From: Ian Dowse Message-ID: <200306110210.aa30548@salmon.maths.tcd.ie> cc: freebsd-questions@FreeBSD.ORG Subject: Re: USB keyboard and KVM X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 01:10:17 -0000 In message , Scott Saunders w rites: >> device "Keyboard" >> devname "ukbd0" >> attach "kbdcontrol -k /dev/kbd0 < /dev/ttyv0" > >I added this and tried it with and without the kbdcontrol line in >/etc/rc.i386. Unfortunately, it doesn't seem to make any difference. It >certainly looks to my inexperienced eyes like it should. > >I can SSH in (and maybe this will be the permanent solution). If I run >kbdcontrol -k /dev/kbd0 < /dev/ttyv0 while it's 'locked up' I get: >kbdcontrol: cannot open /dev/kbd0: Device busy > >So maybe it didn't close down the connection to the keyboard? If that's >anything like how it actually works. > >I tried plugging the keyboard directly into the machine (not through >the KVM) while it was 'locked up', but that had no effect either. > >Are you using a set up like this, Ian? No, I've only used a setup that had both PS/2 and USB keyboards. Just reading the kbdcontrol man page, the other thing you could try is the -K option to detach the keyboard. e.g: device "Keyboard" devname "ukbd0" attach "kbdcontrol -k /dev/kbd0 < /dev/ttyv0" detach "kbdcontrol -K < /dev/ttyv0" (or experiment with kbdcontrol -K from ssh) BTW, what are the last few lines of `dmesg' after the keyboard stops working? Ian