24.04.2 LTS - Why cant i get my on-board sound to work? A plea for help!

Sorry to warm up this old topic. But I am a bit desperate, already.

lspci -k -nn -d ::0403 

shows me the available sound cards in the hardware setup, but 
  cat /proc/asound/cards

does not report anything. Any hint why the cards are not visible ?

1 Like

Oh, that's simple. They say that "The /proc/ directory — also called the proc file system — contains a hierarchy of special files which represent the current state of the kernel — allowing applications and users to peer into the kernel's view of the system. " In other words, the kernel has not detected any sound cards and/or has not instantiated them.

2 Likes

Hi, @der_freundliche and welcome to the Ubuntu MATE Community!

1 Like

OK. And what to do that the kernel instantiates the sound cards ? Any idea ?

Unless you need audio over HDMI, or this card has special features that you need (and unfortunately may not be supported in Linux yet), sometimes the most straightforward solution is to just buy an inexpensive USB sound system that is supported by Linux and move on.

I’ve used these on many Linux versions (Debian, Ubuntu) and hardware (x86, amd64, & ARM), they cost ~$10, and have “just worked” in my experience. Ultimately “time is money”

https://www.amazon.com/External-Surround-Converter-Headphone-Microphone/dp/B0CNSYMBYJ

https://www.amazon.com/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B00IRVQ0F8/ref=pd_day0fbt_hardlines_d_sccl_1/145-4292737-1457508

But my needs are just basic audio for alerts, playing mp3 files in the background, or watching YouTube tutorials, so I’ve no real experience with fancy sound cards or “audio studio” apps.

2 Likes

Scrolling back through this thread, it doesn’t look like anyone has mentioned trying this. I’ve had this issue many times with Intel motherboard sound, when the video monitor is HDMI, it seems to default to HDMI audio no matter what, this has worked for me and only costs a reboot to try:

# Add this to /etc/modprobe.d/alsa-base.conf (or default.conf in there is no alsa config file)
# Need to reboot for this to take effect.
options snd_hda_intel index=1

If it doesn’t work, you can comment out the options line and let it go away on your next scheduled reboot. Then I’d suggest buying a USB audio dongle for your 3.5mm audio output.

1 Like

It means that the kernel module for the card probably failed to load; or doesnt exist. Did the output of the lspci command list a module (driver)? Which one (something starting with snd_)?

2 Likes

Thanks! I get

lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
01:00.1 Audio device: NVIDIA Corporation GP108 High Definition Audio Controller (rev a1)

Thats a different lspci command to the one you provided earlier. I'd need the output from your original question.

1 Like

sure, this is the output of the initial lspci:

lspci -k -nn -d ::0403
00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
DeviceName: Onboard - Sound
Subsystem: Micro-Star International Co., Ltd. [MSI] 200 Series PCH HD Audio [1462:9c13]
01:00.1 Audio device [0403]: NVIDIA Corporation GP108 High Definition Audio Controller [10de:0fb8] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd GP108 High Definition Audio Controller [1458:375d]

1 Like

Right. Yep looks like no kernel module is loaded (like snd_hda_intel or others) for the cards. Seems unusual for a Ubuntu MATE machine - perhaps you have blacklisted them and forgot about it? Could also look through dmesg to see if there was an error reported when attempting to load modules (e.g. sudo dmseg | grep snd_).

2 Likes

I get no output for

sudo dmesg | grep snd_

I'm a bit rushed as I'm travelling - but it seems very odd that no snd_* modules have attempted to load or said anything in dmesg.

Try sudo dmesg | grep -E "(snd|sound|alsa|hda)"?

1 Like

No, problem. Thanks a lot for taking care of my request.

The dmesg does not return anything.

2 Likes

sudo dmesg | grep -E "(snd|sound|alsa|hda)"

this should return something like:

[    2.989495] snd_hda_intel 0000:00:03.0: enabling device (0000 -> 0002)
[    3.079974] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3220: line_outs=1 (0x1b/0x0/0x0/0x0/0x0) type:line
[    3.079979] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=1 (0x14/0x0/0x0/0x0/0x0)
[    3.079981] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[    3.079983] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    3.079985] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    3.079986] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
[    3.079988] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x1a
[    3.128502] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input5
[    3.128550] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[    3.132250] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[    3.132639] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[    3.685297] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.715291] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card1/input9
[    3.715352] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card1/input10
[    3.715396] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card1/input11

There is also a BIOS setting to enable HD Audio Controller.
BIOS -> Advanced Settings -> Onboard Device Configuration -> HD Audio Controller enabled.

2 Likes

My guess is either snd_hda_intel is blacklisted on your system, or you are running a kernel that doesnt have that module at all, or maybe there is a missing firmware issue. Try running hw-probe to see what drivers might be missing. There may be firmware you need in firmware-sof-signed; and you can check for blacklisted modules with modprobe --showconfig | grep blacklist.

There may also be a BIOS setting preventing the hardware from working.

Can you get inxi and output some basic information about your system inxi -SMz?

2 Likes

I'm going to take a different approach and go back to the Preferences for Sound, the pop-up being similar to this:

You say you have the "Built-in Audio" selected.

You also said your profile settings are off.

But shouldn't you select one of those profiles which best suits your hardware type? Choose either

  • Analog Stereo Output, or
  • Analog Stereo Duplex,

depending on your circumstances?

Choose the first selection and see what you get?

If it doesn't work, you may have a system that only generates digital, in which case you should select one of the HDMI options and try those.

2 Likes

There wont be any Analog Stereo options for the OP - apparently only Pro Audio profile is supplied. This means there is at least one sticking point at the PipeWire level which needs fixing first. The sound preferences panel is concerned with PulseAudio and hence the PipeWire (or possibly ALSA or "ALSA use case") issues are going to take precedent - in my humble opinion!

1 Like

Looking at the specs, and seeing this mention,

that is indicating digital output.

The following post on Tom's Guide might be of interest to you, looking specifically at how the wiring needs to be done:

3 Likes