Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not an expert and this isn't an answer, but I've found the following steps useful in identifying the appropriate attributes to trigger on:</p> <ol> <li>Locate the device path using <code>udevadm</code>, <code>lsusb</code>, or <code>usb-devices</code>. I normally just use <code>lsusb</code> and let tab completion in my shell guide me. In my case, the path is <code>/dev/bus/usb/003/007</code>.</li> <li>Use <code>udevadm</code> to identify the device attributes for rule writing. In my case, I used <code>udevadm info -a --attribute-walk --root --name=/dev/bus/usb/003/007</code>.</li> <li>Write the rule and check that it's triggering. In my case, I'm just changing the device owner to user "stephen" and it's very easy for me to check if it's working by using <code>ls -l /dev/bus/usb/003/007</code>. My rule for this case looks like: <code>SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", OWNER="stephen"</code>. I have a similar rule that puzzled me for a little while because the subsystem was expecting <code>ATTRS</code> not <code>ATTR</code>, which is why I recommend walking the attributes. The rule in this latter case became: `SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", OWNER="stephen".</li> </ol> <p>And, of course, <code>man udev</code> is always helpful. As you said, you should struggle to identify that your rule is triggering properly and may be best off just doing a quick ownership change on the device as I did for a first step. You can run into trouble with bad attributes or symbolic links sometimes and it's </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload