Skip to main content
Topic: [SOLVED] Fresh install, no sound (Read 1232 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Fresh install, no sound

Hello,
it's been a while since I was able to fuzz around with artix. Now that I am back to 'normality' I was able to get a 'new' computer. Of course first thing I did was installing artix as my OS. Took some time to set everything up(I got a bit rusty in the meantime) and now I am struggling with the last issue: sound.
I have no sound output whatsoever from mpv, firefox or anything else. I try to use my headphone jacks, which seems to be served from the Intel onboard chipset. Here some things I checked:
Code: [Select]
[manoca@lumpy ~]$ cat /proc/asound/cards 
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0x1fff010000 irq 127
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf1000000 irq 17
and
Code: [Select]
[manoca@lumpy ~]$ inxi -A
Audio:
  Device-1: Intel 200 Series PCH HD Audio driver: snd_hda_intel
  Device-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel
  Sound API: ALSA v: k6.1.6-artix1-1 running: yes

alsamixer shows the 'auto-mute mode' on 'disabled'

when I start up mpv I get the following:
Code: [Select]
[manoca@lumpy ~]$ mpv http://198.245.60.88:8080
 (+) Audio --aid=1 (mp3 2ch 44100Hz)
File tags:
 icy-title: imagiro - Wool Gloves [10GU]
[ao/pipewire] Could not connect to context '(null)': Host is down
AO: [alsa] 48000Hz stereo 2ch float
A: 00:00:02 / 00:00:07 (35%) Cache: 4.3s/220KB

so I tried starting it with the --ao=alsa and the pipewire message goes away but still no sound
Code: [Select]
[manoca@lumpy ~]$ mpv --ao=alsa http://198.245.60.88:8080
 (+) Audio --aid=1 (mp3 2ch 44100Hz)
File tags:
 icy-title: Kupla - Sleepy Little One [10GF]
AO: [alsa] 48000Hz stereo 2ch float
A: 00:00:09 / 00:00:13 (69%) Cache: 3.9s/198KB

I can see mpv 'playing' as the time of the stream is running constantly, but no sound.

I tried to install pulseaudio and start mpv with --ao=pulse with the same outcome. Stream seems to run but no sound.

I added the 'asound.conf' to /etc/ as describe in this thread https://forum.artixlinux.org/index.php/topic,1706.0.html

Code: [Select]
[manoca@lumpy ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20632 Analog [CX20632 Analog]
  Subdevices: 1/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 1: NVidia [HDA NVidia], device 3: HDMI 0 [LG Ultra HD]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [E27q-20]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[manoca@lumpy ~]$ cat /etc/asound.conf
defaults.pcm.card 0
defaults.ctl.card 0

but still nothing. Does anyone has some ideas I could try? Every hint is highly appreciated ;)

EDIT: I just realized that the beep on shutdown(I do not remember artix beeping on shutdown, but hey it is what it is :D) is coming through my speakers. Everything else remains silent.
as always, correct me if I'm wrong ;)

Re: Fresh install, no sound

Reply #1
 
 Hello, sound not my thing but would be helpful if you could mention what desktop environment/init system you currently use. If you installed Artix from bear metal iso and not from those full-fledged iso's you might have a missing package that is 'optional' but in your configuration case might be required.

Second  I'd be looking if all relevant kernel sound modules are loaded. 
Code: [Select]
$ lsmod

To see if it's a module fault you can try boot a live usb with a sound working iso and issue lsmd and see if are any differences with what
you have on artix

 Once happened to me sound didn't work cos in xfce DE had a switch that oddly enough was turned off by default.
 
 On device no. 2 says "Device-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel"  so your system uses intel driver for
 nvidia?!?!
 Think you need invidia driver for the sound and not snd_hda_intel
 If that's the case this package could help, check it out nvidia 525.85.05-2

Re: Fresh install, no sound

Reply #2
Thanks for your answer. I did install from the base iso and am using openrc as init system. As DE i have installed plasma(KWin is my WM if that is of any help).

I am pretty sure, that card 0 device 0 should be the right one, as aplay -l shows all other devices with HDMI and I guess those are the speakers built into the monitors(or at least the outputs on my graphicscard; yes I know it is bad nvidia, but it was for free, soo...)? Plus I guess the Intel onboard should be the right one, as I am using the headphone jack, which comes with the motherboard.

As mentioned above, some sound comes through as the shutdown beep is clearly coming from the speakers plugged into the headphone jack.

I'll try the lsmod command tomorrow. Do you have any additional information on what to look for with this command?
as always, correct me if I'm wrong ;)

Re: Fresh install, no sound

Reply #3
 Yeah when you look  in the right hand side when issue lsmod a module that is in a working state shows a 1 if is not in use shows a 0 and shows what other linked modules are in use

Another thing recommended by arch wiki is: "If added to the initramfs, do not forget to run mkinitcpio every time there is a nvidia driver update"

Code: [Select]
# mkinitcpio -P

Reboot may be needed

Re: Fresh install, no sound

Reply #4
The sound module looks like it is loaded according to the output of the "aplay -l".
The onboard audio device is listed as the first device.
The thing I noticed was the onboard has 5 outputs.
One analogue and 4 HDMI ports.

If everything related to output is un-muted in "alsamixer".
The question of which output on the onboard audio device is in use presents itself.

Since the example used was mpv, the audio-device can be discovered by running:
Code: [Select]
mpv --audio-device=help
Once the list is displayed, copy the device you want and place as an audio device in the ~/.config/mpv/mpv.conf file and it should work.

For example ~/.config/mpv/mpv.conf with my onboard intel generic chipset using the alsa device:
Snipped from the "mpv --audio-device=help":
Code: [Select]
'alsa/front:CARD=Generic,DEV=0' (HD-Audio Generic, ALC1220 Analog/Front output / input)
'alsa/iec958:CARD=Generic,DEV=0' (HD-Audio Generic, ALC1220 Digital/IEC958 (S/PDIF) Digital Audio Output)
The device is in-between the single quote marks.

Set to the analogue output jack(s).
Code: [Select]
audio-device=alsa/front:CARD=Generic,DEV=0

Set to the digital iec958 output jack.
Code: [Select]
audio-device=alsa/iec958:CARD=Generic,DEV=0

Hopefully audio will vibrate from the speakers.

Re: Fresh install, no sound

Reply #5
Thanks for the replies. I had a look at the lsmod as mentioned above. I don't really know what modules are responsible for sound, but I guess it is the snd* ones. They all seem to used by something, but the snd_hda_intel is not. Maybe that is the issue?

Code: [Select]
[manoca@lumpy ~]$ lsmod | grep snd
snd_hda_codec_conexant    32768  1
snd_hda_codec_generic    98304  1 snd_hda_codec_conexant
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_codec_hdmi     86016  2
snd_hda_intel          61440  0
snd_intel_dspcfg       36864  1 snd_hda_intel
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
snd_hda_codec         188416  4 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core          118784  5 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               172032  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              49152  1 snd_pcm
snd                   131072  8 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm
soundcore              16384  1 snd

I also tried to do the thing with mpv itself(although I think the problem is a bit deeper, as firefox is also not able to play sound). Here the output of the mpv command:

Code: [Select]
[manoca@lumpy ~]$ mpv --audio-device=help
[ao/pipewire] Could not connect to context '(null)': Host is down
List of detected audio devices:
  'auto' (Autoselect device)
  'alsa' (Default (alsa))
  'alsa/default:CARD=PCH' (HDA Intel PCH, CX20632 Analog/Default Audio Device)
  'alsa/sysdefault:CARD=PCH' (HDA Intel PCH, CX20632 Analog/Default Audio Device)
  'alsa/front:CARD=PCH,DEV=0' (HDA Intel PCH, CX20632 Analog/Front output / input)
  'alsa/surround21:CARD=PCH,DEV=0' (HDA Intel PCH, CX20632 Analog/2.1 Surround output to Front and Subwoofer speakers)
  'alsa/surround40:CARD=PCH,DEV=0' (HDA Intel PCH, CX20632 Analog/4.0 Surround output to Front and Rear speakers)
  'alsa/surround41:CARD=PCH,DEV=0' (HDA Intel PCH, CX20632 Analog/4.1 Surround output to Front, Rear and Subwoofer speakers)
  'alsa/surround50:CARD=PCH,DEV=0' (HDA Intel PCH, CX20632 Analog/5.0 Surround output to Front, Center and Rear speakers)
  'alsa/surround51:CARD=PCH,DEV=0' (HDA Intel PCH, CX20632 Analog/5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
  'alsa/surround71:CARD=PCH,DEV=0' (HDA Intel PCH, CX20632 Analog/7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
  'alsa/hdmi:CARD=PCH,DEV=0' (HDA Intel PCH, HDMI 0/HDMI Audio Output)
  'alsa/hdmi:CARD=PCH,DEV=1' (HDA Intel PCH, HDMI 1/HDMI Audio Output)
  'alsa/hdmi:CARD=PCH,DEV=2' (HDA Intel PCH, HDMI 2/HDMI Audio Output)
  'alsa/hdmi:CARD=NVidia,DEV=0' (HDA NVidia, LG Ultra HD/HDMI Audio Output)
  'alsa/hdmi:CARD=NVidia,DEV=1' (HDA NVidia, E27q-20/HDMI Audio Output)
  'alsa/hdmi:CARD=NVidia,DEV=2' (HDA NVidia, HDMI 2/HDMI Audio Output)
  'alsa/hdmi:CARD=NVidia,DEV=3' (HDA NVidia, HDMI 3/HDMI Audio Output)
  'jack' (Default (jack))

I tried to make the config file as requested. It was not there by default so I had to create it and paste this one-liner(I want to use the headphone jack on the front panel, so I guess this is the right one?):
Code: [Select]
[manoca@lumpy ~]$ cat ~/.config/mpv/mpv.conf
audio-device=alsa/front:CARD=PCH,DEV=0

I checked alsamixer for the unmute option again. There are three options on F6 for me and I guess the HDA Intel PCH is the right one?

https://postimg.cc/MccXkc7Z

But my speakers still refuse to vibrate ;)
as always, correct me if I'm wrong ;)

Re: Fresh install, no sound

Reply #6
But my speakers still refuse to vibrate ;)

I would pragmatically find out what hardware is available:

Code: [Select]
cat /proc/asound/cards

and read here:

https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card
https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#An_example_of_setting_default_device_using_%22defaults%22_node
https://wiki.archlinux.org/title/ALSA_configuration_examples
https://wiki.archlinux.org/title/ALSA_troubleshooting
https://wiki.archlinux.org/title/ALSA_troubleshooting#No_headphone_sound_with_onboard_intel_sound_card
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: Fresh install, no sound

Reply #7
Thank you for your reply. As mentioned in the original post, I've already tried to set the default via /etc/asound.conf and it did not work.
In the troubleshooting article you've linked I've found a command to send directly to a specific device(if I read that correct). So I tried it. None of them seems to generate vibration in my speakers. Here's what I tried:
Code: [Select]
[manoca@lumpy ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20632 Analog [CX20632 Analog]
  Subdevices: 1/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 1: NVidia [HDA NVidia], device 3: HDMI 0 [LG Ultra HD]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [E27q-20]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[manoca@lumpy ~]$ aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
[manoca@lumpy ~]$ aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
[manoca@lumpy ~]$ aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
[manoca@lumpy ~]$ aplay -D plughw:0,8 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
[manoca@lumpy ~]$ aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
[manoca@lumpy ~]$ aplay -D plughw:1,7 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
[manoca@lumpy ~]$ aplay -D plughw:1,8 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
[manoca@lumpy ~]$ aplay -D plughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

btw, my asound.conf looks like this:
Code: [Select]
defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0

still no sound.
as always, correct me if I'm wrong ;)


Re: Fresh install, no sound

Reply #9
 
 I don't think that 'snd_hda_intel' should be ZERO. Or it's ZERO cos some other thing might prevent it to kick in. It should be at least 1.
 In my case it's 4

 Another thing crossed my mind you can do is start from command line firefox and see the output after trying to play some video. If nothing relevant is in there you might wanna look in about:support in firefox (advanced firefox settings). There scroll at about half that page where it reads 'Failure Log' and see what error messages you have there.
 Have a look also bellow 'Failure Log' where is 'Media' who knows you may have some luck there.

 

Re: Fresh install, no sound

Reply #10
XD yes of course I was(as usual) a complete moron and did not recognize the MM on master volume. I always just looked at the Auto-Mute Mode and having it on disabled. Thanks for this precious hint. After unmuting it everything works fine.
At least I learned some new stuff, I guess.
Thanks again to everbody replying here. Issue solved.
as always, correct me if I'm wrong ;)