From owner-freebsd-bluetooth@FreeBSD.ORG Thu Feb 16 17:34:42 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 858DF16A420 for ; Thu, 16 Feb 2006 17:34:42 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F32C43D45 for ; Thu, 16 Feb 2006 17:34:41 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k1GHYf9a005754; Thu, 16 Feb 2006 11:34:41 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <43F4B7AA.5030000@centtech.com> Date: Thu, 16 Feb 2006 11:34:34 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5 (X11/20060112) MIME-Version: 1.0 To: Maksim Yevmenkin References: <43F34314.7030606@centtech.com> <43F3688B.8060700@savvis.net> In-Reply-To: <43F3688B.8060700@savvis.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1290/Thu Feb 16 03:14:53 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-bluetooth@freebsd.org Subject: Re: mouse battery status? 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, 16 Feb 2006 17:34:42 -0000 Maksim Yevmenkin wrote: > Eric, > >> I saw a recent commit regarding bluetooth mouse battery status: >> >> markus 2006-02-10 19:54:17 UTC >> >> FreeBSD src repository (ports committer) >> >> Modified files: >> usr.sbin/bluetooth/bthidcontrol sdp.c Log: >> - Fix attribute id of HIDBatteryPower >> - Fix two typos in comments >> >> Approved by: emax >> >> Revision Changes Path >> 1.2 +5 -5 src/usr.sbin/bluetooth/bthidcontrol/sdp.c >> >> >> That's for -current, but I'm running 6.1-PRERELEASE (fyi). >> >> Is there a way to find the current battery power on a bluetooth >> mouse? Here's a bthidcontrol dump of my Logitech mx900: > > with this patch bthidd(8) should properly detect battery operated > devices. that is one piece of the puzzle > > another piece is that the device should send hid report about its > battery status, i.e. bthidd(8) will use syslog(3) facility to log such > events. > > bthidd(8) understand battery report if page is HUP_MICROSOFT and usage > is 0xfe01 (please see /usr/src/usr.sbin/bluetooth/bthidd/hid.c for > details). > > i do not see page == microsoft and usage == 0xfe01 in the hid > descriptor you have posted. so it seems like your mouse will not send > battery report. Ahh - so only MS mice send the output, or that's just a Microsoft add-in that others use too? I have a microsoft bluetooth mouse at home that I'll try to get the info from. I wonder where the right place to report the battery information is? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------