You are not logged in.
Pages: 1
Hello,
I recently installed Arch on my Desktop PC which has a DisplayPort connection to my monitor, where my monitor connects to my studio monitor speakers. The display port is plugged directly into my NVIDIA Geforce GTX 1660 Ti.
Running speaker-test I get a playback error:
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directoryI verified I have alsa-utils installed and ran alsamixer and unmuted all channels on all devices.
I also tried installing asoundconf,
[will@arch ~]$ asoundconf list
Names of available sound cards:
PCH
NVidia
DeviceThen I set my default device to my preferred (NVidia)
asoundconf set-default-card NVidiaI run speaker-test and I get the same error:
[will@arch ~]$ speaker-test
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directoryHow do I fix this?
Last edited by ultimatr (2021-03-21 00:42:19)
Offline
Please use code rather than quote tags for outputs.
asoundconf tends to create broken configuration . Remove the config it generated then actually check which devices are available with
aplay -lthen follow https://wiki.archlinux.org/index.php/Ad … sound_card to change the actual devices you are using. HDMI cards are often on a different device rather than 0 so your config would look something like, if we picked the first option in the link I posted
defaults.pcm.!card Nvidia
defaults.pcm.device 3 #or 7 or 9 depending on which the driving device is.You can test this without changing the configuration directly by using the -D option of speaker test like
speaker-test -Dhw:1,3 -c2the -c2 here is important because HDMI devices often have issues with mono streams.
Offline
Take a look here [SOLVED] Audio not available in GNOME, this resolve the problem for me.
Offline
Please use code rather than quote tags for outputs.
asoundconf tends to create broken configuration . Remove the config it generated then actually check which devices are available with
aplay -lthen follow https://wiki.archlinux.org/index.php/Ad … sound_card to change the actual devices you are using. HDMI cards are often on a different device rather than 0 so your config would look something like, if we picked the first option in the link I posted
defaults.pcm.!card Nvidia defaults.pcm.device 3 #or 7 or 9 depending on which the driving device is.You can test this without changing the configuration directly by using the -D option of speaker test like
speaker-test -Dhw:1,3 -c2the -c2 here is important because HDMI devices often have issues with mono streams.
I removed asoundconf and its configs.
[will@arch ~]$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB PnP Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
Subdevices: 1/1
Subdevice #0: subdevice #0It looks like my NVidia device is card 2.
From the wiki and what you wrote, I edited my /etc/asound.conf
[will@arch ~]$ sudo cat /etc/asound.conf
defaults.pcm.card 2
defaults.pcm.!card NVidia
defaults.ctl.card 2Still no success on sudo speaker-test -c2, nor sudo speaker-test -Dhw:2 -c2
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directoryEDIT:
Adding
defaults.pcm.device 7to my /etc/asound.conf made the speaker-test start playing, however, only out of my left speaker.
Last edited by ultimatr (2021-03-20 17:28:30)
Offline
You didn't quite do what I wrote. You can leave defaults.pcm.!card Nvidia but you need to figure out the correct device for defaults.pcm.device where your choices are one of 3,7,8,9,10,11,12 that'll be a bit of trial and error with speaker test or parsing /proc/asound/NVidia/eld* to figure out which device actually has a monitor on it
Edit: Glad to hear, how did you invoke the speaker-test? If you do not add a -c2 you are only testing a mono channel.
Last edited by V1del (2021-03-20 17:31:04)
Offline
You didn't quite do what I wrote. You can leave defaults.pcm.!card Nvidia but you need to figure out the correct device for defaults.pcm.device where your choices are one of 3,7,8,9,10,11,12 that'll be a bit of trial and error with speaker test or parsing /proc/asound/NVidia/eld* to figure out which device actually has a monitor on it
Edit: Glad to hear, how did you invoke the speaker-test? If you do not add a -c2 you are only testing a mono channel.
Invoked the speaker-test with -c2 and sudo because before it seemed there was an I/O error.
sudo speaker-test -c2Still only hearing the left channel through speaker-test.
Looked at /proc/asound/NVidia/eld* and found where monitor_present was 1.
cat /proc/asound/NVidia/eld#0.4
monitor_present 1
eld_valid 1
monitor_name ED323QUR A
connection_type DisplayPort
eld_version [0x2] CEA-861D or below
edid_version [0x3] CEA-861-B, C or D
manufacture_id 0x7204
product_id 0x67e
port_id 0x2000
support_hdcp 0
support_ai 0
audio_sync_delay 0
speakers [0x1] FL/FR
sad_count 1
sad0_coding_type [0x1] LPCM
sad0_channels 2
sad0_rates [0xe0] 32000 44100 48000
sad0_bits [0xe0000] 16 20 24EDIT: Right channel working. Just a loose cable connecting to my monitor.
Thank you, V1del! ![]()
Last edited by ultimatr (2021-03-20 17:50:49)
Offline
Okay, reopening this thread because the problem came back after I formatted and reinstalled Arch.
/etc/asound.confdefaults.pcm.card 2
defaults.!card NVidia
defaults.pcm.device 7
defaults.ctl.card 2aplay -l**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB PnP Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
Subdevices: 1/1
Subdevice #0: subdevice #0cat /proc/asound/NVidia/eld#0.4monitor_present 1
eld_valid 1
monitor_name ED323QUR A
connection_type DisplayPort
eld_version [0x2] CEA-861D or below
edid_version [0x3] CEA-861-B, C or D
manufacture_id 0x7204
product_id 0x67e
port_id 0x0
support_hdcp 0
support_ai 0
audio_sync_delay 0
speakers [0x1] FL/FR
sad_count 1
sad0_coding_type [0x1] LPCM
sad0_channels 2
sad0_rates [0xe0] 32000 44100 48000
sad0_bits [0xe0000] 16 20 24Offline
Actually the alsamixer just keeps muting my shit every time I boot. Goddamn it.
Offline
run
sudo alsactl storeafter unmuting the relevant control, that will store the volume settings for the next boot.
Offline
run
sudo alsactl storeafter unmuting the relevant control, that will store the volume settings for the next boot.
I rebooted another time and my NVidia card switched from card 2 to card 1. This is possibly due to my other devices alsa is detecting like my mic and motherboard audio out/in.
I stored my settings in alsactl.
Set my /etc/asound.conf to
defaults.pcm.!card NVidia
defaults.ctl.!card NVidia
defaults.pcm.device 7Hopefully that fixes this issue.
Last edited by ultimatr (2021-03-21 03:43:49)
Offline
Pages: 1