VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Pages: [1] 2

Author Topic: alsa mixer help, how do I keep usb desktop mic from default  (Read 4549 times)

Herpy

  • Vectorite
  • ***
  • Posts: 142
alsa mixer help, how do I keep usb desktop mic from default
« on: December 17, 2011, 09:28:21 am »

Hi vectorians! I installed this neat little distro to my cpu but I have a small little issue. Whenever I boot into Vector with my usb mic pluged in, no sound cause alsa mixer is a derp and bumps it up to default sound card which would not be an issue maybe if it was a usb headset but no it's a desktop mic. So I have to unplug it and reboot then plug it back in to prevent alsa mixer from bumping it as default.

My question is, how do I prevent alsa mixer from bumping my usb mic to default?
Logged
Forever in a box

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #1 on: December 17, 2011, 10:52:41 am »

I've got three different things on the subject.

1. This tutorial here http://www.opensourcebistro.com/blog1/?p=111
really this was first published here in the How to section.
http://forum.vectorlinux.com/index.php?topic=4888.msg32619#msg32619

2. Here is another method
http://www.youtube.com/watch?v=TsgOFHCJAUE

3. This one is kind of a cop-out, but instead of shutting down the computer at the end of the day, simply suspend it instead.  This way the good settings are preserved and you get immediate start up time to boot.
« Last Edit: December 17, 2011, 11:12:02 am by stretchedthin »
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #2 on: December 17, 2011, 11:10:30 am »

Also if you are willing to help me test an application I made to help with the problem then download vDefsound from gslapt.  It is a little utility I made that will detect if a usb device has been made the default sound card and pop up a window allowing you to change the selection.

Please if you do test it, I'd appreciate the feed back.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #3 on: January 04, 2012, 01:23:16 am »

@herpy
What solution finaly worked for you?
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Herpy

  • Vectorite
  • ***
  • Posts: 142
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #4 on: January 04, 2012, 07:19:43 pm »

@herpy
What solution finaly worked for you?
easy, I unplug it before booting it up, then plug it in afterwards.
Logged
Forever in a box

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #5 on: January 04, 2012, 11:28:49 pm »

That works.  ;D

But if you have the time please give the package vDefsound from gslapt a try.
Would be interested in finding out if it works for you.

Should just be a matter of installing vDefsound with gslapt, but if it does not start at boot up, download yad as well.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Pita

  • Vectorian
  • ****
  • Posts: 1342
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #6 on: January 07, 2012, 04:51:17 pm »

Also if you are willing to help me test an application I made to help with the problem then download vDefsound from gslapt.  It is a little utility I made that will detect if a usb device has been made the default sound card and pop up a window allowing you to change the selection.

Please if you do test it, I'd appreciate the feed back.


Tested it. The first command says "rm ~/.asoundrc", however, in VL7-LIGHT there is no such file.
Therefore vDefsound aborted:

$ vDefsound
rm: cannot remove `/home/peter/.asoundrc': No such file or directory
exiting

I did not run alsamixer yet. Will check later.
Logged

Herpy

  • Vectorite
  • ***
  • Posts: 142
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #7 on: January 25, 2012, 09:32:45 am »

That works.  ;D

But if you have the time please give the package vDefsound from gslapt a try.
Would be interested in finding out if it works for you.

Should just be a matter of installing vDefsound with gslapt, but if it does not start at boot up, download yad as well.
vDefsound works!!!! Nice find Ken!
Logged
Forever in a box

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #8 on: January 25, 2012, 11:24:41 am »

That works.  ;D

But if you have the time please give the package vDefsound from gslapt a try.
Would be interested in finding out if it works for you.

Should just be a matter of installing vDefsound with gslapt, but if it does not start at boot up, download yad as well.
vDefsound works!!!! Nice find Ken!

I didn't just find it, I wrote it.  So if you find any bugs I may be able to squash, let me know.

Quote
$ vDefsound
rm: cannot remove `/home/peter/.asoundrc': No such file or directory
exiting

vDefsound should not exit on this error.  It outputs the message if the file is not there but the script should continue.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Herpy

  • Vectorite
  • ***
  • Posts: 142
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #9 on: January 26, 2012, 12:49:49 pm »

That works.  ;D

But if you have the time please give the package vDefsound from gslapt a try.
Would be interested in finding out if it works for you.

Should just be a matter of installing vDefsound with gslapt, but if it does not start at boot up, download yad as well.
vDefsound works!!!! Nice find Ken!

I didn't just find it, I wrote it.  So if you find any bugs I may be able to squash, let me know.

Quote
$ vDefsound
rm: cannot remove `/home/peter/.asoundrc': No such file or directory
exiting

vDefsound should not exit on this error.  It outputs the message if the file is not there but the script should continue.

Skype randomly loses sound and it says audio playback problem
Logged
Forever in a box

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #10 on: January 26, 2012, 09:59:35 pm »

Herpy, was this fixed by the solution you had in your other post?
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Herpy

  • Vectorite
  • ***
  • Posts: 142
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #11 on: January 26, 2012, 10:05:06 pm »

Herpy, was this fixed by the solution you had in your other post?
Yes, it seems to be in order. Will keep you posted if I run into more problems.
Logged
Forever in a box

Herpy

  • Vectorite
  • ***
  • Posts: 142
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #12 on: February 07, 2012, 12:21:16 pm »

Herpy, was this fixed by the solution you had in your other post?
Yep found a bug, it will only play one peice of audio at a time. Causing me to refresh. Big issue for me so see if you can work that bug out.
Logged
Forever in a box

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #13 on: February 07, 2012, 03:49:20 pm »

ok, thanks Herpy.  See what I can do.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

sledgehammer

  • Vectorian
  • ****
  • Posts: 1484
Re: alsa mixer help, how do I keep usb desktop mic from default
« Reply #14 on: April 29, 2012, 04:01:51 pm »

My Logitech usb headset works fine on twinkle and linphone, and on google voice, but when I play a youtube video, sound defaults to the laptop speakers. I tried vDefsound and it errors out, as follows:

Quote
johwhi:$ vDefsound
rm: cannot remove `/home/johwhi/.asoundrc': No such file or directory
exiting
vector:/~

Suggestions?
Logged
VL7.0 xfce4 Samsung RF511
Pages: [1] 2