blob: 61143b8f6bf5a54787e7e0b2771b6cd671370a63 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001# 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
22SUBSYSTEM!="tty", GOTO="gpsd_rules_end"
23
24# Prolific Technology, Inc. PL2303 Serial Port
25ATTR{idVendor}=="067b", ATTR{idProduct}=="2303", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
26# ATEN International Co., Ltd UC-232A Serial Port [pl2303]
27ATTR{idVendor}=="0557", ATTR{idProduct}=="2008", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
28# FTDI 8U232AM
29ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
30# Cypress M8/CY7C64013 (DeLorme uses these)
31ATTR{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)
33ATTR{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)
35ATTR{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)
37ATTR{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)
39ATTR{idVendor}=="1546", ATTR{idProduct}=="01a5", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
40# FTDI FT232
41ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
42# u-blox 4
43ATTR{idVendor}=="1546", ATTR{idProduct}=="01a4", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
44
45ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper"
46
47LABEL="gpsd_rules_end"