[arch-general] finding corresponding udev rule for device

Damjan Georgievski gdamjan at gmail.com
Wed Jun 19 17:04:18 EDT 2013


> hi all,
> i want to customize the udev rule, that assigns my garmin gps device with a
> device name. permissions need to be set different, so users have read/write
> access.
> the only problem is, that i dont know, which rule it is i have to customize.
> is there any way to determine, which standard udev rule applies for which
> device?

What you need to do is create your own rules file in
/etc/udev/rules.d/
something with a big number, let's say 99-my-garmin.rules

To find out how to make the rule (I suspect it's an usb device)... first run
`udevadm monitor` then plug the device you will get the device path
... something like
/devices/pci0000:00/0000:00:12.2/usb1/.../.../...

Then run `udevadm info --attribute-walk --path=/devices/.../.../...`
and you'll get a bunch of properties that you can match in your own rule file.



-- 
damjan


More information about the arch-general mailing list