From owner-freebsd-bluetooth@FreeBSD.ORG Sat Nov 21 19:07:29 2009 Return-Path: Delivered-To: bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD789106566C for ; Sat, 21 Nov 2009 19:07:29 +0000 (UTC) (envelope-from comp.john@googlemail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id 675928FC13 for ; Sat, 21 Nov 2009 19:07:29 +0000 (UTC) Received: by ewy26 with SMTP id 26so697702ewy.3 for ; Sat, 21 Nov 2009 11:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=81MOG9NHFbhZSxCfKW/9Itv+36IjNbxzVqW55kqVc/0=; b=dvpaudF9mliWu3lz23zgsp072NkwG/31ZjkmtQAdLDUVbo0gZXeQmxv+v2dI+cJ0V0 pujeH8fhOMTbAMTHAaR5i5kNL9ghIWyrO6eUfo1orqWPKIUFPm6ypgmjmzOdl2HGjUZM LtqIL3CJUAb5zvaGctN4TZ3VyShesGWwZE/yY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=cCAgzF5rkZkzgh2RkGpoZt3eFGv0g8Lipp4omi/8pmu04/enTVtXqhGabfmhl+Kfdl j7o2BNnRJYoUD7EsSu7VHmPECQhIGh9dkSUTmdQpLE6VtgwwH6Ia/yBLBKnvN1tzgXIE AES+sozVUGv98G01dNyMLLiIYC0rsppUdFSYI= Received: by 10.213.0.139 with SMTP id 11mr1651082ebb.36.1258829019550; Sat, 21 Nov 2009 10:43:39 -0800 (PST) Received: from potato (potato.growveg.org [62.49.247.163]) by mx.google.com with ESMTPS id 5sm275503eyf.0.2009.11.21.10.43.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Nov 2009 10:43:38 -0800 (PST) Date: Sat, 21 Nov 2009 18:43:36 +0000 From: John To: bluetooth@freebsd.org Message-ID: <20091121184335.GA2008@potato> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Problems getting the bluetooth stack to start 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: Sat, 21 Nov 2009 19:07:29 -0000 Hello list, my system: 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #1: Sat Nov 21 16:55:14 GMT 2009 root@potato:/usr/src/sys/amd64/compile/POTATO amd64 The kernel is generic apart from ehci being commented out. Sources cvsupped earlier today from cvsup.uk.freebsd.org I'm trying to get my sony erikson T610 to work with a nexus bluemicro pro dongle on 7.2-R. The galling thing is, I got it to work once, but it was late and I forgot how. I can't get the bluetooth stack to start, and I'm following the instructins as per the handbook Firstly, the small size of the device means that it is very awkward to pull the dongle out once it's pushed in. When restarting the computer, is it sufficient to reboot(8) then power the machine off, wait a few seconds then power it back up? I mean does this properly reset the dongle, or does it truly have to be pulled out and pushed back in for the system to re-read it? I've tried various suggestions while googling trying to find the answer. One suggestion (with a different device) was to disable ehci and recompile the kernel, which I've done. No difference. Another was to stop the bluetooth script before starting it: potato# /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 potato# /etc/rc.d/bluetooth stop ubt0 potato# /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 I find that when the system boots up, only one bluetooth-related kernel module is loaded: potato# kldstat Id Refs Address Size Name 1 9 0xffffffff80100000 768b98 kernel 2 1 0xffffffff80869000 7128 geom_concat.ko 3 1 0xffffffff80871000 9808 ng_ubt.ko 4 2 0xffffffff8087b000 14e08 netgraph.ko 5 1 0xffffffff80a22000 978 pflog.ko 6 1 0xffffffff80a23000 2ae8c pf.ko 7 1 0xffffffff80a4e000 aa7a fuse.ko 8 1 0xffffffff80a59000 82e accf_http.ko potato# ngctl li There are 1 total nodes: Name: ngctl1196 Type: socket ID: 00000001 Num hooks:0 When I try to start the stack, this happens: potato# /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 potato# /etc/rc.d/bluetooth stop ubt0 potato# /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 let's do a kldstat again: potato# kldstat Id Refs Address Size Name 1 14 0xffffffff80100000 768b98 kernel 2 1 0xffffffff80869000 7128 geom_concat.ko 3 1 0xffffffff80871000 9808 ng_ubt.ko 4 6 0xffffffff8087b000 14e08 netgraph.ko 5 1 0xffffffff80a22000 978 pflog.ko 6 1 0xffffffff80a23000 2ae8c pf.ko 7 1 0xffffffff80a4e000 aa7a fuse.ko 8 1 0xffffffff80a59000 82e accf_http.ko 9 1 0xffffffff80a5a000 19ba ng_socket.ko 10 4 0xffffffff80a5c000 89a ng_bluetooth.ko 11 1 0xffffffff80a5d000 8b1a ng_hci.ko 12 1 0xffffffff80a66000 b498 ng_l2cap.ko 13 1 0xffffffff80a72000 12c9e ng_btsocket.ko loads of stuff now. potato# ngctl li There are 4 total nodes: Name: btsock_l2c_raw Type: btsock_l2c_raw ID: 00000003 Num hooks: 0 Name: btsock_hci_raw Type: btsock_hci_raw ID: 00000002 Num hooks: 0 Name: btsock_l2c Type: btsock_l2c ID: 00000004 Num hooks: 0 Name: ngctl1781 Type: socket ID: 00000012 Num hooks: 0 but still I cannot get the stack to work! I have also tried commenting out the ubt* stuff in devd.conf and rebooting, no difference. The little light on the dongle flashes merrily, but if the stack won't start I won't be able to do anything. Can anyone help please? -- John - comp dot john at googlemail dot com OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop GPG: 0xF08A33C5