You are not logged in.
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 #0I'm trying to keep the Xonar STX as the default card.
R.I.P In Pieces
Offline
On my machine I have the following in /etc/asound.conf
pcm.!default {
type hw
card XFi
}
ctl.!default {
type hw
card XFi
}Offline
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
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
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_intelso 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
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
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