[Solved] USB Speaker
Hi there.
I have a Logitech USB speacker connected to my laptop. Trying to make it work, I searched the similar questions here. I've found some threads and answer was to user alsamixer. My question is, I can see my speaker in alsamixer by pressing F6. But how to make it work? The sound is coming from my laptop's speaker. Funny thing is I can control the volume by my Logitech speacker, but sound never comes out from it! How to make the usb speaker the master? Thank guys. |
Not sure which distro your running. But with debian and only using alsa (pulseaudio never did what it ought to) I can get another sound card going by setting up a local .asoundrc file. One could also do it system wide but that would need root privileges each time I change my sound setup.
Heres my .asoundrc which goes into your home directory Code:
#defaults.ctl.card 2 Just be aware that when you change your sound setup and .asoundrc accordingly you have to restart the program you want to use the new setting with. |
Quote:
I can see my speaker in /proc/asound/cards, but I can't find the conf file .asoundrc! would it be in a different file name? |
You have to create it if its not there. As far as I recall mine wasn't there either. Just fire up your favorite editor and create it.
Mind the . (dot) at the start of the file Code:
$ vi /home/$(id -un)/.asoundrc |
I have a Logitech Z205 my solution is to place the following in /etc/asound.conf. I used that instead of ~/.asoundrc because I wanted it as a global change since I have more than one user account on this laptop.
Code:
# Force USB speaker to default You can get the information you need to use with "aplay -l". This is the output on my system Code:
bash-4.2$ aplay -l Code:
bash-4.2$ arecord -l |
Quote:
Quote:
Hi both there. I've tried to add both files in my machine: Quote:
Quote:
Quote:
|
What is the output of:
aplay -v /usr/share/sounds/pop.wav -or- aplay -v /usr/share/sounds/alsa/Noise.wav Also aplay -L |
I would use only one of the files. Did not look it up but on the corner of mind there is a info that .asoundrc takes precedence over /etc/asound.conf if both files exists. Also in your .asoundrc I would use the number 2. Dunno why but I'd say as you have three cards listed counting up from zero up makes your Z205 number 2. (Also its written as "card 1"). Or just use the name of the card like you have in your asound.conf.
Just make .asoundrc and asound.conf look the same. Use chrises example. As you both have the same gear it should get you going. |
Yes .asoundrc does take precedence over asound.conf as it loads on user log in. You normally would only use one or the other, not both. I use asound.conf because I have more than one user account on this laptop and I'd rather do it system wide rather than by user.
|
Thx guys. It is working now. :cool:
|
All times are GMT -5. The time now is 03:43 AM. |