This article covers methods to install, configure, enable and then restart the Bluetooth service in the Ubuntu system. From time to time when you are using Ubuntu Linux and you want to use your Bluetooth headset to watch Netflix or YouTube videos you may experience some problems with the Bluetooth connection on Linux.
How to fix the issue "Bluetooth isn't available" when you wake up the system ?
When you put your system to sleep, there are chances Bluetooth won’t be available when you wake it up. In order to make everything work fine as before in most cases you will need to restart the system.
In order to fix this issue, we need to launch the Terminal and check whether we have the 4.48 version of Bluez. You can easily do that with this command:
$ dpkg --status bluez | grep '^Version:'
When you see the results, use the following commands to update to the latest version:
$ sudo add-apt-repository ppa:bluetooth/bluez
$ sudo apt-get update
After these commands, you will be able to update the Buez using:
$ sudo apt upgrade
How to fix the issue "Bluetooth headset won't play in A2DP (High Fidelity)" ?
In order to fix this issue, you will need to make your system detect the right type of Bluetooth device by adding a simple configuration file.
1. First, let's check whether we have all the dependencies installed:
$ sudo apt install pulseaudio pulseaudio-utils pavucontrol pulseaudio-module-bluetooth
2. When we verify it, we need to create or edit this audio config file:
$ sudo gedit /etc/bluetooth/audio.conf
Then, Include the next lines:
This section contains general options
3. Finally, save the file and start the Bluetooth service again:
$ sudo service bluetooth restart