From owner-freebsd-bluetooth@FreeBSD.ORG Fri Sep 9 18:39:08 2005 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 50ACF16A41F for ; Fri, 9 Sep 2005 18:39:08 +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 AF06243D4C for ; Fri, 9 Sep 2005 18:39:07 +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 j89Id1g29900; Fri, 9 Sep 2005 14:39:01 -0400 Message-ID: <4321D6C4.6050300@savvis.net> Date: Fri, 09 Sep 2005 11:39:00 -0700 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: <431F388E.2010204@centtech.com> <43217D56.3050508@centtech.com> In-Reply-To: <43217D56.3050508@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Bluetooth mouse breaks on -current 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, 09 Sep 2005 18:39:08 -0000 Eric, >> Ok, I wish I could provide better information, but as of the last >> couple of weeks (2 weeks maybe?), I've had this weird problem with my >> bluetooth mouse (which had been working flawlessly until now). Right >> in the middle of use, my mouse will die. It will lose association (or >> whatever it's called). Actually, the mouse seems to be ok, as I've >> tried it on another computer and it works just fine with no changes. >> Once it dies, I have to muck with the bthidcontrol forget, reboot, >> etc, so I'm not sure what I do to fix it, but eventually it will be >> able to query the mouse again and then bthidd will connect and >> everything will be fine. very strange... i do not think i committed any significant change to the bluetooth code in a few months. >> One thing I've noticed, is that now, when doing an l2ping, I get this: >> # l2ping -a mouse >> 44 bytes from mouse seq_no=0 time=59990.660 ms result=0x23 Resource >> temporarily unavailable >> 44 bytes from mouse seq_no=1 time=59990.834 ms result=0x23 Resource >> temporarily unavailable >> 44 bytes from mouse seq_no=2 time=59990.821 ms result=0x23 Resource >> temporarily unavailable >> 44 bytes from mouse seq_no=3 time=59990.885 ms result=0x23 Resource >> temporarily unavailable >> 44 bytes from mouse seq_no=4 time=59990.879 ms result=0x23 Resource >> temporarily unavailable >> >> When my mouse is on or off. Also, pinging other devices, returns >> either the same result, or sometimes it will return ~5000ms returns, >> as if it can ping it, but it is slow - even when the device isn't >> powered on! i think its fine. what probably happens here is that bluetooth thinks there is an active baseband connection to the device, but for what ever reason no data is transferred (flow control issues?). l2ping has default timeout of 60 seconds (time=59990.879) after that msleep() call will timeout and return EAGAIN (35 decimal or 0x23) >> What do I need to do to help diagnose? when this happens please do # hccontrol -n ubt0hci read_connection_list # l2control -a read_connection_list # l2control -a read_channel_list # btsockstat and send me the output. note: means bd_addr of the device connected to the computer, not mouse. > Seems that rebooting my FreeBSD laptop clears it up - so I'm thinking it > has to do with the netgraph/bluetooth modules.. you probably right. if you have time, you could try to revert your src/ tree to, say, month ago and see if you still have the problem. using the few iterations you could find the date after which your mouse no longer works. this would help me a lot to figure out what change caused this. also i would like to know if anybody else has the same issues. thanks, max