Garmin usb [Solved]

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Garmin usb [Solved]

Postby johng » Jul 1st, '12, 12:39

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??
Last edited by johng on Jul 6th, '12, 03:03, edited 2 times in total.
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: Garmin usb

Postby doktor5000 » Jul 1st, '12, 15:49

Does your user belong to the usb group?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18016
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Garmin usb

Postby johng » Jul 2nd, '12, 00:43

Code: Select all
[root@localhost john]# groups john
john : john


How would I know?
Last edited by doktor5000 on Jul 3rd, '12, 19:56, edited 1 time in total.
Reason: added code tags, to improve on clarity
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: Garmin usb

Postby doktor5000 » Jul 2nd, '12, 19:47

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)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18016
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Garmin usb

Postby johng » Jul 2nd, '12, 23:37

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.
Last edited by doktor5000 on Jul 3rd, '12, 19:56, edited 1 time in total.
Reason: added code tags, to improve on clarity
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: Garmin usb

Postby doktor5000 » Jul 3rd, '12, 19:55

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18016
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Garmin usb

Postby johng » Jul 4th, '12, 11:44

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
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: Garmin usb

Postby isadora » Jul 4th, '12, 13:04

Great you found out johng!!!

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

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2763
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest