From owner-freebsd-bluetooth@FreeBSD.ORG Mon May 2 20:24:05 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 4B20C106564A for ; Mon, 2 May 2011 20:24:05 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by mx1.freebsd.org (Postfix) with ESMTP id CA2028FC15 for ; Mon, 2 May 2011 20:24:04 +0000 (UTC) Received: by bwz13 with SMTP id 13so8660005bwz.17 for ; Mon, 02 May 2011 13:24:03 -0700 (PDT) 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:cc:content-type; bh=KrOaKo5zmLWrzQOdtHuIawFAXCcGwbz7c/3yvQhuZyU=; b=Q1hmJhrxaofnamqNeJDAqNKmaTBKAhY3knixBR8Xva8RxiIb+pj9AMutaSfRynOKRB tA3tArz/r3mGoxsKirmeffVVNblxEkKAL4sHVy7nDGJgDALMfCtoCD2RjEqTb5LdYdPZ D6/cGKR4+WfdDtDcWHLKoUW7sZRa3BerZAIUk= 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 :cc:content-type; b=TFKtBwJl0nBjfVqJ6p4B2Vb8svF8881gYtZMBuoRmPYMPeRjW+X+3wt+/aLSqyya2g dFf/wP7XMPNkd9AKFOinc/i+73P0q1fpjcCAi1JGEzgd2yYcC5PvaqqW81tEj/QSFAP+ elxttS7Fp+kXnvKFKaz7+oKsJIAzrgxm8nOik= MIME-Version: 1.0 Received: by 10.204.128.90 with SMTP id j26mr1381297bks.116.1304367843600; Mon, 02 May 2011 13:24:03 -0700 (PDT) Received: by 10.204.39.133 with HTTP; Mon, 2 May 2011 13:24:03 -0700 (PDT) In-Reply-To: <4DBF0D26.8020703@gmail.com> References: <4D3889D2.80508@gmail.com> <201101202043.p0KKhDIB076736@lurza.secnetix.de> <4DBF0D26.8020703@gmail.com> Date: Mon, 2 May 2011 13:24:03 -0700 Message-ID: From: Maksim Yevmenkin To: David Demelier Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 02 May 2011 20:24:05 -0000 On Mon, May 2, 2011 at 12:59 PM, David Demelier wrote: > > I'm sorry to disturb you again.. I'm still guessin where to search how to > get these horizontal events with my bluetooth mouse. I thing the mouse_info > structure does not need to be extended I have a USB mouse that has the same > horizontal buttons and they just works ! > > They sends 7 and 8 events to X (checked with xev) > > What can I do to extend bthidd and this button support ? like i said before, you need to decode AC_Pan data from the report. i just took a quick look at ums(4) driver and, it appears, that AC_Pan events are translated into button events, i.e. values < 0 is mask (1 << 3) and values > 0 is mask (1 << 4) . you can add identical translation to bthidd(8) to see if it works. you will need to modify hid_interrupt() function in hid.c thanks, max