LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 10:36 PM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
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, 12:56 AM   #2
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
Cool

run the following command as root:
Code:
hidd --search
 
Old 01-02-2013, 01:01 AM   #3
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
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, 03:55 AM   #4
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Apparently hidd command has been deprecated. I cannot find it on my system.
 
Old 01-02-2013, 04:06 AM   #5
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
sorry i didn't know that..
 
Old 01-02-2013, 04:10 AM   #6
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
Wink

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

Original Poster
Rep: Reputation: 47
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 04:52 AM.
 
Old 01-02-2013, 09:37 AM   #8
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
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, 10:03 AM   #9
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
install rcconf
run it as root
 
Old 01-02-2013, 10:40 AM   #10
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
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, 10:10 PM   #11
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
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 02:35 AM.
 
Old 01-30-2013, 10:58 AM   #12
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
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, 01:56 AM   #13
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
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, 10: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, 09:11 AM   #15
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
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



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 04:36 AM
Bluetooth USB dongle NDR008 Linux - Hardware 1 01-07-2007 05:52 PM
USB dongle Bluetooth problem hobz Linux - Hardware 4 01-14-2006 05:20 PM
usb bluetooth dongle zbrox Linux - Hardware 1 04-28-2005 03:09 AM
Bluetooth USB Dongle vivekiyer Linux - Software 0 08-22-2003 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:28 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
Open Source Consulting | Domain Registration