<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:inherit;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
h3
        {mso-style-priority:9;
        mso-style-link:"Heading 3 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:13.5pt;
        font-family:"Calibri",sans-serif;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.Heading3Char
        {mso-style-name:"Heading 3 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 3";
        font-family:"Calibri",sans-serif;
        font-weight:bold;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:491337765;
        mso-list-template-ids:1029236566;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:13.0pt;font-family:"Arial",sans-serif;color:#111111'>Looking to accomplish the following:<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:6.0pt;margin-left:22.5pt;text-indent:-.25in;mso-list:l0 level1 lfo1;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:10.0pt;font-family:Symbol;color:#111111'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>        </span></span></span><![endif]><span style='font-size:11.5pt;font-family:"inherit",serif;color:#111111'>Change default microphone from analog mic to logitech 920C Webcam Mic (or back the other way) from the command line.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:45.0pt;text-indent:-.25in;mso-list:l0 level2 lfo1;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:10.0pt;font-family:Symbol;color:#111111'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>        </span></span></span><![endif]><span style='font-size:11.5pt;font-family:"inherit",serif;color:#111111'>would like to be able to do this using either/or/both the vendor ID, product id rather than the ugly long complicated device name. My scripting skills are rudimentary so this is lost on me.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:22.5pt;text-indent:-.25in;mso-list:l0 level1 lfo1;background:white;vertical-align:baseline'><![if !supportLists]><span style='font-size:10.0pt;font-family:Symbol;color:#111111'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>        </span></span></span><![endif]><span style='font-size:11.5pt;font-family:"inherit",serif;color:#111111'>If that does not work, reset the USB connection to the camera so that it is rediscovered.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:13.0pt;font-family:"Arial",sans-serif;color:#111111'>Background<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'>I have a linux kiosk system that boots fresh every time and is configured from a config file on a web server. Currently I have two microphones connected to the kiosk; an analog mic into the microphone port and a logitech 920C with internal mic. Generally the internal mic comes up as the default. I can pass in commands from the config file and I would like the ability to choose which microphone is active after boot using this method. the system recognizes both microphones but the logitech does not seem to pass any sound into the system even after manipulating it in pavucontrol. The only way I've been able to make it work after a fresh boot is to disconnect it physically and reconnect it, at which point it functions as expected.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:13.0pt;font-family:"Arial",sans-serif;color:#111111'>What I've tried<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'>I've tried a number of methods to try and change the default microphone from analog to the logitech. The below code has worked in changing the default device but it made no change in the function of the microphone. Is this possibly because the Logitech shows up with it’s own sound card?<o:p></o:p></span></p><p class=MsoNormal style='background:#EFF0F1;vertical-align:baseline'><span style='font-size:10.0pt;font-family:Consolas;color:#111111;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1'>$ pacmd "set-default-source device-name-of-logitech"<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'>I can mute and unmute and change volume of the source with the below code but it has no effect on function<o:p></o:p></span></p><p class=MsoNormal style='background:#EFF0F1;vertical-align:baseline'><span style='font-size:10.0pt;font-family:Consolas;color:#111111;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1'>$ pactl set-source-mute 0 1<o:p></o:p></span></p><p class=MsoNormal style='background:#EFF0F1;vertical-align:baseline'><span style='font-size:10.0pt;font-family:Consolas;color:#111111;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1'>$ pactl set-source-volume 0 50%<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'>I've also tried to reset the usb device using the below code. When doing so the logitech will dissapear from pavucontrol and then reappear but still without any functional results to make the microphone send audio<o:p></o:p></span></p><p class=MsoNormal style='background:#EFF0F1;vertical-align:baseline'><span style='font-size:10.0pt;font-family:Consolas;color:#111111;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1'>sudo sh -c "echo 0 > /sys/bus/usb/devices/1-4.6/authorized"<o:p></o:p></span></p><p class=MsoNormal style='background:#EFF0F1;vertical-align:baseline'><span style='font-size:10.0pt;font-family:Consolas;color:#111111;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1'>sudo sh -c "echo 1 > /sys/bus/usb/devices/1-4.6/authorized"<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'>It seems like the only thing that works successfully and repeatedly is to physically disconnect/reconnect the camera from the computer. It's a bit of a hack but if I could reproduce that action from the command line I may be able to get it to work, though not very elegantly.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'>Also, it would be great to be able to send these commands by referencing the vendorID and productID as I'm not always certain of what index the devices will have if the physical connections are slightly different from system to system. As mentioned before my command line scripting skills are pitiful so any help in doing this would be appreciated.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'>Any help frankly is appreciated...thanks in advance.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white;vertical-align:baseline'><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#111111'>Rich<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>