<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hello,</p>
    <p><br>
    </p>
    <p>thanks for the response.</p>
    <p>My rule is in "55-my-rules.rules"</p>
    <p>I also tried it with "ATTRS{bInterfaceNumber}" instead of the "ENV{ID_USB_INTERFACE_NUM}
      ", but also no success.</p>
    <p><br>
    </p>
    <p>Regards</p>
    <p><br>
    </p>
    <p>Daniel <br>
    </p>
    <div class="moz-cite-prefix">Am 09.10.2024 um 15:59 schrieb Mantas
      Mikulėnas:<br>
    </div>
    <blockquote type="cite" cite="mid:CAPWNY8VUbA0GC9F5TdRTy8t5nkokatDyF5UiPML_bHXWTwgGbQ@mail.gmail.com">
      
      <div dir="auto">
        <div>Did you place your rules in the correct order?
          ENV{ID_USB_INTERFACE_NUM} is set by usb_id in
          50-udev-default.rules, so it would be available in
          60-foo.rules but not in 20-foo.<br>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Wed, Oct 9, 2024, 16:29
              Daniel Spannbauer <<a href="mailto:ds@marco.de" moz-do-not-send="true" class="moz-txt-link-freetext">ds@marco.de</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
              <br>
              <br>
              our own device (see attachement for udevadm info
              --attribute-walk) <br>
              should have a symlink.<br>
              <br>
              Therefore I create the following udev rule:<br>
              <br>
                SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", <br>
              ENV{ID_USB_INTERFACE_NUM}=="02", ATTRS{idVendor}=="1dfb",
              <br>
              ATTRS{idProduct}=="0010", SYMLINK+="2a"<br>
              <br>
              But a "udevadm test /sys/class/tty/ttyACM1" shows, that
              there is no <br>
              match, a symlink is not created. If I remofe the "ENV"
              pattern, the rule <br>
              is working.<br>
              <br>
              Any idea, whats wrong here?<br>
              <br>
              System is opensuse LEAP 15.5, RPM-VErsion of UDEV is
              249.16-150400.8.25.7<br>
              <br>
              <br>
              Best regards<br>
              <br>
              <br>
              Daniel<br>
              <br>
              <br>
              -- <br>
              Daniel Spannbauer                           
               Systemadministration<br>
              marco Systemanalyse und Entwicklung GmbH      Tel   +49
              8333 9233-27 Fax -11<br>
              Rechbergstr. 4-6, D 87727 Babenhausen         Mobil +49
              171 4033220<br>
              <a href="https://www.marco.de" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://www.marco.de</a> 
                                      Email <a href="mailto:ds@marco.de" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">ds@marco.de</a><br>
              Geschäftsführer Martin Reuter, Torsten Lukas  HRB 171775
              Amtsgericht München<br>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel Spannbauer                             Systemadministration
marco Systemanalyse und Entwicklung GmbH      Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4-6, D 87727 Babenhausen         Mobil +49 171 4033220
<a class="moz-txt-link-freetext" href="https://www.marco.de">https://www.marco.de</a>                          Email <a class="moz-txt-link-abbreviated" href="mailto:ds@marco.de">ds@marco.de</a>
Geschäftsführer Martin Reuter, Torsten Lukas  HRB 171775 Amtsgericht München</pre>
  </body>
</html>