Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #30212
| From | WG <wg1@gmx.net> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: USB udev rules not working |
| Date | 2020-06-25 18:59 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <rd2l4q$57k$1@gioia.aioe.org> (permalink) |
| References | <rcuu3a$1nsg$1@gioia.aioe.org> |
On 24.06.2020 09:07, WG wrote:
> Greetings!
>
> plugging in a USB Modem (Huawei E220) OpenSuse-42.3 recognizes 2 devces:
> /dev/ttyUSB0 /dev/ttyUSB1
> Sometimes however the systemn assigns /dev/ttyUSB0 and /dev/ttyUSB2.
>
> To solve issues in scripts I want to assign fixed sysmlinks for this
> devices:
>
> /etc/udev/rules.d/10-local-USB.rules:
> ACTION=="add", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1003",
> ATTRS{bInterfaceNumber}=="00" SYMLINK+="USB-Internet-Modem"
>
> ACTION=="add", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1003",
> ATTRS{bInterfaceNumber}=="01" SYMLINK+="USB-SMS-Modem"
>
> Both 'ATTRS{bInterfaceNumber}' are taken from then output of
> udevadm info -a -n /dev/ttyUSB0 and /dev/ttyUSB0
>
> Neither
> udevadm control --reload-rules && udevadm trigger
> nor a reboot oft the system show the desired symlinks.
>
> What am I doing wrong?
>
> Thanks for reading and hints.
>
>
Ok, thanks for your input, I've found the reason.
It failed because I mixed attributes from multiple parent devices.
Using
KERNELS=="1-1:1.0", SUBSYSTEMS=="usb" ...
and
KERNELS=="1-1:1.0", SUBSYSTEMS=="usb" ...
works as required.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Find similar | Unroll thread
USB udev rules not working WG <wg1@gmx.net> - 2020-06-24 09:07 +0200
Re: USB udev rules not working marrgol <marrgol@address.invalid> - 2020-06-24 12:12 +0200
Re: USB udev rules not working WG <wg1@gmx.net> - 2020-06-24 17:44 +0200
Re: USB udev rules not working marrgol <marrgol@address.invalid> - 2020-06-24 21:04 +0200
Re: USB udev rules not working "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2020-06-24 13:03 -0400
Re: USB udev rules not working WG <wg1@gmx.net> - 2020-06-25 18:59 +0200
csiph-web