From owner-freebsd-usb@FreeBSD.ORG Tue Mar 15 13:56:20 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 732E3106566C; Tue, 15 Mar 2011 13:56:20 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from smtp-out4.iol.cz (smtp-out4.iol.cz [194.228.2.92]) by mx1.freebsd.org (Postfix) with ESMTP id EF2348FC0C; Tue, 15 Mar 2011 13:56:19 +0000 (UTC) Received: from antivir6.iol.cz (unknown [192.168.30.215]) by smtp-out4.iol.cz (Postfix) with ESMTP id AB00BCE46A2; Tue, 15 Mar 2011 13:34:29 +0000 (UTC) Received: from localhost (antivir6.iol.cz [127.0.0.1]) by antivir6.iol.cz (Postfix) with ESMTP id 2CF98720036; Tue, 15 Mar 2011 14:34:29 +0100 (CET) X-Virus-Scanned: amavisd-new at iol.cz Received: from antivir6.iol.cz ([127.0.0.1]) by localhost (antivir6.iol.cz [127.0.0.1]) (amavisd-new, port 10224) with LMTP id pYB1nI5V6lv4; Tue, 15 Mar 2011 14:34:29 +0100 (CET) Received: from port8.iol.cz (unknown [192.168.30.98]) by antivir6.iol.cz (Postfix) with ESMTP id 07992720032; Tue, 15 Mar 2011 14:34:29 +0100 (CET) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-IOL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngHAC8Hf01asinI/2dsb2JhbAAMhSvkHIViBIxd Received: from 200.41.broadband11.iol.cz (HELO [192.168.11.3]) ([90.178.41.200]) by port8.iol.cz with ESMTP; 15 Mar 2011 14:34:28 +0100 Message-ID: <4D7F6AE3.1060503@users.sf.net> Date: Tue, 15 Mar 2011 14:34:27 +0100 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.16) Gecko/20110124 SeaMonkey/2.0.11 MIME-Version: 1.0 To: Maksim Yevmenkin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-usb@freebsd.org Subject: Re: no modules / services needed for BT mouse support (?) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2011 13:56:20 -0000 Maksim Yevmenkin wrote: > 2011/3/14 martinko: > >> Hallo, >> >> I had a Logitech bluetooth mouse connected via USB BT dongle. In the past I >> used to load ng_ubt and bthidd and hcsecd to make the mouse work. The same >> I did for a friend on old PC-BSD. But it appears that since moving to the >> version 8.x we no longer need to load any of the above and the mouse works >> out-of-box. Unfortunately it does not respond to wheel movement (pressing >> it does generate middle click). >> > are we talking about freebsd or pc-bsd here? i'm confused :) > > there were no changes in this area in freebsd. you still need to load > ng_ubt(4) to recognize local bluetooth device (i.e. bluetooth dongle > connected to your computer). usually its done via loader.conf, i.e. > put something like > > ng_ubt_load="YES" > > into /boot/loader.conf. > > devd(8) will start/stop bluetooth stack as soon as it detects > ng_ubt(4) device arrival/departure. > > bthidd(8), hcsecd(8) etc. are bluetooth service daemons, and, those > needs to be started. usually one puts something like > > hcsecd_enable="YES" > bthidd_enable="YES" > > into /etc/rc.conf to start bluetooth services. > > assuming all of the above is in place, and, mouse was paired > previously, then it will work "out-of-the-box" > > >> Now this all is a bit surprising for me. And I'm not sure which part of the >> system is responsible for the behaviour -- kernel, USB stack, HAL, X11, .. ? >> > ng_ubt(4) driver for usb bluetooth devices > devd(8) responds to events and starts/stops bluetooth stack > > >> Also, I'd like to know how to make wheel working again. >> > can you please provide hid descriptor? > > thanks > max > Hi Max, Thank you for your reply. Probably I wasn't clear. I am aware of how to enable BT mouse in FreeBSD, I used it for several years. I did the same for PC-BSD and it worked as expected. But now, with the same mouse on a friend's computer running (latest) PC-BSD, I do no need to do anything and it works. There is no ng_ubt loaded, yet I see /dev/ums0 and mouse works both in console and X11. The issue is that its wheel does not work. So I was confused as to how it can work out-of-box and why wheel is dead. One idea that occured to me is that BIOS recognises and emulates it (dongle + mouse), though that sounds strange. Btw, when I tried to set it up as usual (and as you wrote above), it stopped working (on that PC-BSD machine). Hm.. M.