From owner-freebsd-bluetooth@FreeBSD.ORG Thu Nov 17 18:00:42 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 C729616A41F for ; Thu, 17 Nov 2005 18:00:42 +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 6331143D45 for ; Thu, 17 Nov 2005 18:00:42 +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 jAHI0cJ22553; Thu, 17 Nov 2005 13:00:39 -0500 Message-ID: <437CC544.6080509@savvis.net> Date: Thu, 17 Nov 2005 10:00:36 -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: <437B2E58.50709@centtech.com> <437B52FF.9040407@savvis.net> <437B5CE2.5000601@centtech.com> <437B93CF.4000403@savvis.net> <437BA490.1010704@centtech.com> <437BAF32.5030502@savvis.net> <437C8547.3060708@centtech.com> In-Reply-To: <437C8547.3060708@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: bluetooth Subject: Re: No route to host for bluetooth devices 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, 17 Nov 2005 18:00:42 -0000 Eric, [...] >>> I have a Sony VGN-A170P laptop, which does indeed include a switch. >>> I verified that the switch was on, and the blue light that indicates >>> the bluetooth is running was lit. The switch also controls the >>> wireless card, which was working fine at the time. I also tried >>> switching it off, waiting until the blue light went away, and then >>> switching it back on, with no change. Only running the bluetooth >>> script helped. >> >> hmm... i'm surprised that switch did not help. on some laptops >> bluetooth button/switch usually makes internal device to >> disconnect/connect. in this case devd(8) will get detach/attach event >> which will trigger 'bluetooth stop/start'. perhaps the switch only >> controls the light? or may be the radio part of the device, i.e. >> device will always stay attached, but the radio is powered off? did >> you try to turn switch off and then bluetooth stop/start? does it give >> you the same timeout error? > > Well, here's more information. First, it's reproducable every time I > boot up. Doing: > /etc/rc.d/bluetooth start ubt0 > does not fix it by itself, but doing: > /etc/rc.d/bluetooth stop ubt0 > /etc/rc.d/bluetooth start ubt0 > does. now, i really puzzled. because device fails on to start at boot time, /etc/rc.d/bluetooth should have backed out and removed all netgraph nodes it tried to create (except device node and socket nodes). so i do not understand why do you need to do 'stop' before 'start'. 'stop' should really be a noop in this case. could you please do the following 1) do a fresh boot with bluetooth device turned on 2) after system boots (and bluetooth device failed to start) please run as root # ngctl li > I also tried a fresh boot, then switching the bluetooth off, waiting > about 20 seconds, and flipping it back on, which *did* in fact work. I > may not have waited long enough the previous time that failed. ah, ok. could you please check the /var/log/messages file to see if you get a message saying ubt0 is detached/attached? > Oddly enough, I never had a problem before now. I previously started > the bluetooth stuff from rc.local. The only things I have changed are: > updated to latest -current, removed inet6 from kernel, rebuilt > world/kernel, switched to new rc.d bluetooth scripts. I can try > anything you like. one thing you could try to do is to comment out ubt0 section in /etc/devd.conf and go back to old style rc.bluetooth script to see if you have the same problem. if you do - then its not bluetooth related, if you dont - then its related to new bluetooth rc.d scripts. thanks, max > > Eric > > >