You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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
  • Save the file by pressing Ctrl+O, hit Enter, then exit with Ctrl+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 alsamixer in a terminal
  • Press F6 to select your internal audio card (it might say something like "HDA Intel")
  • Navigate to the Headphone channel with arrow keys—if it shows MM at the bottom, press M to 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 Esc and 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:19:23