Devuan fork of gpsd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gpsd.rules.in 3.4 KiB

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