Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: ALSA - No Sound (Read 2533 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ALSA - No Sound

Hi All,

Need help - I am stumped.

I am running Artix runit.  With a recent pacman -Syu, ALSA has stopped working.

System configuration:
- Basic install
- Xorg overlay
- xinit
- startx to launch OpenBox

I have tried the obvious.

ALSA mixer - everything unmuted
Speaker-test -c 2 - no sound through speakers
-- tested through tty terminal before startx
-- tested in OpenBox through urxvt terminal
sv status alsa - run: alsa: (pid 844) 16526s

Note: The hardware and speakers can be eliminated as a problem since the audio works fine on another Linux instance running on the same hardware with the same speakers.

Additional information:

uname -srm - Linux 5.12.5-artix1-1 x86_64

/var/cache/pacman/pkg - ls | grep alsa
alsa-lib-1.2.4-3-x86_64.pkg.tar.zst
alsa-topology-conf-1.2.4-2-any.pkg.tar.zst
alsa-ucm-conf-1.2.4-2-any.pkg.tar.zst
alsa-utils-1.2.4-2-x86_64.pkg.tar.zst
alsa-utils-runit-20180226-5-any.pkg.tar.zst
zita-alsa-pcmi-0.3.2-3-x86_64.pkg.tar.zst

/var/cache/pacman/pkg - ls | grep linux
archlinux-keyring-20210110-1-any.pkg.tar.zst
archlinux-mirrorlist-20200920-1-any.pkg.tar.zst
linux-5.12.5.artix1-1-x86_64.pkg.tar.zst
linux-api-headers-5.12.3-1-any.pkg.tar.zst
linux-firmware-20210511.7685cf4-1-any.pkg.tar.zst
linux-headers-5.12.5.artix1-1-x86_64.pkg.tar.zst
linux-lts-5.10.37-1-x86_64.pkg.tar.zst
util-linux-2.36.2-1-x86_64.pkg.tar.zst
util-linux-libs-2.36.2-1-x86_64.pkg.tar.zst

Links to system information:
lshw  - https://paste.artixlinux.org/view/968c6a1a
lscpu - https://paste.artixlinux.org/view/6cbceec4
lsmod - https://paste.artixlinux.org/view/5da8b459
lspci - https://paste.artixlinux.org/view/187d8ed6
dmesg - https://paste.artixlinux.org/view/f0d28fa1

All help appreciated.

LinuxFan

Re: ALSA - No Sound

Reply #1
Bonjour,

What gives  :
cat /proc/asound/cards

Exemple :
If you want to activate card 1 :
Then edit or create  /etc/asound.conf

 And add this:
defaults.pcm.card 1
defaults.ctl.card 1

-------

I have no pulseaudio.

The only pulse package I have (needed) :
libpulse

-------

My alsa packages :

pacman -Qs | grep alsa
local/alsa-card-profiles 1:0.3.21-1
local/alsa-firmware 1.2.4-2
    Firmware binaries for loader programs in alsa-tools and hotplug firmware loader
local/alsa-lib 1.2.4-3
local/alsa-plugins 1:1.2.2-2
local/alsa-topology-conf 1.2.4-2
local/alsa-ucm-conf 1.2.4-2
local/alsa-utils 1.2.4-2
local/alsa-utils-openrc 20200622-1 (openrc-world)
    OpenRC alsa-utils init script
local/zita-alsa-pcmi 0.3.2-3
    The successor of clalsadrv, provides easy access to ALSA PCM devices.

------

My two cents ...

Re: ALSA - No Sound

Reply #2
Code: [Select]
snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC283: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:hp
[    3.023763] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.023770] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.023776] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    3.023780] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    3.023783] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
[    3.316811] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    3.316974] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[    3.317182] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input21
[    3.317374] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input22
[    3.317554] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input23
[    3.317736] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input24
[    3.317913] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input25]

soundcard found by system, is all set as here described? https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture? please read

put here output from your user:
Code: [Select]
groups 

Re: ALSA - No Sound

Reply #3
It could be that as your default soundcard is selected you GPU (hdmi) and thus you need to configure alsa to use yout other card.

So going by this logic provide the output of:
Code: [Select]
aplay -l

After that we can move, otherwise go install "asoundconf" which can help you select the proper sound  card/device. (it might need some configuration as well)

Re: ALSA - No Sound

Reply #4
Hi All,

Thank you for the responses.

Investigation has uncovered three things.

1. An .asoundrc file was created in the home directory after a recent pacman -Syu update.  How this occurred is still a mystery since the .asoundrc file was not created by me.

2. Per the https://alsa.opensrc.org/Asoundrc website we learn the following:

Quote
Neither .asoundrc or /etc/asound.conf is normally required. You should be able to play and record sound without either (assuming your mic and speakers are hooked up properly). If your system won't work without one, and you are running the most current version of ALSA, you probably should file a bug report.

3. Based on the above, renaming the .asoundrc file so it is not read by the alsa library has restored audio to the system.

What is wrong with the installed .asoundrc file is still a mystery and is under investigation.  That said, this problem is considered resolved for now as sound has been restored.

Thank you to all for contributed suggestions.

LinuxFan