LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 04-19-2011, 03:42 PM   #1
translator1111
Member
 
Registered: Jun 2010
Location: Slovakia
Distribution: Ubuntu 11.04; SLAX 6.0; ConnochaetOS 0.9. Natty chip: VT1708S
Posts: 33
Blog Entries: 1

Rep: Reputation: 1
blueZ does not connect my headset NOKIA BH-104


7/04/2011
in ubuntuforums.org:
Failed to find Bluetooth netlink family
Dear all,
In my PC I have 2 hard disk. In one I have Ubuntu 10.04 and in the other Ubuntu 10.10.
I have a bluetooth adapter ID 0a12:0001 Cambridge Silicon Radio in one USB port.
When I am looged in Ubuntu 10.10 it works perfectly. The adapter pairs and connects to my Headset headseat NOKIA BH-104 and I can listen rythmbox from a different room.

When I logg in Ubuntu 10.04 the bluetooth adapter ID 0a12:0001 Cambridge Silicon Radio is recognized but it is not able to pair to my NOKIA BH-104.

Last night I upgrade my Ubuntu 10.04 to Ubuntu 10.19 with the hope that the bluetooth adapter ID 0a12:0001 Cambridge Silicon Radio will work well,

However is not pairing.

My question is: if I go to the configuration file of the Ubuntu 10.10 that is nor working correctly and replace it by the other configuration file that is working, would it work?

the second question is how to do this?

The third question where is the configuration file?

I believe that the configuration file is somewhere in /etc/bluetooth/... but which of them is it the correct
audio.conf input.conf main.conf network.conf rfcomm.conf serial.conf

thank you in advance for your help

I did this following the instuctions in this howto:
https://help.ubuntu.com/community/BluetoothSetup

sudo cp /etc/default/bluetooth.dpkg-bak /etc/default/bluetooth

sudo nano /etc/default/bluetooth

Locate line:

HIDD_ENABLED=0

Change it to:

HIDD_ENABLED=1

Look in the same file for a line close to:

HIDD_OPTIONS="--master --server"

{i} Leave the "--master" command or remove it, it depends on the device. If you have problems with "--master", remove it or vice versa.

Add additional "--connect" arguments for the device you want to connect to at startup:

HIDD_OPTIONS="--connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --server"
I substitute the aa:bb:cc:dd:ee:ff by 00:15:83:3D:0A:57
Save and add HIDP to /etc/modules:

echo hidp | sudo tee -a /etc/modules

Your Bluetooth devices should now connect at startup.

19/04/2011
dmesaage:
20.416340] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Apr 19 21:20:42 ignacio-desktop kernel: [ 20.416343] Bluetooth: BNEP filters: protocol multicast
Apr 19 21:20:42 ignacio-desktop kernel: [ 20.420781] Bluetooth: SCO (Voice Link) ver 0.6
Apr 19 21:20:42 ignacio-desktop kernel: [ 20.420784] Bluetooth: SCO socket layer initialized
Apr 19 21:20:42 ignacio-desktop kernel: [ 20.670779] Bluetooth: RFCOMM TTY layer initialized
Apr 19 21:20:42 ignacio-desktop kernel: [ 20.670785] Bluetooth: RFCOMM socket layer initialized
Apr 19 21:20:42 ignacio-desktop kernel: [ 20.670787] Bluetooth: RFCOMM ver 1.11
syslog:
Apr 19 21:26:31 ignacio-desktop bluetoothd[1232]: link_key_request (sba=00:15:83:3D:0A:57, dba=00:1C:EF:E1:B2:A9)
Apr 19 21:26:31 ignacio-desktop bluetoothd[1232]: Connection refused (111)
daemonlog:
Apr 19 21:26:31 ignacio-desktop bluetoothd[1232]: link_key_request (sba=00:15:83:3D:0A:57, dba=00:1C:EF:E1:B2:A9)
Apr 19 21:26:31 ignacio-desktop bluetoothd[1232]: Connection refused (111)


can anyone help me?
 
Old 04-19-2011, 04:44 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
The information in that guide is outdated, and only applies to an older (and no-longer supported) version of BlueZ. You should be using a proper BlueZ 4.x configuration tool like Blueman.
 
Old 04-27-2011, 03:49 PM   #3
translator1111
Member
 
Registered: Jun 2010
Location: Slovakia
Distribution: Ubuntu 11.04; SLAX 6.0; ConnochaetOS 0.9. Natty chip: VT1708S
Posts: 33
Blog Entries: 1

