Package: udev
Version: 175-7

After a recent update in early 2012, I had to give up using my temperature
sensors from LinkUSBi as I did not have the time to look into it further:
http://www.ibuttonlink.com/products/linkusb

SUBSYSTEMS=="usb", ATTRS{serial}=="mysn1", KERNEL=="ttyUSB1",
SYMLINK+="temp0", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{serial}=="mysn2", KERNEL=="ttyUSB2",
SYMLINK+="temp1", MODE="0666"

The root cause is Debian udevd added this file:
/lib/udev/rules.d/60-gpsd.rules

In it, the temperature probes also use the same driver (FTDI) as the
LinkUSBi temperature probe:
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="gps%n",
RUN+="/lib/udev/gpsd.hotplug"

Then, my rules do not work and my temp0 and temp1 become gps1 and gps2
_AND_ it does not symlink to /dev/temp0 and /dev/temp1 since udev grabs
them in Debian's rule and makes them /dev/gps1 and /dev/gps2, which is
incorrect.
I commented out that ATTRS as my gps (I also have one attached) uses
the PL2303 driver.

I am not sure the best way to solve this but it took me nearly 45 minutes
to figure out why it wasn't working, it was due to a Debian file change.

Finally, everything is working properly with the entry commented out that
Debian added into the gpsd file and the rules above added to my
/etc/udev/rules.d/80-usb-drivers.rules file

lrwxrwxrwx 1 root root 7 Dec 15 15:56 /dev/gps0 -> ttyUSB0
lrwxrwxrwx 1 root root 7 Dec 15 15:56 /dev/temp0 -> ttyUSB1
lrwxrwxrwx 1 root root 7 Dec 15 15:56 /dev/temp1 -> ttyUSB2

Justin.

Reply via email to