View Single Post
Old January 1st, 2007   #10
ctsdownloads
Ubuntu Extra Shot
 
Join Date: Apr 2006
Beans: 371
Ubuntu 9.10 Karmic Koala
Lightbulb Re: switching between USB speakers and PCI sound card

Here is a fix for ya; although not a GUI one perhaps - but it is clickable.

open a shell and type

Quote:
asoundconf list
Then make a note of the sound cards you have.

In my case, I have
CK8S
UART
Headset

Since I know that CK8S is my on-board sound card and the headset is - A HEADSET, then I can create switches for each:

First new text file, write:

#! /bin/sh -f
sudo asoundconf set-default-card (your main soundcard - no brackets)
so mine looks like this:

Quote:
#! /bin/sh -f
sudo asoundconf set-default-card CK8S
OK, save this and then create one just like it for your headset.

Congrats, now you have two cool looking icons (Ubuntu Dapper) that do nothing whatsoever! Just kidding, go ahead and right click on each of them. Goto properties and then permissions. Under owner, check off the Execute option. Then click the close button at the bottom.

OK, are you ready? Click on the one for your headset - boom, it will ask you how you wish to run this. Choose "in the terminal" and then enter the password - you just changed the default sound card without needing to hack the .conf file manually.

From here on out, just click as you wish to toggle between the two. You may not have to enter the password each time, it's a timed sort of deal.

If using to toggle media in a browser, you will need to close the browser with each new toggle. With on the desktop media files however, you will need to close whatever program you were using for the same affect.

In addition, this also seems to clean up sound issues that are assigned in Skype. In short, once assigned the settings in Skype are not staying set.

Last edited by ctsdownloads; January 3rd, 2007 at 04:27 AM..
ctsdownloads is offline   Reply With Quote