[SOLVED] ALSA (snd_pcm_dmix_open) unable to open slave

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED] ALSA (snd_pcm_dmix_open) unable to open slave

Postby Piglou » 2015-07-29 17:27

Hi,

After a fresh install with lxde-core, lightdm, alsa-utils, alsactl init (alsactl init 0, alsactl init 1) and settings with alsamixer (volume and unmute), here I am.

No sound anymore, and hidden error messages on aplay command lines.
It was working with the complete task-lxde-desktop package : It means that something is missing here but I don't know what.
For gurus here it will probably be obvious but not for me :wink:

Code: Select all
root@Asus-Julien:~# cd /usr/share/filezilla/resources
root@Asus-Julien:/usr/share/filezilla/resources# dir
16x16  32x32   cyril         dropdown.png  lone         sun    up.png
20x20  48x48   defaultfilters.xml  finished.wav  minimal      tango    xrc
24x24  blukis  down.png         leds.png    opencrystal  theme.xml
root@Asus-Julien:/usr/share/filezilla/resources# aplay finished.wav
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
aplay: main:722: audio open error: No such file or directory
root@Asus-Julien:/usr/share/filezilla/resources#


It's a chance I saw it !
It's like GUI software developers aren't aware about any way to give important information to the user ! :lol: like everybody's living in a terminal or into a cave
Of course it's useful to be able to design scripts that can handle everything by command lines, but it's not supposed be a good GUI for average users like me :wink:

Code: Select all
root@Asus-Julien:/usr/share/filezilla/resources# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: CX20751/2 Analog [CX20751/2 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@Asus-Julien:/usr/share/filezilla/resources#


Code: Select all
root@Asus-Julien:/usr/share/filezilla/resources# alsactl init 0
Found hardware: "HDA-Intel" "Intel Haswell HDMI" "HDA:80862807,80860101,00100000" "0x8086" "0x2010"
Hardware is initialized using a generic method
root@Asus-Julien:/usr/share/filezilla/resources# alsactl init 1
Found hardware: "HDA-Intel" "Conexant CX20751/2" "HDA:14f1510f,1043178d,00100100" "0x1043" "0x178d"
Hardware is initialized using a generic method

So, what do you think about that ? Where is the missing part ?

Thank you in advance !
Last edited by Piglou on 2015-07-30 11:26, edited 1 time in total.
Piglou
 
Posts: 14
Joined: 2015-07-25 11:55

Re: ALSA (snd_pcm_dmix_open) unable to open slave

Postby Head_on_a_Stick » 2015-07-29 17:41

Piglou wrote:
Code: Select all
root@Asus-Julien:/usr/share/filezilla/resources# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: CX20751/2 Analog [CX20751/2 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@Asus-Julien:/usr/share/filezilla/resources#

Your HDMI output is set the default, you need to set the "Analog" [sic] output as the default.
https://wiki.debian.org/ALSA#Troubleshooting

What drivers are the cards using?
Code: Select all
lspci -knn|grep -iA2 audio
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12480
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: ALSA (snd_pcm_dmix_open) unable to open slave

Postby Piglou » 2015-07-29 18:12

Hi,

I tried to start my computer with a TV on the HDMI socket but even if I had the picture, the sound problem was the same.

For the link you described, I didn't know what to put as name instead of "snd-trident" and "snd-usb-audio" :

/etc/modprobe.d/sound:
Code: Select all
  options snd-trident index=0
  options snd-usb-audio index=1

Do you have any idea ? I hope this is not "snd_hda_intel" because it's the same for HDMI and PCH :lol:
EDIT : I'm now trying with PCH and HDMI
EDIT 2 : Not working !
EDIT 3 : It worked in the past (before reinstalling) on this same computer, just had to unmute the sound card that was already the second one (but it still worked)

For the drivers you asked :
Code: Select all
root@Asus-Julien:/home/jrobin# lspci -knn|grep -iA2 audio
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
   Subsystem: Intel Corporation Device [8086:2010]
   Kernel driver in use: snd_hda_intel
--
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
   Subsystem: ASUSTeK Computer Inc. Device [1043:178d]
   Kernel driver in use: snd_hda_intel
root@Asus-Julien:/home/jrobin#


Also, I looked after the differences between "lxde-core" and "task-lxde-desktop" but I didn't find anything about the sound that haven't been installed now
Piglou
 
Posts: 14
Joined: 2015-07-25 11:55

Re: ALSA (snd_pcm_dmix_open) unable to open slave

Postby Head_on_a_Stick » 2015-07-29 18:52

Remove all the files you have created and instead create a file called /etc/modprobe.d/default.conf with this content:
Code: Select all
options snd_hda_intel index=1

Then reboot.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12480
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: ALSA (snd_pcm_dmix_open) unable to open slave

Postby Piglou » 2015-07-29 23:25

That's awesome :D
Thank you !

But how did you know that ?
I'm reading debian wikis, I try to simplify and separate things in order to handle the complexity, forgetting others complicated advices to understand and play things myself, but for inventing such solutions using files I saw nowhere (well in fact the file was not even existing in the disk nor in the wiki !), I'm satisfied because it works, and, at the same time, I'm completely lost, because in front of "2 cards", simply using the one I want is impossible for me without asking for help here (as no card was working I wasn't even aware of cause of the problem)

I hope this can help somebody else looking on Google !
And if you can give me some tips to find this kind of solutions, it would be really great :D

Thank you very much for all
Piglou
 
Posts: 14
Joined: 2015-07-25 11:55

Re: ALSA (snd_pcm_dmix_open) unable to open slave

Postby Head_on_a_Stick » 2015-07-30 07:45

Excellent stuff -- you're welcome :)
Piglou wrote:how did you know that ?

My AMD laptop has an analogue card and an HDMI card that both use the snd-hda-intel driver and that file works on my system.

I got the trick from the magnificent ArchWiki:
https://wiki.archlinux.org/index.php/Ad ... sound_card

Please add "[SOLVED]" to the title of the thread to help others with this problem.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12480
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable