From owner-freebsd-questions@FreeBSD.ORG Tue Jun 10 12:47:22 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 47B7837B401 for ; Tue, 10 Jun 2003 12:47:22 -0700 (PDT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 0792B43F93 for ; Tue, 10 Jun 2003 12:47:21 -0700 (PDT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 10 Jun 2003 20:47:19 +0100 (BST) To: Scott Saunders In-Reply-To: Your message of "Tue, 10 Jun 2003 11:26:28 CDT." <49AD623F-9B60-11D7-B332-003065D644E8@sprynet.com> Date: Tue, 10 Jun 2003 20:47:17 +0100 From: Ian Dowse Message-ID: <200306102047.aa60227@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: Tue, 10 Jun 2003 19:47:22 -0000 In message <49AD623F-9B60-11D7-B332-003065D644E8@sprynet.com>, Scott Saunders w rites: >I have one issue I haven't been able to figure out yet. I'm using a USB >keyboard with a USB KVM switch. When the machine boots, the keyboard is >recognized and works fine. (The keyboard doesn't seem to have any >effect at the "Hit [enter] to boot immediately..." line of startup, >though.) However, if I switch the KVM to another computer and back, the >machine doesn't respond to the keyboard. The monitor comes back fine, >but the keyboard and mouse don't seem to do anything. I can log in via >SSH, but I would like to turn SSH off and just use the KVM set up. ... >I added: >kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null >to the end of /etc/rc.i386 based on the FAQ. The above command will only run once when the machine boots, so you need to have something that repeats this when the keyboard is (effectively) plugged back in after being removed. Try adding the following lines near the end of /etc/usbd.conf instead: device "Keyboard" devname "ukbd0" attach "kbdcontrol -k /dev/kbd0 < /dev/ttyv0" On a box that has both a PS/2 and a USB keyboard, I've used an entry like the following to have FreeBSD switch to the USB one when it is plugged in, though this isn't what you want if you only have a USB keyboard. device "Keyboard" devname "ukbd0" attach "kbdcontrol -k /dev/kbd1 -r 250.50 < /dev/console" detach "kbdcontrol -k /dev/kbd0 < /dev/console" Ian