From owner-freebsd-bluetooth@FreeBSD.ORG Fri Feb 17 01:10:58 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 0D3B016A420 for ; Fri, 17 Feb 2006 01:10:57 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9858F43D45 for ; Fri, 17 Feb 2006 01:10:57 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id k1H1AtM20606; Thu, 16 Feb 2006 20:10:55 -0500 Message-ID: <43F5229C.8050106@savvis.net> Date: Thu, 16 Feb 2006 17:10:52 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <43F34314.7030606@centtech.com> <43F3688B.8060700@savvis.net> <43F4B7AA.5030000@centtech.com> In-Reply-To: <43F4B7AA.5030000@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 17 Feb 2006 01:10:58 -0000 Eric, >>> 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? do not know. this code in bthidd(8) was written by looking at msdn docs (i think). > I have a microsoft bluetooth mouse at home that I'll try to get the info > from. ok. let us know about the results. > I wonder where the right place to report the battery information is? like i said, right now it goes to /var/log/messages. info, notice and warning levels are used for different battery states (ok, low, very low). if this is not the right place, please let me know where do you want it to be? thanks, max