Linux: ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Tags: hardware, troubleshooting, unixlinux, alsa
Published: 2019-03-03 07:44:37

---
title: Linux: ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
published: true
tags: Hardware,Troubleshooting,UNIX/Linux,ALSA
canonical_url: 
---


![](https://rtfm.co.ua/wp-content/uploads/2011/08/linux-logo.png)Have a fresh Arch Linux system setup.

After some Viber’s fixes (see the [Viber: no connection – qt.network.ssl: Incompatible version of OpenSSL](https://rtfm.co.ua/en/viber-no-connection-qt-network-ssl-incompatible-version-of-openssl/ "Permalink to Viber: no connection – qt.network.ssl: Incompatible version of OpenSSL") post) – sound system sometimes stops working.

It looks like next: run `qmmp`, press _Play_ and:

```
...
DecoderMAD: Fixed rate detected
DecoderMAD: Total time: 297900
ReplayGain: disabled
Dithering: disabled
ALSA lib pcm\_dmix.c:1108:(snd\_pcm\_dmix\_open) unable to open slave
OutputALSA: Error opening PCM device default
OutputWriter: unable to initialize output
StateHandler: Current state: FatalError; previous state: Stopped
DecoderMAD: deleting input\_buf
OutputALSA: setupMixer()
OutputALSA: setupMixer() success
StateHandler: Current state: Stopped; previous state: FatalError
...
```

### The solution

Check audio-devices and drivers:

```
$ lspci -knn|grep -iA2 audio
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. 8 Series/C220 Series Chipset High Definition Audio Controller [1043:8576]
Kernel driver in use: snd\_hda\_intel
Kernel modules: snd\_hda\_intel
--
01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
Subsystem: ASUSTeK Computer Inc. GP107GL High Definition Audio Controller [1043:8613]
Kernel driver in use: snd\_hda\_intel
Kernel modules: snd\_hda\_intel
```

Create the [`/etc/modprobe.d/default.conf`](https://linux.die.net/man/5/modprobe.conf) file:

```
options snd_hda_intel index=1
```

And reboot the system.

Then check audio with for example [`speaker-test`](https://manpages.debian.org/testing/alsa-utils/speaker-test.1.en.html):

```
$ speaker-test -c2
speaker-test 1.1.8
Playback device is default
Stream parameters are 48000Hz, S16\_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period\_size = 262144
was set buffer\_size = 1048576
0 - Front Left
1 - Front Right
^CTime per period = 10.940188
```

Done.


### Similar posts

- <small>02/28/2019</small> [Linux: ALSA lib pcm\_dmix.c:1108:(snd\_pcm\_dmix\_open) unable to open slave](https://rtfm.co.ua/linux-alsa-lib-pcm_dmix-c1108snd_pcm_dmix_open-unable-to-open-slave/)<small> (0)</small>  
- <small>03/29/2017</small> [Arch: Skype – звук и микрофон](https://rtfm.co.ua/arch-skype-zvuk-i-mikrofon/)<small> (0)</small>  
- <small>03/17/2017</small> [Arch: nm-applet serviceUnknown: The name org.freedesktop.secrets was not provided by any .service files](https://rtfm.co.ua/arch-nm-applet-serviceunknown-the-name-org-freedesktop-secrets-was-not-provided-by-any-service-files/)<small> (0)</small>  
- <small>05/06/2017</small> [Arch Linux: запускаем Diablo 2](https://rtfm.co.ua/arch-linux-zapuskaem-diablo-2/)<small> (3)</small>  
- <small>04/20/2017</small> [Arch: VNC-клиент](https://rtfm.co.ua/arch-vnc/)<small> (0)</small>