Ubuntu Linux 22.04.3 LTS系统音频故障求助
Hey there, sorry to hear your audio stopped working out of nowhere after working perfectly fine last night—let’s walk through some more targeted troubleshooting steps since you’ve already tried the basic fixes like checking system sound settings, adjusting alsamixer, reinstalling PulseAudio, and verifying your laptop’s physical mute switch:
Confirm audio device is recognized by the system
- Open the terminal and run
aplay -lto list all detected audio devices. If your laptop’s built-in sound card doesn’t show up here, it might point to a driver or hardware detection issue. - You can also check PulseAudio’s output sinks with
pactl list sinks—look for a device marked asRUNNING; if none are active, try manually selecting your preferred output device in the system sound settings after running this command.
- Open the terminal and run
Reset PulseAudio configuration files
- Corrupted configs are a common culprit. First, kill the running PulseAudio process:
pulseaudio -k - Delete the old configuration folder:
rm -r ~/.config/pulse - Restart PulseAudio:
pulseaudio --start - Head back to the system sound settings and re-select your audio output device to see if sound comes back.
- Corrupted configs are a common culprit. First, kill the running PulseAudio process:
Check kernel sound modules
- Run
lsmod | grep sndto view loaded sound-related kernel modules. If key modules likesnd_hda_intel(common for laptops) are missing, try loading them manually withsudo modprobe snd_hda_intel. - Check system logs for driver errors with
dmesg | grep snd—look for messages like "probe failed" or "invalid argument" which might indicate a driver conflict or hardware problem.
- Run
Test audio directly via ALSA (bypass PulseAudio)
- To rule out PulseAudio-specific issues, test with ALSA directly:
speaker-test -c 2 - If you hear test tones, the hardware is working, and the issue lies in PulseAudio’s setup. If not, check your laptop’s BIOS settings to ensure the audio device isn’t disabled, and try a full system reboot to refresh hardware detection.
- To rule out PulseAudio-specific issues, test with ALSA directly:
Check for exclusive audio device locks
- Some applications can hog the audio device exclusively. Run
fuser -v /dev/snd/*to see which processes are using the sound devices, then close those processes and test audio again.
- Some applications can hog the audio device exclusively. Run
Let me know if any of these steps fix the issue, or if you spot any specific error messages from the commands above—we can dig deeper into the problem from there!
备注:内容来源于stack exchange,提问作者Hobbesian Thinker

