Ubuntu 16.04/17.10插入耳机后音频仍从扬声器输出的问题求助
Fix for Ubuntu: Headphones Detected But Audio Still Plays Through Speakers
Hey there, I totally get how frustrating this is—you plug in your headphones, the system recognizes them, but sound keeps blaring from the speakers? Let's walk through some tried-and-true fixes for this exact issue:
1. Update PulseAudio's Auto-Switch Setting
PulseAudio often fails to auto-switch audio when headphones are plugged in. Let's fix that:
- Open a terminal and run
sudo nano /etc/pulse/default.pa - Look for the line
load-module module-switch-on-port-available- If it's commented out (starts with
#), delete the#to enable it - If the line isn't there at all, add it anywhere in the file
- If it's commented out (starts with
- Save the file by pressing
Ctrl+O, hit Enter, then exit withCtrl+X - Restart PulseAudio with
pulseaudio -k && pulseaudio --start - Plug in your headphones again and test if audio switches over.
2. Adjust ALSA Mixer Controls
Sometimes the low-level audio mixer has muted headphone channels or incorrect auto-mute settings:
- Launch
alsamixerin a terminal - Press
F6to select your internal audio card (it might say something like "HDA Intel") - Navigate to the Headphone channel with arrow keys—if it shows
MMat the bottom, pressMto unmute it - Find the Auto-Mute Mode option and set it to Enabled (this tells the system to mute speakers when headphones are connected)
- Exit alsamixer with
Escand test your headphones.
3. Reinstall Audio Packages (Last Resort)
If the above steps don't work, corrupted audio packages could be the problem. Let's refresh them:
- Run these commands one after another in terminal:
sudo apt-get remove --purge alsa-base pulseaudio sudo apt-get install alsa-base pulseaudio sudo alsa force-reload - Reboot your system, then check if the headphone audio works as expected.
I've helped several users resolve this exact issue with these steps—fingers crossed one of them works for you!
内容的提问来源于stack exchange,提问作者Giuseppe Cesarano
相关产品推荐
相关产品推荐

