Ubuntu 22.04蓝牙耳机连接后立即断开且麦克风配置无效求助
Hey there, sorry to hear you're stuck with this Bluetooth mic and connection hassle on Ubuntu 22.04—let’s dig into this step by step!
First, let’s recap what you’ve shared: you dual-booted Ubuntu 22.04 which worked fine initially, but when trying to set up your Bluetooth earphones for a call, the hdajackretask + pavucontrol fix that worked on another machine didn’t help here. Now your Bluetooth connection fails immediately, and your syslog throws this error:
Nov 9 20:26:54 kungf bluetoothd[527]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 04:CB:88:D0:F4:9A: Protocol not available
Let’s start with the Bluetooth connection issue first, since that error points directly to a protocol problem:
Check and restart the Bluetooth service
Run this command to see if the service is running properly:sudo systemctl status bluetoothIf you see any errors or it’s inactive, restart it with:
sudo systemctl restart bluetoothRe-pair your earphones properly
Go to Ubuntu’s Bluetooth settings, find your earphone (04:CB:88:D0:F4:9A), click "Remove Device", then re-search and pair it. When pairing, make sure to select the Headset (HFP/HSP) mode instead of just "Speaker (A2DP)"—HFP/HSP is the profile that supports microphone input, while A2DP is only for audio output.Install missing Bluetooth audio modules
Sometimes the PulseAudio Bluetooth module is missing or not loaded. Install it with:sudo apt install pulseaudio-module-bluetoothThen restart PulseAudio to apply changes:
pulseaudio -k && pulseaudio --start
Now let’s tackle the microphone configuration issue, since the hdajackretask method didn’t work this time:
Confirm your exact sound card model
Different HDA Intel cards have different pin layouts. Run this command to get your card details:lspci | grep -i audioThis will help you find more specific pin override guides for your card if needed.
Adjust other pins in hdajackretask
Openhdajackretaskagain (either via the app menu orhdajackretaskin terminal), make sure you’ve selected the correct sound card (if you have multiple). If 0x18/19/16/12 didn’t work, look for other unconnected pins (check "Show unconnected pins") and try setting them to "Microphone" via override. Click "Apply now" to test immediately before setting the boot override.Check ALSA mixer settings
Sometimes the microphone is muted at the ALSA level. Open the mixer with:alsamixerPress F6 to select your sound card, then look for any channels labeled "Mic" or "Internal Mic". Ensure they’re not muted (look for "OO" instead of "MM") and turn up the volume to a reasonable level.
For dual-boot systems, don’t forget this critical step:
- Disable Fast Startup in Windows
Fast Startup keeps hardware in a semi-hibernated state, which can cause Ubuntu to misdetect devices. In Windows:- Open Control Panel → Power Options
- Click "Choose what the power buttons do"
- Click "Change settings that are currently unavailable"
- Uncheck "Turn on fast startup (recommended)"
- Save changes, shut down Windows completely, then boot into Ubuntu.
If none of the above works, let’s gather more info to troubleshoot further:
- Run
bluetoothctlin terminal, then enterscan onto find your earphone. Next, runconnect 04:CB:88:D0:F4:9Aand share the full error output—this will give more clues about why the connection fails. - Run
pacmd list-sourcesand check if your Bluetooth microphone appears as an input source.
备注:内容来源于stack exchange,提问作者TheMaroonKnight

