From owner-freebsd-current@FreeBSD.ORG Fri Jul 20 12:06:15 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77E8616A41F for ; Fri, 20 Jul 2007 12:06:15 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by mx1.freebsd.org (Postfix) with ESMTP id 367DE13C491 for ; Fri, 20 Jul 2007 12:06:15 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so711528wxd for ; Fri, 20 Jul 2007 05:06:14 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UruJs0gt4ZSoyyTyzGAG22aMkde/0TZAkSepsflzV98SBvZ8atnxXPX1nm0fP8cMAqMuYkLMnGElSxbQHCJLPYauhw+A/rkUTYe3oqzM9Crq7F6FT2dLs9L7muYIPuehETyFE+vbuAA0gcXy8Ls1zxuPA+ShBwjEdw+XCxfjEnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PDZQveQWRMce7DDnVnRoD6q5VJtzVu2UAfjIt3cDpRNQJmRoRi2rWBLjVZl//POTEYbpJpNWjF9/1fn3hwqm0k5JFIfLtNQcVm3dUNU4yTyF0VVxNlVtcxB0rRtfQFbOkU0v/rn112ltQFap3A9wdL+/P93rbb+oP77ZuWQA6PE= Received: by 10.90.79.6 with SMTP id c6mr200721agb.1184933174601; Fri, 20 Jul 2007 05:06:14 -0700 (PDT) Received: by 10.90.117.10 with HTTP; Fri, 20 Jul 2007 05:06:14 -0700 (PDT) Message-ID: Date: Fri, 20 Jul 2007 13:06:14 +0100 From: "Mark Hobden" To: vova@fbsd.ru In-Reply-To: <1184929509.1415.10.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1184929509.1415.10.camel@localhost> Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: uhidev(4) update - USB HID driver level for devices with multiple report ids X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2007 12:06:15 -0000 On 20/07/07, Vladimir Grebenschikov wrote: > > Tries your patch under 7-CURRENT, > > Both USB keyboard and USB mouse (MS) was not attached after boot, but > detected successful. Most probably due to not fixed default entry in > devd.conf: > attach 100 { > device-name "ums[0-9]+"; > action "/etc/rc.d/moused start $device-name"; > }; > ... > # 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"; > }; > ... > > part of dmesg: > uhub5: 7 ports with 7 removable, self powered > uhidev0: on uhub5 > uhid0 on uhidev0 > uhid0: input=8, output=1, feature=0 > uhidev1: on uhub5 > uhid1 on uhidev1 > uhid1: input=3, output=0, feature=0 > uhidev2: on uhub5 > uhid2 on uhidev2 Hi Vladimir, Thanks for helping test the patch. devd.conf should be is alright how it is, as keyboards are still ukbd devices and mice are still ums devices. The difference with the patch is they now attach to the uhidev driver level. So what we should be seeing something like this for your mouse - uhidev2: on uhub5 ums0 on uhidev0 ums0: 5 buttons and Z dir and a TILT dir. Before I look into trying to work out how to debug this further could you just confirm to me that ukbd and ums are both either in your kernel or kldload'ed. The following command should show you: # kldstat -v | egrep '(ukbd|ums)' Thanks, Mark