Each time I want to use Skype, I have to go in the sound preferences. And there, turn the audio-in to "webcam" and uncheck the "mute" button. It's quite annoying. Is there a way to always keep the same configuration ?
|
Changing default settings for PulseAudioWhen running pulseaudio all settings can be defined by putting custom configuration files in the hidden
To make your webcam the default source we need to know this source's name and number by looking through the list produced by the following command in a terminal:
We then edit the following line in
and replace
Replace It is recommended to first test all commands through the command line interface before changing the configuration files. This can be opened with |
||||
|
try this, click on the speaker icon on your top panel, the click preferences. there you can select a default input option for you microphone and probably change some hardware config to make it work ok. |
|||
|
|
I agree that the problem is that Pulseaudio does not set a USB device as default because it is not present when pulse starts. Soo my solution to this is to hook into the system that does notice when a USB device is connected... UDEV! BTW, these instructions are slightly funky, and I am assuming that you are comfortable doing stuff at the command line, and becoming the root user to update udev files, and making scripts executable. First, find out stuffUSB IdFirst step is to plug in your webcam and find the magic vendor and product numbers by typing
I'm using a Microsoft Lifecam, and it show as
the important part is 045e:072d Pulseaudio deviceNext, while the webcam is connected, find out the pulseaudio device name. Type
Again, I'm looking for the line that starts
so my pulseaudio device name will be UDEV rulesThen I made a new udev rule which is fired when a USB device with vendor=045e and product=072d is inserted. To make a rule, create a new file called Put this line into the file
Remember to replace the ATTR{idVendor} and ATTR{idProduct} with the values for your webcam. What this rule does is run a script to set the usb device for input, that is the Finally, set the webcam for inputQuick overview time. Each time I connect my webcam I want to run the command
But the command needs to run as me (the user running the desktop), but udev runs as the root user - so when udev runs my command I need it to change to my user then run the command. So we have 2 options.
Good luck! |
||||
|
|