[HowTo] Using Manjaro to acquire GPS data from Garmin eTrex

Difficulty: ★★☆☆☆

1. VERIFY THE CONNECTION WITH THE USB DEVICE

Connect the Garmin device via a USB cable.

The lsusb command displays information about USB buses and connected devices on your machine:

lsusb

The output should be :

Bus 001 Device 027: ID 091e:0003 Garmin International GPS (various models)

2. MAKE SURE GARMIN_GPS MODULE IS NOT LOADED

Next command should give no output

lsmod | grep gps

If it does, you have to remove the module

sudo -rm /lib/modules/*[your active kernel]*/kernel/drivers/usb/serial/garmin_gps.ko.xz

3. VERIFY THE ACCESS PERMISSIONS

Create a udev rule that gives you permission to access the device automatically when mounted:

sudo nano /etc/udev/rules.d/51-garmin.rules

In this text file, enter the following line:

SUBSYSTEM=="usb", ATTR{idVendor}=="091e", ATTRS{idProduct}=="0003" MODE="0666", GROUP="plugdev"

Now reload the udev rules:

sudo udevadm control --reload-rules

Unplug and replugin the GPS.

And recheck now the permissions

ls -al /dev/bus/usb/001/*

4. BLACKLIST THE GARMIN GPS IN THE POWER SETTINGS FILE

Add USB_BLACKLIST="091e:0003 to /etc/default/tlp :

sudo nano /etc/default/tlp

Copy-paste:

USB_BLACKLIST="091e:0003

Press Ctrl+X Enter Y

Now unplug and replug the GPS unit to allow it to be ready to receive data.

5. USE GPSBABEL TO TRANSFER DATA FROM GPS TO COMPUTER

sudo pacman -S gpsbabel

with the following configuration :
INPUT : choose the option «device» with the format «Garmin serial/USB protocol» and «usb :» as device name.

OUTPUT : choose the option «file» with the format «GPX XML». Select «file name» to give a name to your new file. Now you can click on «OK» to start the synchronisation.

The gpx file can be import in a application (for example Viking) or a website dedicated to cartography.

2 Likes