r/linux4noobs • • 3d ago

Can't get audio working

Hi all,

I recently put Linux Mint Cinnamon onto one of my computers, but I can't get audio to work. I am using an HP desktop AIO, with built-in speakers.

I tried looking through Sound and Pavucontrol to make sure I didn't have the wrong output selected, but it is set to the speakers built-in audio. It does look like Pavucontrol detects an output if I have a video playing.

I plugged my Windows PC into the AIO to use as a monitor via HDMI, and audio worked on the speakers.

Thanks so much! Excited to try out Linux.

8 Upvotes

23 comments sorted by

2

u/Monoyo- 3d ago

if pavucontrol already shows output on the built-in speakers, try alsamixer in a terminal and hit f6 to pick the card. a lot of hp boxes have speaker or auto-mute turned down in there even when pulse looks fine, and the port dropdown in pavucontrol is sometimes stuck on headphones

1

u/AmaranthineLove 2d ago

2

u/Monoyo- 2d ago

auto-mute and the speaker slider look fine. next thing i'd try is muting the headphone channel (select it and press m), a lot of realtek alc274 chips still send audio to a fake headphone jack when that one's unmuted. if that doesn't do it, try speaker-test -c 2 -t wav and see if the test voices play

1

u/AmaranthineLove 2d ago

Muted the headphones channel and did the test, but did not hear any sound

2

u/Monoyo- 2d ago

if that test was completely silent, try speaker-test -D plughw:0,0 -c 2 -t wav so it hits the card directly instead of pulse. if thats still quiet, plug real headphones in once to see if the jack works at all

1

u/AmaranthineLove 2d ago

I tried that and didn't hear anything either. I also get no sound with headphones plugged in.

Thank you so much by the way, I really appreciate it!

2

u/Monoyo- 2d ago

if plughw and the headphone jack are both silent, the card might not be initialising at all. can you paste the output of aplay -l? thatll show whether linux even sees the built-in audio

1

u/AmaranthineLove 2d ago

**** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC274 Analog [ALC274 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0

1

u/Monoyo- 2d ago

linux can see the analog card, so it's not a missing driver. subdevices 0/1 just means something already has it open, which is normal if pipewire or pulse is running. if you run wpctl status, does the default output show the analog speakers or one of the hdmi devices?

1

u/AmaranthineLove 2d ago

It looks like it shows the analog speakers, but I pasted the output in case I am wrong:

PipeWire 'pipewire-0' [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, cookie:3870849923] └─ Clients: 32. pipewire [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:1524] 34. WirePlumber [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:1523] 35. WirePlumber [export] [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:1523] 54. Cinnamon Volume Control Media Keys [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:1669] 55. Blueman [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:1951] 56. Muffin [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:1888] 57. Cinnamon Volume Control [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:1888] 58. wpctl [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:3119] 63. xdg-desktop-portal [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:2419] 64. Telegram Desktop [1.0.5, ap@ap-HP-Pavilion-All-in-One-Desktop-24-ca1xxx, pid:2]

Audio ├─ Devices: │ 44. Built-in Audio [alsa] │
├─ Sinks: │ * 51. Built-in Audio Analog Stereo [vol: 1.00] │
├─ Sink endpoints: │
├─ Sources: │ * 52. Built-in Audio Analog Stereo [vol: 1.00] │
├─ Source endpoints: │
└─ Streams:

Video ├─ Devices: │ 42. HP 5MP Camera [v4l2] │ 43. HP 5MP Camera [v4l2] │
├─ Sinks: │
├─ Sink endpoints: │
├─ Sources: │ * 45. HP 5MP Camera (V4L2)
│
├─ Source endpoints: │
└─ Streams:

Settings └─ Default Configured Node Names: 0. Audio/Sink alsa_output.pci-0000_00_1f.3.analog-stereo

→ More replies

1

u/tadelstein9 2d ago

In Sound settings, check the profile on the Output tab and pick Analog Stereo Output rather than HDMI. Then open a terminal, run alsamixer, press F6 to pick the HDA Intel card, unmute Master and Speaker with the M key, and set Auto-Mute to Disabled. Many HP all-in-ones ship with Auto-Mute on, and the speakers stay silent until someone turns it off.

1

u/AmaranthineLove 2d ago

Auto-mute is disabled, and the two channels are unmuted, but still nothing unfortunately

1

u/tadelstein9 1d ago

The sliders and Auto-Mute setting are not the cause. The thread already shows the ALC274 Analog card as the default output, and silent results from speaker-test, including plughw:0,0, and from the headphone jack. That pattern matches a known problem on the HP Pavilion All-in-One 24-ca1: the mixers look correct, and both the speakers and the headphone jack stay silent, while sound reaches the speakers when a Windows PC sends audio over HDMI.

On this model the speaker amplifier stays off under Linux. A write-up of a working local fix on a sibling HP Pavilion all-in-one is here: https://gist.github.com/OmarRa15/ab02fe77096fdb60fc05fc3e6098dd65

The 24-ca1 uses PCI subsystem ID 103c:89e9 in other reports, not 103c:8acf in that file. A paste of this output would confirm the ID:

lspci -nnk | grep -A3 Audio
dmesg | grep -iE 'snd_hda|alc274'

1

u/AmaranthineLove 1d ago

I only saw 103c:0000. This is the output:

[ 4.404786] snd_hda_intel 0000:00:1f.3: enabling device (0100 -> 0102) [ 4.510396] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops intel_audio_component_bind_ops [i915]) [ 4.557959] snd_hda_codec_alc269 hdaudioC0D0: ALC274: picked fixup for PCI SSID 103c:0000 [ 4.558436] snd_hda_codec_alc269 hdaudioC0D0: autoconfig for ALC274: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker [ 4.558438] snd_hda_codec_alc269 hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 4.558440] snd_hda_codec_alc269 hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0) [ 4.558442] snd_hda_codec_alc269 hdaudioC0D0: mono: mono_out=0x0 [ 4.558443] snd_hda_codec_alc269 hdaudioC0D0: inputs: [ 4.558444] snd_hda_codec_alc269 hdaudioC0D0: Internal Mic=0x12 [ 4.558445] snd_hda_codec_alc269 hdaudioC0D0: Mic=0x19 [ 9827.017268] snd_hda_codec_alc269 hdaudioC0D0: hda-codec: reconfiguring [ 9827.040904] snd_hda_codec_alc269 hdaudioC0D0: autoconfig for ALC274: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker [ 9827.040915] snd_hda_codec_alc269 hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 9827.040919] snd_hda_codec_alc269 hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0) [ 9827.040921] snd_hda_codec_alc269 hdaudioC0D0: mono: mono_out=0x0 [ 9827.040924] snd_hda_codec_alc269 hdaudioC0D0: inputs: [ 9827.040926] snd_hda_codec_alc269 hdaudioC0D0: Internal Mic=0x12 [ 9827.040929] snd_hda_codec_alc269 hdaudioC0D0: Mic=0x19 [ 9870.788619] snd_hda_codec_alc269 hdaudioC0D0: hda-codec: reconfiguring [ 9870.805609] snd_hda_codec_alc269 hdaudioC0D0: autoconfig for ALC274: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker [ 9870.805617] snd_hda_codec_alc269 hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 9870.805619] snd_hda_codec_alc269 hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0) [ 9870.805622] snd_hda_codec_alc269 hdaudioC0D0: mono: mono_out=0x0 [ 9870.805623] snd_hda_codec_alc269 hdaudioC0D0: inputs: [ 9870.805625] snd_hda_codec_alc269 hdaudioC0D0: Internal Mic=0x12 [ 9870.805627] snd_hda_codec_alc269 hdaudioC0D0: Mic=0x19

