You are not logged in.

#1 2015-05-03 07:55:50

doblerone
Member
Registered: 2011-12-08
Posts: 218

[SOLVED] XFCE4 changes the assignment of sound card when booting

I did a fresh install of Arch and XFCE4. My system has an Intel sound card:

[david@archdavid ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: MID [HDA Intel MID], device 0: VT1828S Analog [VT1828S Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: MID [HDA Intel MID], device 2: VT1828S Alt Analog [VT1828S Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: MID [HDA Intel MID], device 3: VT1828S Digital [VT1828S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

So I created the corresponding .asoundrc:

[david@archdavid ~]$ cat .asoundrc 
pcm.!default {
    type hw
    card 1
}

But randomly, I realized that when I boot my system I don't have sound! In that case, the output of aplay -l is the following:

[david@archdavid ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: VT1828S Analog [VT1828S Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 2: VT1828S Alt Analog [VT1828S Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 3: VT1828S Digital [VT1828S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

This change in the output of aplay -l happens without plugging anything else to my system.

What is the reason for changing the number of assignment to my sound card?

Thanks in advance.

Last edited by doblerone (2015-05-03 08:44:18)

Offline

#2 2015-05-03 08:20:09

ctxfi-user
Member
Registered: 2010-10-31
Posts: 56

Re: [SOLVED] XFCE4 changes the assignment of sound card when booting

Drop .asoundrc and use options snd-hda-intel index=0 in /etc/modprobe.d/modprobe.conf to ensure HDA Intel MID is the first card on every boot. Reboot after apply the setting.

Read the wiki page on ALSA.

Offline

#3 2015-05-03 08:43:59

doblerone
Member
Registered: 2011-12-08
Posts: 218

Re: [SOLVED] XFCE4 changes the assignment of sound card when booting

ctxfi-user wrote:

Drop .asoundrc and use options snd-hda-intel index=0 in /etc/modprobe.d/modprobe.conf to ensure HDA Intel MID is the first card on every boot. Reboot after apply the setting.

Read the wiki page on ALSA.

Thanks!!!

Offline

Board footer

Powered by FluxBB