From owner-freebsd-bluetooth@FreeBSD.ORG Thu Jan 20 19:16:01 2011 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F3E4106566B for ; Thu, 20 Jan 2011 19:16:01 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id D03DF8FC08 for ; Thu, 20 Jan 2011 19:16:00 +0000 (UTC) Received: by wwf26 with SMTP id 26so912727wwf.31 for ; Thu, 20 Jan 2011 11:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=3gBgGzYDivfJggTikmheg3u4Ko3sSMPSq01e9gzQ4RI=; b=EAgzjRk+ofQARRlbJswo8KYCxgzaT19iDQIoA9vGGa+2QBDXL/mXUO/QH1q+THbROk 8rG2sIPSWnjbqa4uwX0b9L5HNnjVj09+UiWpIkEggYlRuxcyEID8XA53m0XfacA90exe SyiD+0eCeWJLw/Dy6q01t3ThIQv+xRR+380bk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=WiDHcyoNyvX39QaRLxEK8jEuta3w/0o74jvBJyMt2ZqsOvDwGfYHkMoK92GxRAlVso g8uZVOEq76rd8oG8fUJVh6NwnZAgLftk5iXL5BWV9EXRE9Wqg2oAzutfC+Ih8+TWbPD5 j37Co8yuQJJSFWH5D5S6SMAiDHrz84RCkw66M= Received: by 10.227.157.1 with SMTP id z1mr2847245wbw.23.1295550959280; Thu, 20 Jan 2011 11:15:59 -0800 (PST) Received: from Melon.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id f35sm6243093wbf.20.2011.01.20.11.15.56 (version=SSLv3 cipher=RC4-MD5); Thu, 20 Jan 2011 11:15:57 -0800 (PST) Message-ID: <4D3889D2.80508@gmail.com> Date: Thu, 20 Jan 2011 20:15:30 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110111 Thunderbird/3.1.7 MIME-Version: 1.0 To: Maksim Yevmenkin References: <4D36ED39.7070807@gmail.com> <4D372C27.3040606@gmail.com> <4D37F7DB.4020709@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluetooth mouse does not connect after reboot X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 19:16:01 -0000 On 20/01/2011 18:55, Maksim Yevmenkin wrote: > On Thu, Jan 20, 2011 at 12:52 AM, David Demelier > wrote: >> On 19/01/2011 20:10, Maksim Yevmenkin wrote: >>> >>> On Wed, Jan 19, 2011 at 10:23 AM, David Demelier >>> wrote: >>>> >>>> It works ! In fact I didn't need to press the connect the button, only >>>> moving it or clicking. It was easier than I tought. Thanks. >>> >>> great. glad to hear this :) >>> >>>> I'm just guessing, there is two more logical buttons in the wheel >>>> (backward/forward) that are not understood by bthidd. >>>> >>>> Is this a bthidd limitation? >>>> >>>> [..snip..] >>>> Input id=2 size=1 count=1 page=Button usage=Button_7 Variable, logical >>>> range 0..1 >>>> Input id=2 size=1 count=1 page=Button usage=Button_8 Variable, logical >>>> range 0..1 >>>> Input id=2 size=12 count=1 page=Generic_Desktop usage=X Variable >>>> Relative, >>>> logical range -2047..2047 >>>> Input id=2 size=12 count=1 page=Generic_Desktop usage=Y Variable >>>> Relative, >>>> logical range -2047..2047 >>>> Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable >>>> Relative, logical range -127..127 >>>> Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, >>>> logical range -127..127 >>>> End collection >>>> >>>> I think it should be the button 7 and 8 that are not usable. >>> >>> bthidd(8) has little to do with it. what bthidd(8) does is simply >>> receives hid reports from the device, decodes hid reports according to >>> the provided hid descriptor, and, feeds those events to kernel. >>> freebsd syscons(4) relies heavily on moused(8) to handle things like >>> double clicks etc. i did not want to replicate this in bthidd(8). >>> bottom line is that bluetooth mouse in text console is kinda lacking, >>> i.e. x, y, z direction and button clicks (single) -- basically >>> MOUSE_ACTION ioctl. Xorg however, can be configured to support for all >>> the buttons/wheels etc (using /dev/sysmouse as input device). >>> >>> thanks, >>> max >> >> Then I should edit my mouse section in my xorg.conf ? I tried this : >> >> Section "InputDevice" >> Identifier "Mouse0" >> Driver "mouse" >> Option "Protocol" "auto" >> Option "Device" "/dev/sysmouse" >> Option "ZAxisMapping" "4 5 6 7" >> Option "Buttons" "7" >> EndSection >> >> But it does not change anything > > could you please be more specific what exactly works and what does not? > > your configuration seems to be correct. so, i would expect that x, y > and vertical scroll/wheel should work. horizontal scroll (AC_Pan) is > not currently decoded by bthidd(8). while it is very easy to add it, > mouse_info structure has no place to put the value in :( so, > basically, bthidd(8) is limited by what sysmouse(4) can understand. > > thanks, > max Look this mouse http://images.pcworld.com/news/graphics/123950-Gadget32-Intellimouse_b.jpg It has two logical button at the both sides. It does "backward" or "forward" in firefox or the same in nautilus. My logitech mouse has the same feature on the wheel. if I press the mouse wheel to the side it does 2 more click so the wheel has not only one middle click but three. The middle click and "back" "next" These back/next buttons are not detected by xev. That's my current trouble :-) -- David Demelier