[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unidentified subject!

Dan Ritter wrote:
> You want to ignore the USB ports and focus on the attached
> devices. udev is the mechanism here.
> For example, in /etc/udev/rules.d/70-ups  I have:
> SUBSYSTEM=="usb", ATTR{idVendor}=="0764", ATTR{idProduct}=="0501", SYMLINK+="ups0", GROUP="nut"
> Which means that /dev/ups0 will be assigned to the USB device
> that has an idVendor of 0764 and an idProduct of 0501, and be
> accessible by anyone in the group nut.
> So if you have a MIDI keyboard with idVendor 0499 (Yamaha) and 
> idProduct 1617 (PSR-E353 digital keyboard) then you could plug
> those numbers into a rule like the one above and whenever it was
> connected, it would appear at, say, "/dev/midikb0".
> SUBSYSTEM=="usb", ATTR{idVendor}=="0499", ATTR{idProduct}=="1617", SYMLINK+="midikb0", GROUP="audio"
> lsusb (possibly with a -v) will help you find the currently
> attached devices and their numbers.
> Does that help?

  excellent reply thanks!

  songbird  (not the OP or in need of this, but very useful
                 information anyways...  :)

Reply to: