Page 1 of 1

Garmin usb [Solved]

PostPosted: Jul 1st, '12, 12:39
by johng
I am having trouble with Mageia 2 usb permissions.

Using Mageia 1, I could solve the problem by adding:
Code: Select all
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666", GROUP="plugdev"
to /etc/undev/rules.d/51-garmin.rules


This does not work in Mageia 2. I have tried adding:
Code: Select all
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666",OWNER="john",GROUP="users"


This does not make the garmin usb readable. Running qlandkartegt as root allows access to the GPS.

What's the difference with Mageia 2, and what is the cure??

Re: Garmin usb

PostPosted: Jul 1st, '12, 15:49
by doktor5000
Does your user belong to the usb group?

Re: Garmin usb

PostPosted: Jul 2nd, '12, 00:43
by johng
Code: Select all
[root@localhost john]# groups john
john : john


How would I know?

Re: Garmin usb

PostPosted: Jul 2nd, '12, 19:47
by doktor5000
As you queried, or from
Code: Select all
id username
output. You can change it from userdrake (or in MCC -> System -> Manage users on system, select your user -> Edit -> groups tab and check usb group, then logout and login again)

Re: Garmin usb

PostPosted: Jul 2nd, '12, 23:37
by johng
Thank you doktor5000.
I did that, but still get: Failed to open USB device: Permission denied

Code: Select all
$ id john
uid=500(john) gid=500(john) groups=500(john),43(usb),497(usbmux)


I did not have this problem with Mageia 1 or Mandriva before that.

Re: Garmin usb

PostPosted: Jul 3rd, '12, 19:55
by doktor5000
Well, from where did you actually get the file /etc/udev/rules.d/51-garmin.rules as this isn't provided by any Mageia package?
Also please show the entries for your device as they are currently in that file. For that, please use code-tags: ftp://ftp.mandrivauser.de/rpm/rpm/extra ... e_tags.ogv

Re: Garmin usb

PostPosted: Jul 4th, '12, 11:44
by johng
I created /etc/udev/rules.d/51-garmin.rules as suggested at: http://www.gpsbabel.org/os/Linux_Hotplug.html

I have found another site with additional info: http://wiki.openstreetmap.org/wiki/USB_ ... _GNU/Linux

and modified my /etc/udev/rules.d/51-garmin.rules to:
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", MODE="0666", GROUP="plugdev"

which now enables me to download data from my GPS using Mageia 2

Note: Mageia 1 worked with:
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666", GROUP="plugdev"

Thank you doktor5000 for your help

Re: Garmin usb

PostPosted: Jul 4th, '12, 13:04
by isadora
Great you found out johng!!!

Will you please be so king marking the topic as [SOLVED]?
Thanks ahead. :)