LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-01-2013, 11:36 PM   #1
rng
Member
 
Registered: Aug 2011
Posts: 747

Rep: Reputation: 23
Bluetooth usb dongle problem


I am using a bluetooth usb dongle on Debian-Testing with systemd, bluez and blueman installed. When I connect the usb dongle, it does not automatically get connected. It does not do so even after following commands:
Code:
sudo /etc/init.d/bluetooth start
or:
Code:
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
It get connected properly (without any commands) on rebooting with bluetooth usb dongle attached. Is there any way I can use this dongle without rebooting the computer? Thanks for your help.
 
Old 01-02-2013, 01:56 AM   #2
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
Cool

run the following command as root:
Code:
hidd --search
 
Old 01-02-2013, 02:01 AM   #3
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
the command hidd is the command that will solve your problem if you put it in the right place during boot
 
Old 01-02-2013, 04:55 AM   #4
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Apparently hidd command has been deprecated. I cannot find it on my system.
 
Old 01-02-2013, 05:06 AM   #5
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
sorry i didn't know that..
 
Old 01-02-2013, 05:10 AM   #6
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
Wink

the following command will be helpful after a reboot with the dongle attached
Code:
dmesg | grep bluetooth
 
Old 01-02-2013, 05:45 AM   #7
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Following is the output on attaching usb dongle on running system:
Code:
$ dmesg | grep blue
[  230.387511] Bluetooth: Core ver 2.16
[  230.387540] Bluetooth: HCI device and connection manager initialized
[  230.387544] Bluetooth: HCI socket layer initialized
[  230.387547] Bluetooth: L2CAP socket layer initialized
[  230.387557] Bluetooth: SCO socket layer initialized
[  230.407885] Bluetooth: Generic Bluetooth USB driver ver 0.6
[  230.581060] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  230.581065] Bluetooth: BNEP filters: protocol multicast
[  230.589754] Bluetooth: RFCOMM TTY layer initialized
[  230.589766] Bluetooth: RFCOMM socket layer initialized
[  230.589770] Bluetooth: RFCOMM ver 1.11
And it is identical if the command is given after rebooting with dongle attached.

Last edited by rng; 01-02-2013 at 05:52 AM.
 
Old 01-02-2013, 10:37 AM   #8
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I found that as soon as bluetooth usb dongle is inserted, "bluetoothd --udev" is started. I have to give command "killall bluetoothd" before issuing command: "sudo systemctl start bluetooth.service" for bluetooth to work properly. How can I prevent bluetoothd from starting automatically as soon as usb dongle is inserted?
 
Old 01-02-2013, 11:03 AM   #9
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
install rcconf
run it as root
 
Old 01-02-2013, 11:40 AM   #10
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
rcconf does not help since "bluetooth --udev" is not starting at bootup but later as soon as usb dongle is plugged in.
 
Old 01-08-2013, 11:10 PM   #11
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Now the bluetooth is working and I am able to receive files from mobile phone but cannot send files to it. The dialog box states "sending.." but it is not able to send and after about 30 seconds there is an error message dialog box stating that the file could not be sent. How can I troubleshoot this?

I have following packages related to bluetooth installed (output from wajig package manager):
Code:
Package                 Installed       Previous        Now             State
=======================-===============-===============-===============-=====
bluedevil           	1.2.3-1        	1.2.3-1        	1.2.3-1        	install
blueman             	1.23-1         	1.23-1         	1.23-1         	install
bluetooth           	4.99-2         	4.99-2         	4.99-2         	install
bluez               	4.99-2         	4.99-2         	4.99-2         	install
bluez-cups          	4.99-2         	4.99-2         	4.99-2         	install
bluez-gstreamer     	4.99-2         	4.99-2         	4.99-2         	install
gir1.2-gnomebluetooth-1.0	3.4.2-1        	3.4.2-1        	3.4.2-1        	install
gnome-bluetooth     	3.4.2-1        	3.4.2-1        	3.4.2-1        	install
libgnome-bluetooth10	3.4.2-1        	3.4.2-1        	3.4.2-1        	install
obex-data-server    	0.4.5-1+b3     	0.4.5-1+b3     	0.4.5-1+b3     	install

Last edited by rng; 01-09-2013 at 03:35 AM.
 
Old 01-30-2013, 11:58 AM   #12
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I am getting following error:
Code:
Connection to bluez failed.

Bluez daemon is not running, blueman-manager cannot continue. 
This probably means that there were no bluetooth adapters detected or bluetooth daemon was not started. 
<close-button>
How should I proceed. Thanks for your help.
 
Old 04-15-2013, 02:56 AM   #13
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I am still not able to solve this problem. I am running Debian wheezy and it is otherwise working very well except the bluetooth with usb dongle, for which I often have to boot into another distro on the same machine, where it works perfectly. Normally there is no error message but today I got this error message at bootup:
Code:
 
Failed to apply network settings: 

org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus) 

You might not be able to connect to the Bluetooth network via this machine
What does it mean and how can I solve this? Thanks for your help.
 
Old 04-17-2013, 11:15 PM   #14
jACK-ah
LQ Newbie
 
Registered: Feb 2013
Posts: 27

Rep: Reputation: Disabled
sory dont know thats something unusall prb you are having
 
Old 04-20-2013, 10:11 AM   #15
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
There has been a change suddenly. Now when I attach the bluetooth dongle, nothing happens. The bluetooth icon does not appear on the system tray. I run 'sudo systemctl start bluetooth.service' and it finishes without any error. The command 'systemctl status bluetooth.service' shows that the service is active and running. But when I run blueman application, no device is seen. The dmesg command shows that the dongle is being detected:
Code:
[   96.827371] Bluetooth: Core ver 2.16
[   96.827403] NET: Registered protocol family 31
[   96.827408] Bluetooth: HCI device and connection manager initialized
[   96.827413] Bluetooth: HCI socket layer initialized
[   96.827417] Bluetooth: L2CAP socket layer initialized
[   96.827427] Bluetooth: SCO socket layer initialized
[   96.839737] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   96.839741] Bluetooth: BNEP filters: protocol multicast
[   96.884691] Bluetooth: RFCOMM TTY layer initialized
[   96.884701] Bluetooth: RFCOMM socket layer initialized
[   96.884705] Bluetooth: RFCOMM ver 1.11
I cannot understand whether the bluetooth dongle has gone bad or there is some software problem.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with connecting USB Bluetooth Dongle to icecube (MPC5200) kannath Debian 1 02-09-2007 05:36 AM
Bluetooth USB dongle NDR008 Linux - Hardware 1 01-07-2007 06:52 PM
USB dongle Bluetooth problem hobz Linux - Hardware 4 01-14-2006 06:20 PM
usb bluetooth dongle zbrox Linux - Hardware 1 04-28-2005 04:09 AM
Bluetooth USB Dongle vivekiyer Linux - Software 0 08-22-2003 06:36 AM


All times are GMT -5. The time now is 06:40 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