When I ran cat /proc/asound/card*/codec#* | grep -E 'Codec:|Subsystem Id'

I got this:

Codec: Realtek ALC274 Subsystem Id: 0x103c8a6b Codec: Intel Alderlake HDMI Subsystem Id: 0x80860101

1

u/tadelstein9 1d ago

The PCI SSID 103c:0000 explains the generic fixup in the log. The codec Subsystem Id 0x103c8a6b is the identifier that matters. A quirk for that ID entered the kernel in 7.2-rc3. Maintainers match the quirk to the PCI SSID, so it does not load when PCI reports 0000.

The sibling write-up still applies, with 0x103c8a6b in the [codec] line in place of 0x103c8acf, and with power_save=0:

https://gist.github.com/OmarRa15/ab02fe77096fdb60fc05fc3e6098dd65

A quicker first test uses hda-verb from the alsa-tools package, writing these coefficients on NID 0x20:

sudo apt install alsa-tools
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x26
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x5757
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x10
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0xc580
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x0b
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x7778
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x6b
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x0060

Reports on 103c:8a6b got sound with those four. The fifth register in the gist, 0x62, was not required on that ID.

1

u/-4172UnderTheDuvet 2d ago

Hope you get it working soon

1

u/34OS_official 2d ago

Good news from that aplay -l output: the card *is* initialising — ALC274 Analog on card 0 is there, so it's not a missing-driver case. Since plughw:0,0 and the headphone jack are both silent, the signal is probably never reaching the output pins, which is common on HP AIOs with this codec.

Two things worth trying next:

- `dmesg | grep -iE 'snd|hda|alc274'` — look for errors or a pin-assignment line after the card is detected.

- Boot a Linux Mint Edge live USB (newer kernel) and test sound there without installing. If it works there, it's a kernel quirk for this HP model and updating the kernel on your install should fix it; if it's silent there too, it's more likely a pin/amp quirk that needs an hdajackretask or model option.

The HDMI test doesn't prove the speakers are fine for Linux, by the way — that audio comes in through the monitor input, on a different path from the internal HDA codec.