From owner-freebsd-bluetooth@FreeBSD.ORG Sun Oct 13 06:18:23 2013 Return-Path: Delivered-To: bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4FD0EE46 for ; Sun, 13 Oct 2013 06:18:23 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EF823245D for ; Sun, 13 Oct 2013 06:18:22 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.69) (envelope-from ) id 1VVF0G-00052d-Lm; Sun, 13 Oct 2013 13:18:17 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id r9D6IVop055017; Sun, 13 Oct 2013 13:18:41 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id r9D6IPaT055007; Sun, 13 Oct 2013 13:18:25 +0700 (NOVT) (envelope-from danfe) Date: Sun, 13 Oct 2013 13:18:25 +0700 From: Alexey Dokuchaev To: Iain Hibbert Subject: Re: Apple's "magic" bluetooth mouse Message-ID: <20131013061825.GA53030@regency.nsu.ru> References: <20131012083133.GA22060@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: bluetooth@freebsd.org X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 06:18:23 -0000 On Sat, Oct 12, 2013 at 10:38:51PM +0100, Iain Hibbert wrote: > On Sat, 12 Oct 2013, Alexey Dokuchaev wrote: > > Today I got a chance to play with this glamorous rat from Apple, and was > > curious how it gets along with FreeBSD. Well, it worked, but only as a > > pointer. Even simplest features like vertical scrolling did not work. > > xev(1) reported of no events coming from when I touch the stupid mouse. > > It looks like they are not being proxied as virtual buttons clicks, but > > implemented somehow differently. I've also found that in Linux, they > > kinda use a special driver to make it work [1]. > > yes, also I wrote one for NetBSD[1] Hey Iain, Thanks, I will take a look (once I have more time to play with it, as I do not own the rat). > the mouse itself provides a HID profile but the descriptor does not > properly describe the actions of the mouse, and the extra reports are > enabled by setting a feature. it should work as a basic mouse with x & y > and two buttons though.. Yes, I forgot to mention that left & right clicks also work (but middle one does not, just as you say). I also failed to emulate middle click by simultaneously pressing left+right, but that could be my fault. :) > > Any clues how to investigate this issue? I probably won't be able to > > make use of all fancy multi-touch features of the mouse, but I'd like to > > at least "export" some of the common gestures, like mouse wheel scroll, > > as a legacy button clicks (so they can be propagated up to the X.org). > > I don't know why it doesn't work but I thought legacy button clicks were > built into the normal mouse (did you push? it is not just touch..) Correct, I was not accurate enough. However, by "legacy" I was referring to buttons 4 and up mapped to the wheel, etc.; not just buttons 1 and 2. > I have a tool i wrote to parse the input via a hci sniffer (attached for > interest) and another tool which I used to send something to the mouse (i > don't remember how that worked, if I had a special driver during > development) Thanks for an in-depth reply Iain, that's very helpful. ./danfe