- DivanX10 / Установка драйвера для USB Bluetooth Easy Idea в Debian 11.6
- How to Configure Bluetooth On Debian
- Table of Contents
- Installing Bluetooth Drivers
- Getting the Bluetooth Adapter Ready
- Using GNOME Bluetooth to Connect to Bluetooth Devices
- Using Bluedevil to Connect to Bluetooth Devices
- Using Blueman to Connect to Bluetooth Devices
- Conclusion
- References
- About the author
- Shahriar Shovon
DivanX10 / Установка драйвера для USB Bluetooth Easy Idea в Debian 11.6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Установка драйвера для USB Bluetooth Easy Idea в Debian 11.6 |
USB Bluetooth Easy Idea |
Bluetooth V5.1 |
Чип: REALTEK RTL8671B |
Источник: https://debian.pkgs.org/11/debian-nonfree-arm64/firmware-realtek_20210315-3_all.deb.html |
———————————————————————————— |
Binary Package http://ftp.de.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-realtek_20210315-3_all.deb |
Source Package firmware-nonfree |
Mirror ftp.de.debian.org |
———————————————————————————— |
Установить драйвер можно двумя способом |
Скачать пакет и установить |
# wget http://ftp.de.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-realtek_20210315-3_all.deb |
# sudo apt-get install -y /путь к папке/firmware-realtek_20210315-3_all.deb |
Если скачали firmware-realtek_20210315-3_all.deb в папку root, то вводим так |
# sudo apt-get install -y ~/firmware-realtek_20210315-3_all.deb |
Или добавить в sources.list ссылку, обновить и установить пакет. Открываем sources.list |
# sudo nano /etc/apt/sources.list |
Добавляем ссылки |
# deb http://ftp.de.debian.org/debian stable main |
# deb http://ftp.de.debian.org/debian-security stable/updates main |
Обновить пакеты |
# sudo apt-get update |
Установить прошивку firmware-realtek |
# sudo apt-get install firmware-realtek |
———————————————————————————— |
Что делать, если USB Bluetooth Easy Idea все еще не работает в Debian 11.6? |
Вывести информацию о доступных bluetooth адаптеров |
# sudo dmesg | grep -i bluetooth |
Если в спсике будет что-то вроде этого, значит драйвер не установлен |
bluetooth hci0: Direct firmware load for rtl_bt/rtl8761b_fw.bin failed with error -2 |
Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761b_fw.bin not found |
Чтобы исправить это, нужно сделать следующее |
# cd /tmp |
# wget https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/rtk1395/bt/rtkbt/Firmware/BT/rtl8761b_config |
# wget https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/rtk1395/bt/rtkbt/Firmware/BT/rtl8761b_fw |
# mv rtl8761b_config /lib/firmware/rtl_bt/rtl8761b_config.bin |
# mv rtl8761b_fw /lib/firmware/rtl_bt/rtl8761b_fw.bin |
# sudo modprobe btusb |
# sudo systemctl start bluetooth.service |
Перезагружаем Linux |
# sudo systemctl reboot |
Повторно выводим информацию о доступных bluetooth адаптеров, где не должно быть failed with error -2 или not found |
# sudo dmesg | grep -i bluetooth |
Вот этого не должно уже быть. Есди вы это не видите, значит драйвер установлен и USB bluetooth готов к работе |
bluetooth hci0: Direct firmware load for rtl_bt/rtl8761b_fw.bin failed with error -2 |
Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8761b_fw.bin not found |
———————————————————————————— |
Справочная информация |
Вывести информацию о доступных bluetooth адаптеров |
# sudo dmesg | grep -i bluetooth |
—————————————————————————— |
Команда выводит MAC-адрес вашего Bluetooth адаптера и его версию. Если вам нужна только версия протокола, которую поддерживает Bluetooth вашего компьюютера, то используйте команду: |
# btmgmt info | awk ‘BEGIN |
—————————————————————————— |
Узнать только мак адрес bluetooth |
Вариант 1 |
# hcitool dev | grep -o «[[:xdigit:]:] \ < 11,17 \>« |
Вариант 2 |
# hcitool dev | cut -sf3 |
—————————————————————————— |
Выводим список имеющихся bluetooth |
# hciconfig -a |
How to Configure Bluetooth On Debian
Suppose your laptop or computer has WiFi or Bluetooth hardware installed. In that case, there is a chance that Debian won’t recognize it automatically after you’ve installed Debian on your computer, as many other Linux distributions do. It’s because Debian does not include these drivers by default. But, you can easily install the required drivers from the official Debian non-free repository and get them to work on Debian.
In this article, I will show you how to enable and configure Bluetooth on Debian 10. So, let’s get started.
Table of Contents
Installing Bluetooth Drivers
Most laptops these days have one of the many versions of the Intel CNVi wireless adapters installed on them, and these adaptors usually provide WiFi and Bluetooth support for these devices. So, to get Bluetooth working on your Debian machine, you have to install the iwlwifi firmware on your computer.
NOTE: My test computer has the Intel Wireless-AC 9560D2W card installed. It provides Bluetooth and WiFi functionality for my test computer.
First, enable the Debian official non-free package repository with the following command:
The Debian official non-free package repository should be enabled.
Update the APT package repository cache with the following command:
The APT package repository cache should be updated.
Now, install the iwlwifi firmware with the following command:
The iwlwifi firmware is being installed. It may take a few seconds to complete.
The iwlwifi firmware should be installed.
For the changes to take effect, reboot your computer with the following command:
Getting the Bluetooth Adapter Ready
You can use rfkill to find out whether your computer has detected the installed Bluetooth hardware of your computer.
First, install the rfkill package with the following command:
rfkill should be installed.
Run rfkill as follows:
All the wireless hardware (i.e., Wi-Fi and Bluetooth) installed on your computer should be listed.
As you can see, a Bluetooth device is available on the list. It has the ID 0 on my computer. On your computer, the ID may be something other than 0. So, make sure to replace it with yours from now on.
In some cases, Bluetooth may be blocked on your computer.
To use the Bluetooth hardware, you will have to unblock it as follows:
NOTE: Here, 0 is the ID of the Bluetooth device.
As you can see, the Bluetooth device is unblocked. Now, it’s ready to be used.
Using GNOME Bluetooth to Connect to Bluetooth Devices
GNOME Bluetooth is the default Bluetooth manager app for the GNOME 3 desktop environment. GNOME Bluetooth is tightly integrated with the GNOME 3 desktop environment. So, you will have an amazing experience using it.
You can install all the required packages to set up GNOME Bluetooth on Debian 10 with the following command:
To confirm the installation, press Y and then press .
GNOME Bluetooth and all the required dependency packages are being installed. It may take a few seconds to complete.
At this point, GNOME Bluetooth and other required packages should be installed.
Now, check the status of the Bluetooth service as follows:
The Bluetooth service should be active/running and enabled as marked in the screenshot below.
In case the Bluetooth service is not active/running, you can start it with the following command:
In case the Bluetooth service is not enabled, you can enable it with the following command:
Once GNOME Bluetooth is installed and the Bluetooth service is active/running, you can navigate to the Bluetooth section of the GNOME Settings app and connect to your Bluetooth devices from there.
To learn how to use GNOME Bluetooth, read the Connecting to a Bluetooth Device using GNOME Bluetooth section of the article How to Connect to a Bluetooth Device on Arch Linux.
Using Bluedevil to Connect to Bluetooth Devices
Bluedevil is the default Bluetooth manager app for the KDE desktop environment. Bluedevil is tightly integrated with the KDE desktop environment. So, you will have an amazing experience using it.
You can install all the required packages to set up Bluedevil on Debian 10 with the following command:
To confirm the installation, press Y and then press .
Bluedevil and all the required dependency packages are being installed. It may take a few seconds to complete.
At this point, Bluedevil and other dependency packages should be installed.
Now, check the status of the Bluetooth service as follows:
The Bluetooth service may not be running.
The Bluetooth service should be enabled.
In case the Bluetooth service is not active/running, you can start it with the following command:
In case the Bluetooth service is not enabled, you can enable it with the following command:
Once Bluedevil is installed and the Bluetooth service is active, you can click on the Bluetooth icon ( ) from the KDE panel to bring up the Bluetooth applet.
You can manage your Bluetooth devices from here.
You can also right-click (RMB) on the Bluetooth icon ( ) from the KDE panel and click on Configure Bluetooth… as marked in the screenshot below to bring up the Bluetooth System Settings window.
From this window, you can manage your Bluetooth devices from here as well.
To learn how to connect to Bluetooth devices with Bluedevil, read the Connecting to a Bluetooth Device using Bluedevil section of the article How to Connect to a Bluetooth Device on Arch Linux.
Using Blueman to Connect to Bluetooth Devices
Blueman is a third-party Bluetooth manager. If you want, you can also use it to manage your Bluetooth devices.
You can install Blueman on Debian 10 with the following command:
To confirm the installation, press Y and then press .
Blueman is being installed. It may take a while to complete.
At this point, Blueman should be installed.
Once Blueman is installed, you can start it from the Application Menu of your computer.
The Blueman app should start. You can manage your Bluetooth devices from here.
To learn how to connect to Bluetooth devices with Blueman, read the Blueman for Connecting to a Bluetooth Device section of the article How to Connect to a Bluetooth Device on Arch Linux.
Conclusion
In this article, I have shown you how to install Bluetooth drivers on Debian and configure it. I have also shown you how to set up the GNOME 3 desktop environment and the KDE desktop environment for using Bluetooth. I have shown you how to install a third-party Bluetooth manager Blueman on Debian as well.
References
About the author
Shahriar Shovon
Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.