Problem:
While booting into Ubuntu 24.04 LTS, the laptop's audio works only 1 out of 10 times. I either "HDMI/Display port" (with this, audio from external monitor's headphone jack works fine), or a normal functional laptop audio (sound is from laptop's internal speakers). I get "HDMI/Display Port" most of times when I boot with external monitors plugged in. Also, booting without external monitor mostly gives "Dummy Output", with which both the laptop's internal speakers and the headset jack are non-functional.
However, bluetooth audio works completely fine in either case, without any issues.
What I am trying to achieve is a consistent functional laptop internal speaker.
What I have tried so far:
Adding the following lines with different combinations in
alsa-base.conf
located in/etc/modprobe.d
:options snd-hda-intel model=dell options snd-hda-intel model=generic options snd-hda-intel model=clevo-p950 options snd_hda_intel index=0,1 id=PCH,HDMI
Restarting PulseAudio using:
systemctl --user restart pulseaudio
Countless other tweaks mentioned in similar problems.
Cross-verified any potential hardware issues in audio using Windows (which is installed in a separate disk). Audio works perfectly fine each time, so this rules out any issues with hardware.
Tried out other kernels using Mainline Kernels.
Relevant system information:
Generated when HDMI/Display port was the audio: http://alsa-project.org/db/?f=b8d833b9303f51c7381122f2851c1a9d270dd5c1
Generated when the laptop's internal speakers were working: http://alsa-project.org/db/?f=4254b05d5833fc76d953c15f2c405611ed76f0b5
Additional Information:
OS: Ubuntu 24.04.1 LTS x86_64
Host: Inspiron 15 7000 Gaming (Dell 7567)
Kernel: 6.8.0-47-generic
CPU: Intel i7-7700HQ (8) @ 3.800GHz
GPU: Intel HD Graphics 630
GPU: NVIDIA GeForce GTX 1050 Ti Mobi
NVIDIA Driver Version: 560.35.03 (proprietary)
External Monitor: BenQ GW2270
When HDMI/Display port was the audio, loaded alsa modules were:
When laptop's internal speakers were working, loaded alsa modules were:
So, intuitively,
snd_soc_avs_probe
was the troublemaker, and I followed this lead.Also, with
dmesg
, I received error message very similar to the following:Error message source: https://www.reddit.com/r/linuxaudio/comments/1d2i1rg/problem_with_sound_in_ubuntu_2404/
Also, as mentioned in this archlinux subreddit: https://www.reddit.com/r/archlinux/comments/1be4olj/why_did_sound_stop_working_after_upgrade/
further reference: https://ubuntuforums.org/showthread.php?t=2500092
So, simply balcklisting
snd_soc_avs
inblacklist.conf
in/etc/modprobe.d
seems to have solved the problem. I haven't ran into any issues since then. Huge thanks to the community.