"For me at least, ubuntu (fiesty 7.04 amd64) never
seems to recognize that I've connected the speakers to my Audigy 2
ZS Notebook PCMCIA card, and merrily continues to huff-puff through
the tinny laptop speakers until I manually go into the sound
preferences, switch over to multichannel playback and vice versa.
Well, I still haven't found an automated solution for the
switching, but here is a little cli-magic to do this in a click.
"If you have alsa on ur system, just use the command "asoundconf
list" first to list out all the soundcards connected to your
system. e.g. on my system, the output is:"