You are not logged in.

#1 2012-03-27 04:11:09

thatnewyorker
Member
From: Brooklyn
Registered: 2009-01-24
Posts: 77

Sound Card changes after every reboot

Alright, I've had this little issue since I installed Arch on one of my computers. After every reboot, the sound card changes and I have to manually edit my .asoundrc to get sound. It's not a huge deal but it is very annoying. How do I prevent my system from switching my sound card?

This the output from aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: STX [Xonar STX], device 0: Multichannel [Multichannel]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: STX [Xonar STX], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], 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 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I'm trying to keep the Xonar STX as the default card.


R.I.P In Pieces

Offline

#2 2012-03-27 04:17:32

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,668

Re: Sound Card changes after every reboot

On my machine I have the following in /etc/asound.conf

pcm.!default {
    type hw
    card XFi
}
ctl.!default {
    type hw           
    card XFi
}

Offline

#3 2012-03-28 01:21:41

thatnewyorker
Member
From: Brooklyn
Registered: 2009-01-24
Posts: 77

Re: Sound Card changes after every reboot

skunktrader wrote:

On my machine I have the following in /etc/asound.conf

pcm.!default {
    type hw
    card XFi
}
ctl.!default {
    type hw           
    card XFi
}

Yeah that didn't work. I get a message about .asoundrc being old or corrupted so Alsamixer basically ignores it.


R.I.P In Pieces

Offline

#4 2012-03-28 03:20:38

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Sound Card changes after every reboot

I had three sournd cards at one time and they changed too. One solution is to add to the  file  /etc/modprobe.d/sound.conf with;

options snd-hda-intel index=0 

You'll just have to figure out which card uses which module and exchange snd-hda-intel with that. You can also add the code to modprobe.conf. Naturally you can have several soundcard modules with different indexes. index=0 will be the first card and so on ...

Last edited by swanson (2012-03-28 03:23:01)

Offline

#5 2012-03-30 23:47:25

smudge
Member
Registered: 2011-03-20
Posts: 158

Re: Sound Card changes after every reboot

If one of those cards is on your motherboard you might be able to disable it in the bios which would save you some work.

Slightly differently to swanson, in /etc/modprobe.d/alsa.conf I have:

options snd slots=snd_emu10k1,snd_hda_intel

so snd_emu10k1 (my ancient SB Live) gets preference. Also snd_hda_intel (from nvidia gfx card) is blacklisted (/etc/modprobe.d/blacklist.conf) just to make sure.

Offline

#6 2012-03-31 00:54:54

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Sound Card changes after every reboot

Oh thanks for telling me about the index option. When I had this problem earlier I explicitly loaded the snd modules in rc.conf instead of relying on autodetection. That seemed to make the order the same every time.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#7 2012-03-31 00:57:42

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,668

Re: Sound Card changes after every reboot

thatnewyorker wrote:
skunktrader wrote:

On my machine I have the following in /etc/asound.conf

pcm.!default {
    type hw
    card XFi
}
ctl.!default {
    type hw           
    card XFi
}

Yeah that didn't work. I get a message about .asoundrc being old or corrupted so Alsamixer basically ignores it.

I assume you changed the 'XFi' (my preferred sound card) to 'STX'

Offline

Board footer

Powered by FluxBB