<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.9pt 70.9pt 2.0cm 70.9pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=DE link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I&#8217;ll check this one also
to see if I can change it to work with my setup.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>BTW udevinfo has changed
to &#8220;udevadm info&#8221; on my system (Ubuntu 10.04). I hope it still does the same
thing.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Ingo<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>Here's the pd start script I use (it's called at
login):&nbsp;</span><a
href="http://trac.robotcowboy.com/browser/robotcowboy/trunk/scripts/rc_starts_pd"><span
lang=EN-GB>http://trac.robotcowboy.com/browser/robotcowboy/trunk/scripts/rc_starts_pd</span></a></font><span
lang=EN-GB><o:p></o:p></span></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><a
href="http://trac.robotcowboy.com/browser/robotcowboy/trunk/scripts/rc_starts_pd"></a>...
the trac is a bit empty right now as I just set it up last week.<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Mon, May 17, 2010 at 1:22 PM, Ingo Scherzinger &lt;<a
href="mailto:ingo@miamiwave.com">ingo@miamiwave.com</a>&gt; wrote:<o:p></o:p></span></font></p>

<div link=blue vlink=blue>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Thank you Dan,</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>I&#8217;ll check out both ways and see which one will
work best.</span></font><font color=navy><span lang=EN-GB style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'>Ingo</span></font><font color="#888888"><span
lang=EN-GB style='color:#888888'><o:p></o:p></span></font></p>

<div>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Subject:&nbsp;[PD]
udev &amp; usb midi interfaces<o:p></o:p></span></font></p>

<div link=blue vlink=purple>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hi,</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>does
anybody know the search path to get udev information about usb midi interfaces?</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>It
should be something like &#8220;udevadm info -a -p / ??? &#8230;&#8221;. I&#8217;m not realy sure how
to search for the soundcard either.</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I
was using &#8220;lshal&#8221; which gives me a lot of information but I can&#8217;t tell which
part to use for the udev device rules.</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I
read Daniel Drake&#8217;s &#8220;writing udev rules&#8221; but he doesn&#8217;t mention sound at all.</span></font><o:p></o:p></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>Yeah, it's easy
... try<font color=navy><span style='color:navy'><o:p></o:p></span></font></span></font></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=1 face="Courier New"><span lang=EN-GB style='font-size:9.0pt;font-family:
"Courier New"'>udevinfo -a -p $(udevinfo -q path -n /dev/<em><i><font
face="Courier New"><span style='font-family:"Courier New"'>your device</span></font></i></em>)</span></font><span
lang=EN-GB><o:p></o:p></span></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>and
plug in the device ... this command will list all the udev attributes it sees
when it makes the sysfs usb tree. </span>I use it it see what attributes I can
use for writing udev rules. Drake may not explciity list &quot;sound&quot; or
&quot;midi&quot; devices, but they are covered by the tutorial as well ... just
find where the device is mounted in /dev and use that node in udevinfo.<o:p></o:p></font></p>

<div link=blue vlink=purple>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I
really need to write some udev rules to straighten out my 2 usb midi interfaces
and soundcard that get mixed up all the time.</span></font><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>Why udev rules
then ...? </span></font><span lang=EN-GB>I use the portaudio index of the
soundcard to pass to pd with -audiodev on startup (I use -nogui and alsa) and
another script which parses aconnect -io to&nbsp;determine&nbsp;the alsa mdii
index, then calls aconnect again to connect pd with the midi device.&nbsp;<font
color=navy><span style='color:navy'><o:p></o:p></span></font></span></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt'>Actually,
perhaps you are right as it would be nice to have udev run aconnect whenever my
midi device is plugged in.<br>
-- <br>
Dan Wilcox<br>
danomatika<br>
</span><a href="http://www.robotcowboy.com" target="_blank"><span lang=EN-GB>www.robotcowboy.com</span></a></font><font
color=navy><span lang=EN-GB style='color:navy'><o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</body>

</html>