Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | # udev rules for gpsd |
| 2 | # $Id$ |
| 3 | # |
| 4 | # GPSes don't have their own USB device class. They're serial-over-USB |
| 5 | # devices, so what you see is actually the ID of the serial-over-USB chip. |
| 6 | # Fortunately, just two of these account for over 80% of consumer-grade |
| 7 | # GPS sensors. The gpsd.hotplug.wrapper script will tell a running gpsd |
| 8 | # that it should look at the device that just went active, because it |
| 9 | # might be a GPS. |
| 10 | # |
| 11 | # The following setup works on Debian - something similar will apply on |
| 12 | # other distributions: |
| 13 | # |
| 14 | # /etc/udev/gpsd.rules |
| 15 | # /etc/udev/rules.d/025_gpsd.rules -> ../gpsd.rules |
| 16 | # /lib/udev/gpsd.hotplug.wrapper |
| 17 | # /lib/udev/gpsd.hotplug |
| 18 | # |
| 19 | # Setting the link in /etc/udev/rules.d activates the rule and determines |
| 20 | # when to run it on boot (similar to init.d processing). |
| 21 | |
| 22 | SUBSYSTEM!="tty", GOTO="gpsd_rules_end" |
| 23 | |
| 24 | # Prolific Technology, Inc. PL2303 Serial Port |
| 25 | ATTR{idVendor}=="067b", ATTR{idProduct}=="2303", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 26 | # ATEN International Co., Ltd UC-232A Serial Port [pl2303] |
| 27 | ATTR{idVendor}=="0557", ATTR{idProduct}=="2008", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 28 | # FTDI 8U232AM |
| 29 | ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 30 | # Cypress M8/CY7C64013 (DeLorme uses these) |
| 31 | ATTR{idVendor}=="1163", ATTR{idProduct}=="0100", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 32 | # PS-360 OEM (Microsoft GPS sold with Street and Trips 2005) |
| 33 | ATTR{idVendor}=="067b", ATTR{idProduct}=="aaa0", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 34 | # Garmin International GPSmap, various models (tested with Garmin GPS 18 USB) |
| 35 | ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 36 | # Cygnal Integrated Products, Inc. CP210x Composite Device (Used by Holux m241) |
| 37 | ATTR{idVendor}=="10c4", ATTR{idProduct}=="ea60", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 38 | # u-blox AG, u-blox 5 (tested with Navilock NL-402U) |
| 39 | ATTR{idVendor}=="1546", ATTR{idProduct}=="01a5", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 40 | # FTDI FT232 |
| 41 | ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 42 | # u-blox 4 |
| 43 | ATTR{idVendor}=="1546", ATTR{idProduct}=="01a4", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 44 | |
| 45 | ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper" |
| 46 | |
| 47 | LABEL="gpsd_rules_end" |