Original Poster
Rep: Reputation: 1
dear all,
trying to follow the instructions in ubuntu help:https://help.ubuntu.com/community/BluetoothHeadset
ignacio@ignacio-desktop:~$ dmesg | grep "Blue*"
[ 18.456193] Bluetooth: Core ver 2.15
[ 18.456238] Bluetooth: HCI device and connection manager initialized
[ 18.456240] Bluetooth: HCI socket layer initialized
[ 18.521890] Bluetooth: L2CAP ver 2.14
[ 18.521894] Bluetooth: L2CAP socket layer initialized
[ 18.545131] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
ignacio@ignacio-desktop:~$ hcitool scan
Device is not available: No such device
ignacio@ignacio-desktop:~$ hcitool scan
Device is not available: No such device
ignacio@ignacio-desktop:~$ hcitool scan
Scanning ...
00:1C:EF:E1:B2:A9 Nokia BH-104
ignacio@ignacio-desktop:~$ sudo gedit ~/.asoundrc
[sudo] password for ignacio:
ignacio@ignacio-desktop:~$ sudo hciconfig hci0 voice 0x0060
ignacio@ignacio-desktop:~$ pactl load-module module-alsa-sink device=btheadset
Falla: Falló la inicialización del módulo
ignacio@ignacio-desktop:~$ dmesg | grep "Blue*"
[ 18.456193] Bluetooth: Core ver 2.15
[ 18.456238] Bluetooth: HCI device and connection manager initialized
[ 18.456240] Bluetooth: HCI socket layer initialized
[ 18.521890] Bluetooth: L2CAP ver 2.14
[ 18.521894] Bluetooth: L2CAP socket layer initialized
[ 18.545131] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 198.538824] Bluetooth: Generic Bluetooth USB driver ver 0.6
[ 198.835115] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 198.835123] Bluetooth: BNEP filters: protocol multicast
[ 198.931042] Bluetooth: SCO (Voice Link) ver 0.6
[ 198.931049] Bluetooth: SCO socket layer initialized
[ 199.203860] Bluetooth: RFCOMM TTY layer initialized
[ 199.203872] Bluetooth: RFCOMM socket layer initialized
[ 199.203877] Bluetooth: RFCOMM ver 1.11
ignacio@ignacio-desktop:~$ pactl load-module module-alsa-sink device=btheadset
Falla: Falló la inicialización del módulo
ignacio@ignacio-desktop:~$ pactl load-module module-alsa-source device=btheadset
Falla: Falló la inicialización del módulo
ignacio@ignacio-desktop:~$ aplay -D btheadset -f s16_le /usr/share/sounds/ubuntu/stereo/dialog-question.wav
/usr/share/sounds/ubuntu/stereo/dialog-question.wav: No existe el fichero o el directorio
ignacio@ignacio-desktop:~$ aplay -D btheadset -f s16_le /usr/share/sounds/alsa/Front_Center.wav
Sonando WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Ratio 48000 Hz, Mono
Advertencia: tasa inexacta (solicitada = 48000Hz, conseguida = 8000Hz)
por favor, intente conectar el plugin (-Dplug:btheadset)
ALSA lib audio/pcm_bluetooth.c:1607audioservice_expect) BT_START_STREAM failed : Conseguido(0)
ALSA lib audio/pcm_bluetooth.c:1566audioservice_recv) Too short (1 bytes) IPC packet from bluetoothd
aplay: set_params:1116: Imposible instalar los parámetros de hw:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 2000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 8000
TICK_TIME: [0 0]
ignacio@ignacio-desktop:~$ dmesg | grep "Blue*"[ 18.456193] Bluetooth: Core ver 2.15
[ 18.456238] Bluetooth: HCI device and connection manager initialized
[ 18.456240] Bluetooth: HCI socket layer initialized
[ 18.521890] Bluetooth: L2CAP ver 2.14
[ 18.521894] Bluetooth: L2CAP socket layer initialized
[ 18.545131] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 198.538824] Bluetooth: Generic Bluetooth USB driver ver 0.6
[ 198.835115] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 198.835123] Bluetooth: BNEP filters: protocol multicast
[ 198.931042] Bluetooth: SCO (Voice Link) ver 0.6
[ 198.931049] Bluetooth: SCO socket layer initialized
[ 199.203860] Bluetooth: RFCOMM TTY layer initialized
[ 199.203872] Bluetooth: RFCOMM socket layer initialized
[ 199.203877] Bluetooth: RFCOMM ver 1.11
ignacio@ignacio-desktop:~$



