From owner-freebsd-bluetooth@freebsd.org Mon Sep 14 17:18:18 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37B2EA036AF for ; Mon, 14 Sep 2015 17:18:18 +0000 (UTC) (envelope-from plunky@ogmig.net) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:c:538::194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED3B7150B for ; Mon, 14 Sep 2015 17:18:17 +0000 (UTC) (envelope-from plunky@ogmig.net) Received: from mfilter33-d.gandi.net (mfilter33-d.gandi.net [217.70.178.164]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 72C7FC5A46; Mon, 14 Sep 2015 19:18:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter33-d.gandi.net Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter33-d.gandi.net (mfilter33-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 3b__YsGH-BZf; Mon, 14 Sep 2015 19:18:05 +0200 (CEST) X-Originating-IP: 31.68.69.76 Received: from galant.ogmig.net (unknown [31.68.69.76]) (Authenticated sender: plunky@ogmig.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 31E3DC5A3C; Mon, 14 Sep 2015 19:18:04 +0200 (CEST) Received: by galant.ogmig.net (Postfix, from userid 1000) id 3E77726026A; Mon, 14 Sep 2015 18:18:05 +0100 (BST) Date: Mon, 14 Sep 2015 18:18:05 +0100 (BST) From: Iain Hibbert To: Dirk Engling , freebsd-bluetooth@freebsd.org Subject: Re: Apple Magic Mouse In-Reply-To: <55F4362A.4050203@erdgeist.org> Message-ID: References: <1437909200.57929.3.camel@yandex.com> <55F4362A.4050203@erdgeist.org> User-Agent: Alpine 2.11 (NEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2015 17:18:18 -0000 On Sat, 12 Sep 2015, Dirk Engling wrote: > Problem is, that the bthidd code does not handle reports not announced > in hid descriptors at all. So I would need to either manually inject the > report id in hid_device->desc and add handler code, handle magic mouse > in a completely different code path, or write my own driver. another option is to (in bthidcontrol) emit a fake descriptor which does contain information about reports you wish to handle.. iain