From owner-freebsd-bluetooth@FreeBSD.ORG Tue Jun 21 22:35:38 2005 Return-Path: X-Original-To: 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 9AACE16A41C for ; Tue, 21 Jun 2005 22:35:38 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A71243D1D for ; Tue, 21 Jun 2005 22:35:38 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id A84B33BF4A; Tue, 21 Jun 2005 17:35:37 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01564-01-94; Tue, 21 Jun 2005 17:35:37 -0500 (CDT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mailgate1b.savvis.net (Postfix) with ESMTP id 739603BE22; Tue, 21 Jun 2005 17:35:37 -0500 (CDT) Received: from s228130hz1ew031.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 21 Jun 2005 17:35:34 -0500 Received: from [10.254.186.111] ([64.14.1.106]) by s228130hz1ew031.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 21 Jun 2005 17:35:29 -0500 Message-ID: <42B89630.2070403@savvis.net> Date: Tue, 21 Jun 2005 15:35:28 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vladimir Grebenschikov References: <1119297124.1045.11.camel@localhost> <42B72DC4.2090104@savvis.net> <1119334445.972.17.camel@localhost> <42B84418.2060409@savvis.net> <1119392066.1266.15.camel@localhost> In-Reply-To: <1119392066.1266.15.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Jun 2005 22:35:29.0826 (UTC) FILETIME=[87205820:01C576B1] X-Virus-Scanned: amavisd-new at savvis.net Cc: bluetooth Subject: Re: Problem with Logitech Mx900 again - psm strikes again - SOLVED 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: Tue, 21 Jun 2005 22:35:38 -0000 Vladimir, [...] >>so, could you please double check your /etc/bluetooth/bthidd.conf file >>and make sure bthidd(8) uses the correct config. > > It strikes again. I was pretty sure, that bug was fixed last time. > Manual changing psm in bthidd.conf fix my problem. good > I remember I've tested code with your patch and even send you ok notice > (PR misc/76107). > > I was not touch bthidd.conf because I was pretty sure that it has valid > values. > I am sure that trying to make mouse work I've done > # bthidcontrol -a mouse > /etc/bluetooth/bthidd.conf.tmp > # diff /etc/bluetooth/bthidd.conf{,.tmp} > > and got no difference. > > But it strikes again. no problem, dont worry about it :) > Ok, I will try all cycle from scratch. > > Just reconnect mouse to cradle - Ok > Then reset mouse and run bthidcontrol query -> psm 0x13 > Then reconnect directly to bthidd - Ok great > I have only idea why it happens - I have used very old binary of > bthidcontrol installed while compare/rebuild bthidd.conf (with bug, > unfortunately it was just overwritten by fresh build). > /probably one should attach build+install of bthid* binaries to world ?/ well, bthidd(8) is not complete yet. it missing support for keyboard/keypad. i'm working on the kbdmux now and when i'm done i will add missing support and connect it to the build. bthidcontrol(8) could be added to the build, but it is not very useful without bthidd(8). > Looks like there was hardware glitch (when win and freebsd connection > was broken over night, probably out of power in battaries, it was) > After that I've tried to restore mouse and replace bthidd.conf with > broken version and it stop working. could be, but it still does not explain why it did not work with windows. >>i suspect there might be another bug in bthidd(8), so if you could >>please try to run bthidd(8) under debugger and try to examine internal >>configuration structures after bthidd(8) parses the config file. > > Looks like bthidd is ok in this case. good >>i also attached a patch that renames global variable to avoid name >>collision with the local variables. i do not expect it to fix your >>problem, but please try it anyway. > > I have tried - it works ok (without it too), only issue - first chunk of patch - should be removed before apply. thanks. i think i will commit it after freeze is over. this is something that needs to be fixed anyway. >>>It looks like hardware problem for me (over one night both OSes stop >>>stop seen mouse) no reset was initiated, cradle was far-far away from >>>place where it happens. But, probably there is software solution. >> >>lets not blame the hardware just yet :) > > Yes, it was software. it usually is :) > But still It is not clean for me two issues: > a) why mouse stops work under WinXP (it works before, and stop to work at the same night as under freebsd) > b) why it happens (no suspend/hibernate was initiated) cant help you here, sorry :) must have been sun flare or something :) thanks, max