On Sun, Nov 30, 2008 at 00:25, <janare@xxxxxxx> wrote: > I have 3 usb devices connected to my PC. All of them are identical. > > Lets call them device1, device2 and device3 > > They are beeing detected as ttyUSB0 (device1), ttyUSB1(device2) and > ttyUSB2(device3), which is exactly what I want. > > The only problem is that when I restart, they often get mixed, and detected > ttyUSB0(device2), ttyUSB1(device3) and ttyUSB2(device1) or any other order. > > I can't create rules for these device from serialnumber, or other details > other than usb-connection port. There is no straight-forward solution, you could use just now. We will need to make "path_id" working for usb-serial devices, and create a bunch of udev rules, so that we create persistent links for serial devices based on the port the device is connected to. Just like we do for disks, video, input today: $ tree /dev/disk/by-path/ /dev/disk/by-path/ |-- pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sdb |-- pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sdb1 ... $ tree /dev/v4l /dev/v4l |-- by-id | `-- usb-046d_09a4_C4B15020-video-index0 -> ../../video0 `-- by-path `-- pci-0000:00:1d.7-usb-0:1:1.0-video-index0 -> ../../video0 $ tree /dev/input /dev/input |-- by-id | |-- usb-Logitech_USB-PS_2_Optical_Mouse-event-mouse -> ../event2 | `-- usb-Logitech_USB-PS_2_Optical_Mouse-mouse -> ../mouse1 |-- by-path | |-- pci-0000:00:1d.2-usb-0:1:1.0-event-mouse -> ../event2 | |-- pci-0000:00:1d.2-usb-0:1:1.0-mouse -> ../mouse1 | |-- platform-i8042-serio-0-event-kbd -> ../event0 ... I will see what I can do. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html