Xubuntu 16.04下华硕笔记本拔耳机后扬声器失效求助
Hey there, let's work through this annoying audio issue on your ASUS laptop running Xubuntu 16.04 (kernel 4.13.0-32-generic). The problem where the system thinks headphones are still plugged in even after you've pulled them out is a common jack detection glitch—here are some practical fixes to try:
Often, the audio driver just gets stuck and a quick reload can reset things:
- Open your terminal and run this to unload the module first:
sudo rmmod snd_hda_intel - Then reload it right after:
sudo modprobe snd_hda_intel - Head back to your sound settings and check if the speaker option becomes available again.
The ALSA config might need a specific tweak for ASUS laptops to fix jack detection:
- Open the ALSA base config file with a text editor:
sudo nano /etc/modprobe.d/alsa-base.conf - Scroll to the very end of the file and add this line:
options snd-hda-intel model=asus-headset-multi
This parameter is tailored to fix headphone/speaker detection issues on many ASUS devices. - Save the file (press
Ctrl+O, hit Enter, thenCtrl+Xto exit), restart your laptop, and check the sound settings again.
PulseAudio might not have updated the port status correctly. Let's manually reset it:
- First, list all your audio ports to identify the right ones:
pactl list ports short - Look for entries with "headphone" and "speaker" in their names (they'll look something like
alsa_output.pci-0000_00_1b.0.analog-stereo.headphoneandalsa_output.pci-0000_00_1b.0.analog-stereo.speaker). - Disable the headphone port first:
pactl set-port-state [YOUR_HEADPHONE_PORT_NAME] inactive - Then enable the speaker port:
pactl set-port-state [YOUR_SPEAKER_PORT_NAME] active - Now check your sound settings—your speaker should show up as available.
Your 4.13 kernel is a bit outdated, and newer kernel versions often include fixes for hardware compatibility issues like this:
- Open your terminal and install the latest LTS kernel supported by Xubuntu 16.04:
sudo apt-get install linux-generic-lts-xenial - Once installed, reboot your laptop and see if the audio issue is resolved.
If none of the above works, you can try installing the alsa-tools-gui package. Run sudo apt-get install alsa-tools-gui, then launch hdajackretask—this tool lets you visually re-map your audio jacks and force the system to detect when headphones are unplugged.
内容的提问来源于stack exchange,提问作者paulc

