Mailinglist Archive: opensuse (1698 mails)
| < Previous | Next > |
Re: [opensuse] USB, udev and serial numbers [SOLVED]
- From: Roger Oberholtzer <roger@xxxxxx>
- Date: Wed, 14 Dec 2011 15:51:03 +0100
- Message-id: <1323874263.14878.55.camel@acme.pacific>
On Wed, 2011-12-14 at 15:00 +0100, Roger Oberholtzer wrote:
This command lists the complete names of the variables you can use in
the udev rules file.
udevadm info --query=all --attribute-walk --name=/dev/whatever.the.name.is
Interesting that the serial value is a different name than the one shown
in 'lsusb -v' or in 'udevadm monitor' when the device is plugged in. Is
more really merrier?
My rule should be:
BUS=="usb", ATTRS{serial}=="A7004luX", MODE="0666", SYMLINK+="usbp2",
OWNER="rst", GROUP="users"
Yours sincerely,
Roger Oberholtzer
OPQ Systems / Ramböll RST
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
roger.oberholtzer@xxxxxxxxxx
________________________________________
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx
On Wed, 2011-12-14 at 14:38 +0100, Lars Müller wrote:
On Wed, Dec 14, 2011 at 02:25:59PM +0100, Roger Oberholtzer wrote:
[ 8< ]
The serial number is different for each converter. So it seems like the
value to use.
I have made a udev rule that should make a symlink to the device, and
relax the permissions:
BUS=="usb", SYSFS{iSerial}=="A7004luX", MODE="0666", SYMLINK+="usbp2",
OWNER="rst", GROUP="users"
After reloading the rules (udevadm control --reload-rules), I would like
to see the symlink created when I plug in the device. Unfortunately,
that is not the case.
For another device, I use SYSFS{idVendor} to determine the vendor.
iSerial seems to be in the same group of variables. Perhaps it is not
and only the lsusb listing makes it appear so.
A google of 'udev iSerial' returned nothing a all. How odd.
This command lists the complete names of the variables you can use in
the udev rules file.
udevadm info --query=all --attribute-walk --name=/dev/whatever.the.name.is
Interesting that the serial value is a different name than the one shown
in 'lsusb -v' or in 'udevadm monitor' when the device is plugged in. Is
more really merrier?
My rule should be:
BUS=="usb", ATTRS{serial}=="A7004luX", MODE="0666", SYMLINK+="usbp2",
OWNER="rst", GROUP="users"
Yours sincerely,
Roger Oberholtzer
OPQ Systems / Ramböll RST
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
roger.oberholtzer@xxxxxxxxxx
________________________________________
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx
| < Previous | Next > |