You are not logged in.

#1 2022-10-23 11:44:30

newbienewb
Member
Registered: 2022-10-23
Posts: 9

[SOLVED] Audio not working on fresh arch linux install

Hi, as title states I'm having trouble getting audio working on a fresh arch-linux install. I have read the wiki and some relevant [solved] threads, but I'm clearly doing something wrong and wondering if anyone can spot what it is.

Here is the output of aplay -l:

**** List of PLAYBACK Hardware Devices ****
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
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 13: HDMI 7 [HDMI 7]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 14: HDMI 8 [HDMI 8]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 15: HDMI 9 [HDMI 9]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 16: HDMI 10 [HDMI 10]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 17: HDMI 11 [HDMI 11]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Running speaker-test doesn't complain about anything, but there is no sound:

speaker-test -c0

speaker-test 1.2.7

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 192 to 2097152
Period size range from 64 to 699051
Using max buffer size 2097152
Periods = 4
was set period_size = 524288
was set buffer_size = 2097152
0 - Front Left
Time per period = 12.010986
0 - Front Left

The contents of ~/.asoundrc:

defaults.pcm.card 0
defaults.ctl.card 0

The contents of /etc/modprobe.d/alsa.conf:

options snd-intel-dspcfg dsp_driver=1

I've made sure to unmute Master in alsamixer.

Last edited by newbienewb (2022-10-30 16:59:35)

Offline

#2 2022-10-23 16:01:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: [SOLVED] Audio not working on fresh arch linux install

Remove the alsa.conf and the .asoundrc, make sure sof-firmware is installed and reboot, recheck repost aplay -l

Which exact system/model is it?

Please use code instead of quote tags for outputs. Maybe throw in a

sudo dmesg | grep -iE 'sof|snd'

Last edited by V1del (2022-10-23 16:04:52)

Offline

#3 2022-10-24 19:56:11

newbienewb
Member
Registered: 2022-10-23
Posts: 9

Re: [SOLVED] Audio not working on fresh arch linux install

Thanks for your reply. I removed alsa.conf and .asoundrc and the sound started to work. Since a reboot however, it's stopped working.

The output of aplay -l:

aplay -l
aplay: device_list:275: no soundcards found...

The output of sudo dmesg | grep -iE 'sof|snd':

sudo dmesg | grep -E 'snd|sof'
[    0.031107] software IO TLB: area num 16.
[    1.061132] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    1.061132] software IO TLB: mapped [mem 0x000000004e6ce000-0x00000000526ce000] (64MB)
[    1.185101] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
[    5.391544] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    5.391744] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[    5.607316] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    5.607409] sof-audio-pci-intel-tgl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[    5.607419] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    5.607546] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    6.351993] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    6.397137] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    6.465259] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[    6.467773] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    6.467775] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[    6.467777] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[    6.583214] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    6.583217] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   10.263592] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.280276] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.306164] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.412171] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.412731] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.423198] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.424123] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.425369] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.427326] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.429801] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.431782] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.433716] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.435834] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.436512] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.438270] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.491358] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.501401] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   10.503074] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   20.616292] sof_sdw sof_sdw: snd_soc_register_card failed -517
[   20.616328] platform sof_sdw: deferred probe pending

I'm using a Dell XPS 9320.

Last edited by newbienewb (2022-10-24 19:57:37)

Offline

#4 2022-10-24 20:10:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: [SOLVED] Audio not working on fresh arch linux install

Does manually running

modprobe -r sof-audio-pci-intel-tgl; modprobe sof-audio-pci-intel-tgl

fix things?

Offline

#5 2022-10-24 20:13:14

newbienewb
Member
Registered: 2022-10-23
Posts: 9

Re: [SOLVED] Audio not working on fresh arch linux install

The output is

modprobe -r sof-audio-pci-intel-tgl; modprobe sof-audio-pci-intel-tgl
modprobe: FATAL: Module sof-audio-pci-intel-tgl not found.
modprobe: FATAL: Module sof-audio-pci-intel-tgl not found in directory /lib/modules/6.0.2-arch1-1

and the output of aplay -l etc remains unchanged. I have sof-firmware and linux-firmware installed.

Offline

#6 2022-10-24 20:37:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: [SOLVED] Audio not working on fresh arch linux install

Ah fuck that happens when I trust dmesg to give me the module name try

modprobe -r snd-sof-pci-intel-tgl; modprobe snd-sof-pci-intel-tgl

instead

Offline

#7 2022-10-24 20:40:37

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: [SOLVED] Audio not working on fresh arch linux install

As V1del suggested, did you install sof-firmware?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#8 2022-10-24 20:45:03

newbienewb
Member
Registered: 2022-10-23
Posts: 9

Re: [SOLVED] Audio not working on fresh arch linux install

modprobe -r snd-sof-pci-intel-tgl; modprobe snd-sof-pci-intel-tgl
modprobe: ERROR: could not insert 'snd_sof_pci_intel_tgl': Operation not permitted

The output is the same if I run the command as sudo. Thanks for the suggestion d.ALT, as per my last post I confirmed that I've sof-firmware installed.

Offline

#9 2022-10-24 21:09:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: [SOLVED] Audio not working on fresh arch linux install

run both as sudo of course

Offline

#10 2022-10-25 19:02:13

newbienewb
Member
Registered: 2022-10-23
Posts: 9

Re: [SOLVED] Audio not working on fresh arch linux install

I ran both as sudo and got the output

modprobe: ERROR: could not insert 'snd_sof_pci_intel_tgl': Operation not permitted

However, after switching user to root it worked (weird?), with the output of aplay -l:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofsoundwire [sof-soundwire], device 2: Speaker (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofsoundwire [sof-soundwire], device 5: HDMI 1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofsoundwire [sof-soundwire], device 6: HDMI 2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofsoundwire [sof-soundwire], device 7: HDMI 3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

And the sound is working, so thanks!

What's going on here? Is there a way I can persist these changes? Does it include editing the modules section of /etc/mkinitcpio.conf?

Last edited by newbienewb (2022-10-25 19:03:00)

Offline

#11 2022-10-25 19:33:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: [SOLVED] Audio not working on fresh arch linux install

Maybe try doing that, but from what I've been seeing it's a somewhat known race condition with initializing the modules. The "surefire" way to delay that properly is probably running that reload and unload dance in a systemd service started on boot. See https://github.com/thesofproject/linux/issues/3777 and https://github.com/thesofproject/linux/issues/3960

FWIW if I'm reading the logistics in that last link correctly, this might be fixed in the current linux 6.0.3-arch3 release in the testing repo, maybe give that a shot, the commits mentioned in the second link have been backported on that kernel version.

Offline

#12 2022-10-30 17:03:00

newbienewb
Member
Registered: 2022-10-23
Posts: 9

Re: [SOLVED] Audio not working on fresh arch linux install

Thanks for that. The issue has now been solved for me for several days.

sudo modprobe -r snd-sof-pci-intel-tgl; modprobe snd-sof-pci-intel-tgl

Fixed the issue manually. As V1del said, this seems to be a known race condition with initialising the modules.

But, in order to persist these changes, I did nothing. I've upgraded a few packages since the break so it's entirely possible this issue is now fixed by some relevant package or arch release.

Offline

#13 2023-06-12 22:16:22

maykel535
Member
Registered: 2015-11-26
Posts: 11

Re: [SOLVED] Audio not working on fresh arch linux install

Any solutions permanently:

sudo modprobe -r snd-sof-pci-intel-tgl; modprobe snd-sof-pci-intel-tgl

I have dell xps 9320  and exec this commando when reboot always the laptop...

Offline

Board footer

Powered by FluxBB