From owner-freebsd-bluetooth@FreeBSD.ORG Sun Nov 22 02:06:23 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2F52106566C for ; Sun, 22 Nov 2009 02:06:23 +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 4E5DD8FC13 for ; Sun, 22 Nov 2009 02:06:22 +0000 (UTC) Received: by ewy26 with SMTP id 26so883175ewy.3 for ; Sat, 21 Nov 2009 18:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:resent-from:resent-date :resent-message-id:resent-to:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=81MOG9NHFbhZSxCfKW/9Itv+36IjNbxzVqW55kqVc/0=; b=xWGycOeun5yWR1YHBj16lkkY+W6M5FaJdZ9hMFULtRJMJwoAoDoi91PI+NnSPtcKOk rHPfP66admqc0vRWiPd1YpbH1CKIgOSc7cAnkKA0L1+uDRAMe1CJ0S/uO3BJvaqDlSOY 8oVqGv0HMx3maWFHK574LfWBD+jWYn5btD2Ko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=resent-from:resent-date:resent-message-id:resent-to:date:from:to :subject:message-id:mime-version:content-type:content-disposition :user-agent; b=e9N0OpVh/nVHhJc1vzORIkOmcdqlL0NoLXBkOtsPv1rkBOiZNkmxIa/2vGXyfPlZCn 8aBpemcXT2xnhRfUp2iU3miHEvlwZMokLx+LsJuudLGqcooZ/zOuZ3Xzg0IRQZR5T/oi pzUxseoD11Q7rLjSWrSq/hmBVgVdWRcWHlaHg= Received: by 10.213.23.88 with SMTP id q24mr1973195ebb.13.1258853663648; Sat, 21 Nov 2009 17:34:23 -0800 (PST) Received: from potato (potato.growveg.org [62.49.247.163]) by mx.google.com with ESMTPS id 10sm712149eyd.45.2009.11.21.17.34.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Nov 2009 17:34:23 -0800 (PST) Resent-From: John Resent-Date: Sun, 22 Nov 2009 01:34:19 +0000 Resent-Message-ID: <20091122013419.GA25773@potato> Resent-To: freebsd-bluetooth@freebsd.org 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: Sun, 22 Nov 2009 02:06:23 -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