Garmin USB Access In Fedora 19

From steamWiki
Jump to: navigation, search

There is are a lot of blog posts, forum threads, and mailing list message out there related to getting your Garmin GPS device to interface successfully with GPS programs in Linux. I had the same problem but found some of the information out-dated. I attempt to clear some of that up here.

The Information below has been tested in Fedora 19.

Blacklist garmin_gps Drivers

This is the same as I've read everywhere else, correct, and fairly straight forward.

  1. navigate to /etc/modprobe.d/
  2. open or create blacklist.conf and add the following lines to the bottom:
    • #prevent garmin_gps from being loaded
    • blacklist garmin_gps
  3. remove the current instantiation of the garmin_gps driver by running sudo rmmod garmin_gps


Allows unprivileged access to Garmin devices

This is where I couldn't find much accurate info (regarding new versions of Fedora). The "old" info is struck-through.

  1. navigate to /etc/udev/rules.d/
  2. create 51-garmin.rules and add the following lines to the bottom:
    • SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666"
    • ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", MODE="666"
  3. reload the udev rules with sudo udevadm control --reload-rules
  4. unplug and reinsert your Garmin GPS USB Cable.


At this point you should be able to use your Garmin GPS from various programs (such as gpsbabel and Qlandkarte GT) and you should be able to do it without running as root.


Sources

  1. http://stackoverflow.com/questions/7504707/linux-udev-rule-does-not-appear-to-work
  2. http://www.gpsbabel.org/os/Linux_Hotplug.html
  3. https://linuxindetails.wordpress.com/2009/12/30/udevd-sysfs-will-be-removed-in-a-future-udev-version-please-use-attr-to-match-the-event-device/
  4. http://abarry.org/reload-udev-rules-without-restarting-udev/