gpsd.rules.in 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # udev rules for gpsd
  2. # @GENERATED@
  3. #
  4. # This file is Copyright 2010 by the GPSD project
  5. # SPDX-License-Identifier: BSD-2-clause
  6. #
  7. # GPSes don't have their own USB device class. They're serial-over-USB
  8. # devices, so what you see is actually the ID of the serial-over-USB chip.
  9. # Fortunately, just two of these account for over 80% of consumer-grade
  10. # GPS sensors. The gpsd.hotplug wrapper script will tell a running gpsd
  11. # that it should look at the device that just went active, because it
  12. # might be a GPS.
  13. #
  14. # The following setup works on Debian and Ubuntu - something similar
  15. # will apply on other distributions:
  16. #
  17. # /lib/udev/rules.d/25-gpsd.rules
  18. # /lib/udev/gpsd.hotplug
  19. #
  20. # Setting the link in /lib/udev/rules.d activates the rule and determines
  21. # when to run it on boot (similar to init.d processing).
  22. SUBSYSTEM!="tty", GOTO="gpsd_rules_end"
  23. # Prolific Technology, Inc. PL2303 Serial Port [linux module: pl2303]
  24. ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="gps%n", @UDEVCOMMAND@
  25. # ATEN International Co., Ltd UC-232A Serial Port [linux module: pl2303]
  26. ATTRS{idVendor}=="0557", ATTRS{idProduct}=="2008", SYMLINK+="gps%n", @UDEVCOMMAND@
  27. # PS-360 OEM (GPS sold with MS Street and Trips 2005) [linux module: pl2303]
  28. ATTRS{idVendor}=="067b", ATTRS{idProduct}=="aaa0", SYMLINK+="gps%n", @UDEVCOMMAND@
  29. # FTDI 8U232AM / FT232 [linux module: ftdi_sio]
  30. ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="gps%n", @UDEVCOMMAND@
  31. # Cypress M8/CY7C64013 (Delorme uses these) [linux module: cypress_m8]
  32. ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0100", SYMLINK+="gps%n", @UDEVCOMMAND@
  33. # Cypress M8/CY7C64013 (DeLorme LT-40)
  34. ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0200", SYMLINK+="gps%n", @UDEVCOMMAND@
  35. # Garmin International GPSmap, various models (tested with Garmin GPS 18 USB) [linux module: garmin_gps]
  36. ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", SYMLINK+="gps%n", @UDEVCOMMAND@
  37. # Cygnal Integrated Products, Inc. CP210x Composite Device (Used by Holux m241 and Wintec grays2 wbt-201) [linux module: cp210x]
  38. ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="gps%n", @UDEVCOMMAND@
  39. # Cygnal Integrated Products, Inc. [linux module: cp210x]
  40. ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea71", SYMLINK+="gps%n", @UDEVCOMMAND@
  41. # u-blox AG, u-blox 5 (tested with Navilock NL-402U) [linux module: cdc_acm]
  42. ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a5", SYMLINK+="gps%n", @UDEVCOMMAND@
  43. # u-blox AG, u-blox 6 (tested with GNSS Evaluation Kit TCXO) [linux module: cdc_acm]
  44. ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", SYMLINK+="gps%n", @UDEVCOMMAND@
  45. # u-blox AG, u-blox 7 [linux module: cdc_acm]
  46. ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a7", SYMLINK+="gps%n", @UDEVCOMMAND@
  47. # u-blox AG, u-blox 8 (tested with GNSS Evaluation Kit EKV-M8N) [linux module: cdc_acm]
  48. ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a8", SYMLINK+="gps%n", @UDEVCOMMAND@
  49. # MediaTek (tested with HOLUX M-1200E) [linux module: cdc_acm]
  50. ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="3329", SYMLINK+="gps%n", @UDEVCOMMAND@
  51. # Telit wireless solutions (tested with HE910G) [linux module: cdc_acm]
  52. ATTRS{interface}=="Telit Wireless Module Port", ATTRS{bInterfaceNumber}=="06", SYMLINK+="gps%n", @UDEVCOMMAND@
  53. #
  54. # u-blox AG, u-blox 8 (tested with u-blox8 GNSS Mouse Receiver / GR-801) [linux module: cdc_acm]
  55. ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="gps%n", TAG+="systemd", ENV{SYSTEMD_WANTS}="gpsdctl@%k.service"
  56. ACTION=="remove", @UDEVCOMMAND@
  57. LABEL="gpsd_rules_end"