From owner-freebsd-bluetooth@FreeBSD.ORG Fri Jan 21 19:17:00 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 82CA9106564A for ; Fri, 21 Jan 2011 19:17:00 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4A4BC8FC1D for ; Fri, 21 Jan 2011 19:16:59 +0000 (UTC) Received: by iyb26 with SMTP id 26so2036186iyb.13 for ; Fri, 21 Jan 2011 11:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=rwQo7QgOHg0Bk8bzbEWvObYZ5eNuQJ26Ut4ppIbYpMs=; b=KTL/2BQZlJGiGTac2EucyoYhFiU1hQIOqTbIld5GI42I6qLhcuF6gmgbF9sW967OnQ 0DB4zXDM0A0Q3pSwuHRn3rMQBO054I5UPUXcJ6uH1sOe3vlPne8fKk+WlYwlj7MnVmzH iQxwnEtWJJvhqJ5kM9uPoWkjq93pItjlJLZFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rvICgbX2gkRr6JlBMMsEVjZn8LSuiyAyvGTNUy9lKVQpUB5BuxJMWlYx3Vm7PujLoL S4AjTIPXRbNX4VvgQypCcqRmTIbVeXu4sgIwgF2kD5kGtmFmGjAjBFEAtU7a7/0l0QuF WtoWus1uzoqX2rD7DPMxCllDDxkAbj3iLbPHY= MIME-Version: 1.0 Received: by 10.231.15.132 with SMTP id k4mr1225325iba.60.1295637419539; Fri, 21 Jan 2011 11:16:59 -0800 (PST) Received: by 10.231.208.19 with HTTP; Fri, 21 Jan 2011 11:16:59 -0800 (PST) In-Reply-To: <201101210800.p0L80bim004048@lurza.secnetix.de> References: <201101210800.p0L80bim004048@lurza.secnetix.de> Date: Fri, 21 Jan 2011 11:16:59 -0800 Message-ID: From: Maksim Yevmenkin To: freebsd-bluetooth@freebsd.org, demelier.david@gmail.com, maksim.yevmenkin@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: 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: Fri, 21 Jan 2011 19:17:00 -0000 On Fri, Jan 21, 2011 at 12:00 AM, Oliver Fromme wrote: > Maksim Yevmenkin wrote: > > Oliver Fromme wrote: > > > David Demelier wrote: > > > > These back/next buttons are not detected by xev. That's my current > > > > trouble :-) > > > > > > If xev doesn't see them, the next step would be to find out > > > if moused sees them. Run moused with the -f -d options, so > > > it will print all events. > > > > sorry, i'm a bit confused here. moused has nothing to do with > > bluetooth mouse. bthidd decodes hid reports (received over bluetooth > > link), fills mouse_info structure, and, feeds mouse_info to kernel via > > mouse_action ioctl. so, i don't think that moused will be able to trap > > that. > > Oops ... I'm sorry. I thought that bluetooth would feed > the sysmouse protocol data via moused(8), just like USB. > I've never used a bluetooth mouse before, which explains > my mistake. :-) no worries :) i just thought that i was missing or/and misunderstanding something here :) > But on the other hand, I think it would be very useful if > bluetooth mice used moused(8), too, so you could use all > of its features, like dynamic acceleration, physical-to- > logical button mapping, wheel mapping, and so on. That > might even enable David to solve his problem. well, yes. the thing is that there is no /dev/bluetooth_mouse_device_node. so moused can't really read from it. technically, bluetooth mouse and usb mouse should be nearly identical. the same hid report is delivered over rf link instead of usb link. possible options here are 1) virtual usb mouse device driver, i.e. /dev/vums that would accept hid reports from user space, decode them and present them in a format moused(8) can understand. something similar to vkbd(4), tap(4), tun(4) etc. 2) moused(8) appears to have support for x10 mouseremote. that is, it could read mouse events from /var/run/MouseRemote unix socket (according to the man page). so, bthidd(8) could decode hid reports, translate them into x10 mouseremote protocol and feed those to moused(8) via the unix socket. i don't know how flexible/extensible x10 mouseremote protocol is and if it has support for all fancy buttons/wheels etc. thanks, max