I can compare with the output of dmesg of the other adapter working under Ubuntu 10.10:
Apr 17 23:13:10 ignacio-desktop kernel: [ 23.697298] Bluetooth: L2CAP ver 2.14
Apr 17 23:13:10 ignacio-desktop kernel: [ 23.697302] Bluetooth: L2CAP socket layer initialized
Apr 17 23:13:10 ignacio-desktop kernel: [ 23.834858] [drm] nouveau 0000:00:0d.0: Allocating FIFO number 1
Apr 17 23:13:10 ignacio-desktop kernel: [ 23.835112] [drm] nouveau 0000:00:0d.0: nouveau_channel_alloc: initialised FIFO 1
Apr 17 23:13:10 ignacio-desktop kernel: [ 24.006919] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Apr 17 23:13:10 ignacio-desktop kernel: [ 24.006922] Bluetooth: BNEP filters: protocol multicast
Apr 17 23:13:11 ignacio-desktop kernel: [ 24.410354] Bluetooth: SCO (Voice Link) ver 0.6
Apr 17 23:13:11 ignacio-desktop kernel: [ 24.410357] Bluetooth: SCO socket layer initialized
Apr 17 23:13:12 ignacio-desktop kernel: [ 25.138501] Bluetooth: RFCOMM TTY layer initialized
Apr 17 23:13:12 ignacio-desktop kernel: [ 25.138510] Bluetooth: RFCOMM socket layer initialized
Apr 17 23:13:12 ignacio-desktop kernel: [ 25.138512] Bluetooth: RFCOMM ver 1.11
Apr 17 23:13:25 ignacio-desktop pulseaudio[1448]: main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /tmp/dbus-ZznGwB4C02: Conexión rehusada
syslog:
Apr 17 23:13:10 ignacio-desktop kernel: [ 23.697298] Bluetooth: L2CAP ver 2.14
Apr 17 23:13:10 ignacio-desktop kernel: [ 23.697302] Bluetooth: L2CAP socket layer initialized
Apr 17 23:13:10 ignacio-desktop bluetoothd[1161]: Starting experimental netlink support
Apr 17 23:13:10 ignacio-desktop bluetoothd[1161]: Failed to find Bluetooth netlink family
Apr 17 23:13:10 ignacio-desktop bluetoothd[1161]: Failed to init netlink plugin
Apr 17 23:13:10 ignacio-desktop kernel: [ 23.834858] [drm] nouveau 0000:00:0d.0: Allocating FIFO number 1
Apr 17 23:13:10 ignacio-desktop kernel: [ 23.835112] [drm] nouveau 0000:00:0d.0: nouveau_channel_alloc: initialised FIFO 1
Apr 17 23:13:10 ignacio-desktop kernel: [ 24.006919] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Apr 17 23:13:10 ignacio-desktop kernel: [ 24.006922] Bluetooth: BNEP filters: protocol multicast
Apr 17 23:13:11 ignacio-desktop bluetoothd[1161]: HCI dev 0 registered
Apr 17 23:13:11 ignacio-desktop kernel: [ 24.410354] Bluetooth: SCO (Voice Link) ver 0.6
Apr 17 23:13:11 ignacio-desktop kernel: [ 24.410357] Bluetooth: SCO socket layer initialized
Apr 17 23:13:11 ignacio-desktop bluetoothd[1161]: HCI dev 0 up
Apr 17 23:13:11 ignacio-desktop bluetoothd[1161]: Starting security manager 0
Apr 17 23:13:12 ignacio-desktop bluetoothd[1161]: ioctl(HCIUNBLOCKADDR): Invalid argument (22)
Apr 17 23:13:12 ignacio-desktop kernel: [ 25.138501] Bluetooth: RFCOMM TTY layer initialized
Apr 17 23:13:12 ignacio-desktop kernel: [ 25.138510] Bluetooth: RFCOMM socket layer initialized
Apr 17 23:13:12 ignacio-desktop kernel: [ 25.138512] Bluetooth: RFCOMM ver 1.11
Apr 17 23:13:12 ignacio-desktop bluetoothd[1161]: Adapter /org/bluez/1160/hci0 has been enabled

can anybody tell me what else to set correctly in order to make it work under 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686 GNU/Linux?

Last edited by translator1111; 04-27-2011 at 03:50 PM. Reason: mispelling
 
Old 04-29-2011, 01:39 PM   #4
translator1111
Member
 
Registered: Jun 2010
Location: Slovakia
Distribution: Ubuntu 11.04; SLAX 6.0; ConnochaetOS 0.9. Natty chip: VT1708S
Posts: 33
Blog Entries: 1

