Files
GoldenCheetah/src/linux
Mark Liversedge 9b079f6c9b Support Garmin USB2 sticks on Linux
Fixup support for USB2 on Linux via libusb. The code
is pretty ghetto with a maze of pre-processor conditionals.
But it works.

Of special note:
* You MUST build with a very specific version of libusb, the
  stock libs in Ubuntu do not work. Might pull the code into
  the main repo, since its pretty darned tiny.

* On Linux access controls for the USB devices is controlled
  by udev, and requires a rule adding to ensure the devie can
  be read/written by users other than root. A udev rule file
  has been added to a 'linux' subdirectory in src.

Some of the timeouts and usb setup/reset code has been adjusted
to ensure the device is always in a consistent state. This appears
to be more important on Linux than Windows for some reason.
2011-10-26 02:29:10 +01:00
..
2011-10-26 02:29:10 +01:00

LINUX ACCESS PERMISSIONS FOR GARMIN USB2 STICK

When using Garmin USB2 sticks on Linux the udev rules that
control access to the USB devices tend to mount the Garmin
stick with permissions that restrict access to normal users.

To change the way permissions are granted you need to configure
udev with a rules file.

On UBUNTU and other Debian based distros this is achieved by 
writing a rules file and placing it in /etc/udev/rules.d.

We have createed that file (51-garmin-usb.rules) here and 
you will need to copy it into /dev/udev/rules.d for the
Garmin stick to be accessable from GoldenCheetah when run
as a normal (not root) user.