Wednesday, August 22, 2007

USB speakers

On PCLinuxOS I can't let the USB speakers work.
I think it might be a missing feature in KDE, more than a pclos issue.
The USB speakers are recognized as a different sound card.
In Gnome there's a nice setting were you just declare which soundcard is your default.
On boot it tries that card, if not present it falls back to the other card.
This works nicely with the USB speakers, just declearing those as the default card.
There are some annoyances when switching the speakers on and off, but it generally works.
Same feature is in Rhythmbox, if I'm not mistaken.
No way to find this in KDE or Amarok, though.

I've found an interesting post for Kubuntu, but should work on pclos as well.


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 09:27 AM.




Reply With Quote