search
HomeOperation and MaintenanceLinux Operation and MaintenanceDetailed introduction to installing Linux drivers and using Blueman to connect Bluetooth headsets (pictures and text)

1.InstallationBluetoothDriver

I am using a desktop + BluetoothController, you need to install the Bluetooth driver first, otherwise An error will be reported when booting (the last line):

Detailed introduction to installing Linux drivers and using Blueman to connect Bluetooth headsets (pictures and text)

bluetooth hci0: firmware: failed to load brcm/BCM20702A1-0a5c-21ec.hcd (-2)

According to the error message, I searched online for the corresponding Bluetooth driver. I found the BCM20702A1-0a5c-21ec.hcd driver on GitHub, downloaded it and put it in /lib/firmware/brcm directory, restart to load.

2. Install Blueman

Start dbus and Bluetooth services (you can use service or /etc/init.d/):

service dbus start
/etc/init.d/bluetooth start

Blueman is a very convenient graphical Bluetooth management software, you can install it directly using apt-get:

apt-get install blueman

After completion, a Bluetooth icon will appear in the lower left corner (you can also use blueman-applet to start it manually).

apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol bluez-firmware

Install Audio related modules. If these modules are missing,
blueman.bluez.errors.DBusFailedError: Resource will appear when connecting the headset. Temporarily unavailable error message.

Detailed introduction to installing Linux drivers and using Blueman to connect Bluetooth headsets (pictures and text)

service bluetooth restart
killall pulseaudio

After restarting the Bluetooth service, you can pair with the Bluetooth headset. However, the sound quality is very poor. You need to select high-fidelity playback (A2DP sink) in the audio configuration. If an error is reported, you also need to make some modifications to the configuration file.

A2DP error solution:

If the module is installed, but pactl load-module module-bluetooth-discover cannot load the module, you need to manually modify the configuration.
Refer to A2DP Bluetooth headset issues with PulseAudio 6.0
The approach on the 17th floor in the post:

1. Edit /etc/pulse/default. pa file.

vim /etc/pulse/default.pa

2. Find load-module module-bluetooth-discover and add # in front to comment it out:

# load-module module-bluetooth-discover

3. Edit /usr/bin/start -pulseaudio-x11 file

vim /usr/bin/start-pulseaudio-x11

Find the following code, and add another line below it

if [ x”$SESSION_MANAGER” != x ] ; then
     /usr/bin/pactl load-module module-x11-xsmp “display=$DISPLAY session_manager=$SESSION_MANAGER” > /dev/null
 fi

Write below it (between the two fi) /usr/bin/pactl load- module module-bluetooth-discover, complete as follows:

if [ x”$SESSION_MANAGER” != x ] ; then
     /usr/bin/pactl load-module module-x11-xsmp “display=$DISPLAY session_manager=$SESSION_MANAGER” > /dev/null
 fi
     /usr/bin/pactl load-module module-bluetooth-discover
 fi

Restart the service:

service bluetooth restart
sudo pkill pulseaudio

Detailed introduction to installing Linux drivers and using Blueman to connect Bluetooth headsets (pictures and text)

Detailed introduction to installing Linux drivers and using Blueman to connect Bluetooth headsets (pictures and text)

At this time, you can I selected A2DP in the audio configuration, and the sound quality instantly improved a lot.

The above is the detailed content of Detailed introduction to installing Linux drivers and using Blueman to connect Bluetooth headsets (pictures and text). For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Mastering Linux Operations: A Practical GuideMastering Linux Operations: A Practical GuideApr 12, 2025 am 12:10 AM

The reason for mastering Linux operations is its wide range of application scenarios and powerful functions. 1) Linux is suitable for developers, system administrators and technology enthusiasts, and is used in server management, embedded systems and containerization technologies. 2) Learning Linux can start with file system structure, shell usage, user permission management and process management. 3) The Linux command line is its core tool, which executes commands through the shell, such as ls, mkdir, cd, etc., and supports redirection and pipeline operations. 4) Advanced usage includes writing automated scripts, such as backup scripts, using tar commands and conditional judgments. 5) Common errors include permissions, paths and syntax issues, which can be debugged through echo, set-x and $?. 6) Performance optimization suggestions

The 5 Pillars of Linux: Understanding Their RolesThe 5 Pillars of Linux: Understanding Their RolesApr 11, 2025 am 12:07 AM

The five pillars of the Linux system are: 1. Kernel, 2. System library, 3. Shell, 4. File system, 5. System tools. The kernel manages hardware resources and provides basic services; the system library provides precompiled functions for applications; the shell is the interface for users to interact with the system; the file system organizes and stores data; and system tools are used for system management and maintenance.

Linux Maintenance Mode: Tools and TechniquesLinux Maintenance Mode: Tools and TechniquesApr 10, 2025 am 09:42 AM

In Linux systems, maintenance mode can be entered by pressing a specific key at startup or using a command such as "sudosystemctlrescue". Maintenance mode allows administrators to perform system maintenance and troubleshooting without interference, such as repairing file systems, resetting passwords, patching security vulnerabilities, etc.

Key Linux Operations: A Beginner's GuideKey Linux Operations: A Beginner's GuideApr 09, 2025 pm 04:09 PM

Linux beginners should master basic operations such as file management, user management and network configuration. 1) File management: Use mkdir, touch, ls, rm, mv, and CP commands. 2) User management: Use useradd, passwd, userdel, and usermod commands. 3) Network configuration: Use ifconfig, echo, and ufw commands. These operations are the basis of Linux system management, and mastering them can effectively manage the system.

How do I use sudo to grant elevated privileges to users in Linux?How do I use sudo to grant elevated privileges to users in Linux?Mar 17, 2025 pm 05:32 PM

The article explains how to manage sudo privileges in Linux, including granting, revoking, and best practices for security. Key focus is on editing /etc/sudoers safely and limiting access.Character count: 159

How do I implement two-factor authentication (2FA) for SSH in Linux?How do I implement two-factor authentication (2FA) for SSH in Linux?Mar 17, 2025 pm 05:31 PM

The article provides a guide on setting up two-factor authentication (2FA) for SSH on Linux using Google Authenticator, detailing installation, configuration, and troubleshooting steps. It highlights the security benefits of 2FA, such as enhanced sec

How do I monitor system performance in Linux using tools like top, htop, and vmstat?How do I monitor system performance in Linux using tools like top, htop, and vmstat?Mar 17, 2025 pm 05:28 PM

The article discusses using top, htop, and vmstat for monitoring Linux system performance, detailing their unique features and customization options for effective system management.

How do I manage software packages in Linux using package managers (apt, yum, dnf)?How do I manage software packages in Linux using package managers (apt, yum, dnf)?Mar 17, 2025 pm 05:26 PM

Article discusses managing software packages in Linux using apt, yum, and dnf, covering installation, updates, and removals. It compares their functionalities and suitability for different distributions.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft