From owner-p4-projects@FreeBSD.ORG Fri Jul 13 14:04:26 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5DC6016A408; Fri, 13 Jul 2007 14:04:26 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2DC0616A405 for ; Fri, 13 Jul 2007 14:04:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 9867813C4AC for ; Fri, 13 Jul 2007 14:04:25 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [212.17.141.53] (account mc467741@c2i.net HELO [10.150.85.213]) by mailfe07.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 546463078; Fri, 13 Jul 2007 16:04:22 +0200 From: Hans Petter Selasky To: Rui Paulo Date: Fri, 13 Jul 2007 16:04:22 +0200 User-Agent: KMail/1.9.5 References: <200707121918.l6CJIFkI094946@repoman.freebsd.org> <200707130713.14525.hselasky@c2i.net> <4697815C.2080103@fnop.net> In-Reply-To: <4697815C.2080103@fnop.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707131604.22648.hselasky@c2i.net> Cc: Perforce Change Reviews Subject: Re: PERFORCE change 123399 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 14:04:26 -0000 On Friday 13 July 2007 15:42, Rui Paulo wrote: > Hans Petter Selasky wrote: > > On Thursday 12 July 2007 21:18, Rui Paulo wrote: > >> http://perforce.freebsd.org/chv.cgi?CH=123399 > >> > >> Change 123399 by rpaulo@rpaulo_epsilon on 2007/07/12 19:18:01 > >> > >> For some reason, moused confuses sysmouse after attaching to the > >> HID version of the MacBook Bluetooth device. > >> For now, blacklist the product id of the Bluetooth controller > >> (in HID mode) inside ums(4). > > > > You plan to remove this Quirk at some point? > > Yes. > > > I personally don't like all these quirks. > > What do you mean by "all these quirks" ? This is the only quirk that can > be overcome. The other fix I added for the Fn key in Apple USB keyboards > is not optional. You should try to autodetect this. > > > Could you provide a "udesc_dump" from your MacBook and all its devices, > > so that we can have a look? Remove all USB device drivers from your kernel config file, except "device ugen". All your USB devices should show up like "ugenX" devices. Then install "/usr/ports/sysutils/udesc_dump" and run this command on all /dev/ugenX instances. Redirect the contents to a set of files and upload them somewhere. I want to have a look at the descriptors. Maybe there is a USB descriptor that you can detect, that makes a keyboard an Apple keyboard. That will be more generic than adding these quirks! > When I switch my bluetooth controller from HID mode to HCI mode, I see: > ukbd1: at uhub3 port 1 (addr 2) disconnected > ukbd1: detached > ums1: at uhub3 port 1 (addr 2) disconnected > ums1: detached > uhid2: at uhub3 port 1 (addr 2) disconnected > uhid2: detached > ubt0: 2> on uhub3 > ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 > ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; > wMaxPacketSize=49; nframes=6, buffer size=294 > > If I start X after that, there's something fishy going on that prevents > me from using the keyboard and the other usb mouses that I have attached. > > The workaround is to restart all moused instances. > > I don't really understand why this happens, because when the bluetooth > controller is switched, the moused on ums1 dies. Have you configured your system to detect Bluetooth Keyboard and Mouse ? --HPS