Original Poster
Rep: Reputation: 1
Connection refused (111) bluetooth
Dear all,
I have two hard disks in my computer and 2 ubuntus.
First hard disk main 165 GB has ubuntu 11.04
Second hard disk 80 GB has ubuntu 10.10
+ and one adapter dongle ID 0a12:0001 Cambridge Silicon Radio. specification V.2.0 Compliant.
I want to use my adapter to connect to bluetooth headset Nokia BH-104 which I want to be the output of my computer sound

In First hard disk 165 GB gnome-bluetooth start when logging on and recognizes my bluetooth headset and when trying to connect says: "Connection refused (111)"
Code:

bluetoothd[1312]: link_key_request (sba=00:15:83:3D:0A:57, dba=00:1C:EF:E1:B2:A9)
bluetoothd[1312]: Connection refused (111)

In Second hard disk 80 GB gnome-bluetooth start when loggin on recognizes my bluetooth headset and when trying to connect says:
Code:

bluetoothd[1161]: HCI dev 0 up
bluetoothd[1161]: Starting security manager 0
bluetoothd[1161]: ioctl(HCIUNBLOCKADDR): Invalid argument (22)
[ 25.138501] Bluetooth: RFCOMM TTY layer initialized
[ 25.138510] Bluetooth: RFCOMM socket layer initialized
[ 25.138512] Bluetooth: RFCOMM ver 1.11
bluetoothd[1161]: Adapter /org/bluez/1160/hci0 has been enabled

I have tried the instructions in http://help.ubuntu.com/community/BluetoothHeadset

with this result and no success:
Code:

~$ pactl load-module module-alsa-sink device=btheadset
Falla: Falló la inicialización del módulo
~$ pactl load-module module-alsa-source device=btheadset
Falla: Falló la inicialización del módulo
~$ aplay -D btheadset -f s16_le /usr/share/sounds/ubuntu/stereo/dialog-question.wav
/usr/share/sounds/ubuntu/stereo/dialog-question.wav: No existe el fichero o el directorio
~$ aplay -D btheadset -f s16_le /usr/share/sounds/alsa/Front_Center.wav
Sonando WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Ratio 48000 Hz, Mono
Advertencia: tasa inexacta (solicitada = 48000Hz, conseguida = 8000Hz)
por favor, intente conectar el plugin (-Dplug:btheadset)
ALSA lib audio/pcm_bluetooth.c:1607audioservice_expect) BT_START_STREAM failed : Conseguido(0)
ALSA lib audio/pcm_bluetooth.c:1566audioservice_recv) Too short (1 bytes) IPC packet from bluetoothd
aplay: set_params:1116: Imposible instalar los parámetros de hw:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 2000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 8000
TICK_TIME: [0 0]

My question is what output should give it to you so you can help me to make my bluetooth connect to my headset
 
Old 05-10-2011, 05:12 PM   #5
translator1111
Member
 
Registered: Jun 2010
Location: Slovakia
Distribution: Ubuntu 11.04; SLAX 6.0; ConnochaetOS 0.9. Natty chip: VT1708S
Posts: 33
Blog Entries: 1

Original Poster
Rep: Reputation: 1
Dear all,
I managed to connect my headset nokia Bh-104 to my dongle adpater blootooth,
here is how:
First I removed the last line of the file that I have added to /etc/modules:
Code:
sudo nano modules
there was hidp at the end and I deleted it and saved it
Second
I deleted the hidden file ./asoundrc
sudo rm ./asoundrc
Third,
I uninstall gnome-bluetooth manager:
Code:
sudo apt-get purge gnome-bluetooth
Fourth
I install again the gnome-bluetooth manager:
Code:
sudo apt-get install gnome-bluetooth

I know that is paired because my headset made a beep and when I go to my manager-bluetooth only gives me the possibility to unconnect
however, now that they are paired and connected
neither pavucontrol or alsa recognize the headset so I cannot use it.
I am aware of a bug registered in launchpad
and when I was about to install gnome-bluetooth manager Ubuntu software center warned me that does not work in 11.04.
 
  


Reply

Tags
bluetoothd, headset


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up BlueZ with a passkey/PIN (to be used as headset for iPhone) jhaagsma Linux - Wireless Networking 13 04-09-2014 12:21 PM
Bluetooth headset, Alsa - no soundcard in /proc/asound/cards (but headset works) simopal6 Linux - Hardware 1 04-29-2009 10:07 AM
blueZ does not respond to OBEX: Connect rsp(f): shitijsah Linux - Newbie 1 03-18-2009 10:50 AM
Connect Bluetooth headset with RHEL scbops Red Hat 1 01-12-2009 11:48 AM
how do i connect my blue tooth headset to Ubuntu, it is unable to connect. salfuser Linux - Hardware 2 01-12-2009 11:28 AM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration