LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-06-2021, 04:15 AM   #1
gigiux
LQ Newbie
 
Registered: Feb 2018
Posts: 21

Rep: Reputation: Disabled
How to fix failure in setting bluetooth in Ubuntu 21


Hello,
I have Ubuntu 21.04, I plugged a Bluetooth 4.0 Adapter Dongle. The dongle was visible to the system because Ubuntu had an active button for the Bluetooth. I checked the status of the Bluetooth and it seemed to be running:

```
sudo service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
Active: active (running) since Mon 2021-09-27 09:54:30 CEST; 57min ago
Docs: man:bluetoothd(8)
Main PID: 1738 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 38312)
Memory: 1.8M
CGroup: /system.slice/bluetooth.service
└─1738 /usr/lib/bluetooth/bluetoothd

Sep 27 10:12:11 juggernaut bluetoothd[1738]: src/device.c:search_cb() E8:AB:FA:>
Sep 27 10:14:13 juggernaut bluetoothd[1738]: Pair device timed out for hci0
Sep 27 10:16:36 juggernaut bluetoothd[1738]: Pair device timed out for hci0
Sep 27 10:19:29 juggernaut bluetoothd[1738]: Pair device timed out for hci0
Sep 27 10:19:33 juggernaut bluetoothd[1738]: Failed to set mode: Failed (0x03)
Sep 27 10:19:35 juggernaut bluetoothd[1738]: Failed to set mode: Failed (0x03)
Sep 27 10:43:13 juggernaut bluetoothd[1738]: Pair device timed out for hci0
Sep 27 10:45:25 juggernaut bluetoothd[1738]: Failed to set mode: Failed (0x03)
Sep 27 10:45:35 juggernaut bluetoothd[1738]: Failed to set mode: Failed (0x03)
Sep 27 10:49:00 juggernaut bluetoothd[1738]: Failed to set mode: Failed (0x03)
```

However, even if the device I wanted to pair (an earphone) was visible, it could not be paired.
Since the Dongle was 4.0 and the earphone 5.0, I then bought a Dongle 5.0. Even in this case, there is an active button, `sudo service bluetooth status` gives stuff virtually identical to the one above, but not only I can't pair: no device is found to start with.
It might be that the Dongle I bought does not work with Linux, so I bought another that, on paper, should. In this case, there was NO active button: Ubuntu showed no Bluetooth at all (in the face of compatibility).

The bottom line is: how can I activate the Bluetooth on Ubuntu and how can I fix these errors without buying all the Dongles available on Amazon?

Thank you
 
Old 10-06-2021, 05:48 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,208

Rep: Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949
I guess you need to check the tool bluetoothctl: https://www.makeuseof.com/manage-blu...-bluetoothctl/
 
Old 10-11-2021, 03:47 AM   #3
gigiux
LQ Newbie
 
Registered: Feb 2018
Posts: 21

Original Poster
Rep: Reputation: Disabled
reply

Thanks.
I bought yet another dongle and I got:

```
$ sudo systemctl status bluetooth
[sudo] password for gigiux:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
Active: active (running) since Mon 2021-10-11 10:12:00 CEST; 19min ago
Docs: man:bluetoothd(8)
Main PID: 730 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 38312)
Memory: 1.9M
CGroup: /system.slice/bluetooth.service
└─730 /usr/lib/bluetooth/bluetoothd

Oct 11 10:11:52 juggernaut systemd[1]: Starting Bluetooth service...
Oct 11 10:11:53 juggernaut bluetoothd[730]: Bluetooth daemon 5.56
Oct 11 10:12:00 juggernaut systemd[1]: Started Bluetooth service.
Oct 11 10:12:00 juggernaut bluetoothd[730]: Starting SDP server
Oct 11 10:12:01 juggernaut bluetoothd[730]: Bluetooth management interface 1.19>

$ sudo systemctl enable bluetooth
Synchronizing state of bluetooth.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable bluetooth
$ sudo systemctl start bluetooth
$ bluetoothctl scan on
No default controller available
```
So I switched to the previous dongle 5 and I got again:
```
$ sudo systemctl status bluetooth
[sudo] password for gigiux:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
Active: active (running) since Mon 2021-10-11 10:12:00 CEST; 25min ago
Docs: man:bluetoothd(8)
Main PID: 730 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 38312)
Memory: 2.0M
CGroup: /system.slice/bluetooth.service
└─730 /usr/lib/bluetooth/bluetoothd
$ bluetoothctl scan on
Discovery started
[CHG] Controller E8:48:B8:C8:20:00 Discovering: yes

```
but nothing happened. I tried also this post, but nothing.
 
  


Reply

Tags
bluetooth, bluetooth pairing, dongle, ubuntu


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
Cannot fix broken package using "sudo apt --fix-broken install" to fix XFCE packages for Zorin OS 16 Core AltFantasy Zorin OS 8 09-25-2021 06:51 AM
[SOLVED] Bluetooth Stopped Working "Unknown Bluetooth Controller in /etc/bluetooth/main.conf" PasBern Linux - Hardware 5 06-15-2021 10:39 AM
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
[SOLVED] Failure after failure after failure.....etc 69Rixter Linux - Laptop and Netbook 5 04-14-2015 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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