automatically use USB headset

Rynhardt Kruger rynkruger at gmail.com
Tue Sep 27 03:51:00 EDT 2011


You can also change the default sound device for the current shell environment by changing the environment variable ALSA_CARD to the index of your desired card. e.g., if your headset is index 1 you can do:

export ALSA_CARD=1

Take care,

Rynhardt

* Jason White <jason at jasonjgw.net> [110927 09:32]:
> John G. Heim <speakup at braille.uwo.ca> wrote:
> > Anybody know how to get linux to 
> >automatically use a USB headset for sound when you plug it in?
> 
> The only means of changing the default sound device in Alsa that I am aware of
> is with a .asoundrc file (or the equivalent in /etc).
> 
> So if you're prepared to create or modify configuration files in a script then
> you could probably write a shell script to do it.
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup



More information about the Speakup mailing list