Hi,
I have logitech v.20 usb speakers that work great. Each time I boot however, I need to run "cat /proc/asound/cards" to identify my speakers, which produces the following output:
Code:
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xd5200000 irq 42
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xd0030000 irq 43
2 [Speaker ]: USB-Audio - Logitech USB Speaker
Logitech Logitech USB Speaker at usb-0000:00:1d.0-2, full speed
Now that I see that the USB-Audio speakers are [2] (this changes each time I boot, sometimes it's 0 or 1), I manually edit /usr/share/alsa/alsa.conf and make these two lines point to the appropriate number
Code:
defaults.ctl.card 2
defaults.pcm.card 2
Is there any way to automate this process so that on boot the computer recognizes if the USB is plugged in or uses the internal speakers if not? And even better, is it is also possible to allow it to start out with internal speakers and automatically shift to usb if I plug them in after already having booted? Thank you very much!