By default Bluetooth device drive has build with your Ubuntu operating system, some time if you could not connect detect it need to install supporting packages in system using apt-get command,
# apt-get install bluetooth bluez-utils blueman
Preparing to unpack .../python-gconf_2.28.1+dfsg-1ubuntu2_amd64.deb ...
Unpacking python-gconf (2.28.1+dfsg-1ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Setting up blueman (1.23-git201403102151-1ubuntu1) ...
Setting up bluetooth (4.101-0ubuntu13) ...
Setting up bluez-gstreamer (4.101-0ubuntu13) ...
Setting up bluez-utils (4.101-0ubuntu13) ...
Setting up python-gconf (2.28.1+dfsg-1ubuntu2) ...
# /etc/init.d/bluetooth start
* Starting bluetooth [ OK ]
# /etc/init.d/bluetooth status
* bluetooth is running
To check your bluetooth device status,
# ps aux | grep bluetooth
root 792 0.0 0.0 19292 1200 ? Ss 09:12 0:00 /usr/sbin/bluetoothd
root 8037 0.0 0.0 15944 916 pts/9 S+ 17:09 0:00 grep --color=auto bluetooth
# netstat -anp | grep bluetooth
unix 2 [ ACC ] STREAM LISTENING 10688 792/bluetoothd /var/run/sdp
unix 3 [ ] STREAM CONNECTED 10685 792/bluetoothd
unix 2 [ ] DGRAM 10684 792/bluetoothd
The below commands can help you for shows device configuration and mac address and logs,
lsusb shows a new device:
# lsusb
Bus 001 Device 003: ID 2232:1029
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Your bluetooth device MAC:
# hcitool dev
Devices:
hci0 50:B7:C3:5A:1E:6F
Scanning Bluetooth Device:
This should return the mac address of the bluetooth adaptor:
# hcitool scan
Scanning ...
A0:31:E4:43:BB:1C thelinuxfaq.com linux
Bluetooth Device logs,
# dmesg | grep Bluetooth
[ 2.308955] usb 2-1.4: Product: Bluetooth USB Host Controller
[ 12.811908] Bluetooth: Core ver 2.17
[ 12.811927] Bluetooth: HCI device and connection manager initialized
[ 12.811936] Bluetooth: HCI socket layer initialized
[ 12.811940] Bluetooth: L2CAP socket layer initialized
[ 12.811945] Bluetooth: SCO socket layer initialized
[ 14.627450] usb 2-1.4: Product: Bluetooth USB Host Controller
[ 33.279737] Bluetooth: RFCOMM TTY layer initialized
[ 33.279751] Bluetooth: RFCOMM socket layer initialized
[ 33.279763] Bluetooth: RFCOMM ver 1.11
[ 33.427326] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 33.427330] Bluetooth: BNEP filters: protocol multicast
[ 33.427340] Bluetooth: BNEP socket layer initialized
Comments (0)