From owner-freebsd-usb@FreeBSD.ORG Tue Jan 15 07:16:18 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A71E2F9B for ; Tue, 15 Jan 2013 07:16:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 1005AF7 for ; Tue, 15 Jan 2013 07:16:17 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 368630826; Tue, 15 Jan 2013 08:11:09 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: Plugging out Microsoft Nano Tranceiver (USB mouse) causes PS2 keyboard to cease functioning Date: Tue, 15 Jan 2013 08:12:33 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <50F48D49.1060406@rawbw.com> In-Reply-To: <50F48D49.1060406@rawbw.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2013 07:16:18 -0000 On Monday 14 January 2013 23:57:13 Yuri wrote: > I have Microsoft USB Explorer Touch mouse. It works fine, but when I > plug out its (wireless) USB dongle, keyboard also stops working. > Plugging the dongle back in enables the keyboard again. Plugging in some > other USB mouse instead doesn't make keyboard work again. > > There were two keyboard devices defined before this mouse was first > plugged in: kbd0 at atkbd0 and kbd1 at kbdmux0, see messages below. > This mouse defines the new keyboard device kbd2 at ukbd0. > When the dongle is plugged out, these two items (kbd2 at ukbd0) > disappear from /dev, leaving all the same devices that existed before. > Except keyboard becomes disfunctional. > > What could be a problem with this USB mouse? Looks like it interacts > with the previous setup and leaves something modified when plugged out. > > Yuri > > PS: This of course isn't the major usability issue since, when plugged > in, everything works. Nevertheless, I can't plug it out without losing > the keyboard. > > > ---messages (kbd related during boot)-- > kbd1 at kbdmux0 > <...skipped...> > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > > ---messages (plug out)--- > Jan 14 14:30:59 eagle kernel: ugen1.2: at usbus1 (disconnected) > Jan 14 14:30:59 eagle kernel: ukbd0: at uhub1, port 1, addr 2 > (disconnected) Jan 14 14:30:59 eagle kernel: ums0: at uhub1, port 1, addr > 2 (disconnected) Jan 14 14:30:59 eagle kernel: uhid0: at uhub1, port 1, > addr 2 (disconnected) > > ---messages (plug in)--- > Jan 14 14:31:09 eagle kernel: ugen1.2: at usbus1 > Jan 14 14:31:09 eagle kernel: ukbd0: Transceiver v1.0, class 0/0, rev 2.00/6.74, addr 2> on usbus1 > Jan 14 14:31:09 eagle kernel: kbd2 at ukbd0 > Jan 14 14:31:09 eagle kernel: ums0: Transceiver v1.0, class 0/0, rev 2.00/6.74, addr 2> on usbus1 > Jan 14 14:31:09 eagle kernel: ums0: 5 buttons and [XYZT] coordinates ID=26 > Jan 14 14:31:09 eagle kernel: ums0: 0 buttons and [T] coordinates ID=0 > Jan 14 14:31:09 eagle kernel: uhid0: Transceiver v1.0, class 0/0, rev 2.00/6.74, addr 2> on usbus1 > > $ ls -l /dev/*kbd* > crw------- 1 root wheel 0, 57 Jan 4 11:50 /dev/atkbd0 > lrwxr-xr-x 1 root wheel 6 Jan 4 11:50 /dev/kbd0 -> atkbd0 > lrwxr-xr-x 1 root wheel 7 Jan 4 11:50 /dev/kbd1 -> kbdmux0 > lrwxr-xr-x 1 root wheel 5 Jan 14 14:38 /dev/kbd2 -> ukbd0 > crw------- 1 root wheel 0, 13 Jan 4 11:50 /dev/kbdmux0 > crw------- 1 root wheel 0, 182 Jan 14 14:38 /dev/ukbd0 > The problem is that the Nano transceiver also provides a keyboard, which is set as default. See /etc/devd.conf and: # When a USB keyboard arrives, attach it as the console keyboard. attach 100 { device-name "ukbd0"; action "/etc/rc.d/syscons setkeyboard /dev/ukbd0"; }; detach 100 { device-name "ukbd0"; action "/etc/rc.d/syscons setkeyboard /dev/kbd0"; }; Which probably should be updated. --HPS