Re: Downloading tracks from gps via usb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There seems to be something in addition to just the usb file access
priverlages. When I changed them it changed the error message it did
not resolve the problem as was expected.

I used the following CHMOD command to change the access priverlages
for the usb files

chmod 666 /dev/bus/usb -R

This gave me rw priverlages on the usb files for all users

stephen@stephen-N150P:/$ sudo ls -l dev/bus/usb
[sudo] password for stephen:
total 0
drw-rw-rw- 2 root root 100 May 11 14:39 001
drw-rw-rw- 2 root root  80 May 14 03:18 002
drw-rw-rw- 2 root root  80 May 12 21:04 003
drw-rw-rw- 2 root root  60 May 11 14:39 004
drw-rw-rw- 2 root root  60 May 11 14:39 005

When I tried to use gebabbel or viking to download the tracks from the
gps I got the error message "Found no Garmin USB devices."

listing the usb devices does however show it is present.

stephen@stephen-N150P:/$ lsusb
Bus 001 Device 004: ID 0ac8:c33f Z-Star Microelectronics Corp. Webcam
Bus 001 Device 003: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0a5c:219c Broadcom Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 091e:0003 Garmin International GPS (various models)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Using gpsbabel on the command line without root privileges to download
from the gps also generates the same error message. An strace of
gpsbabel provided the following excerpt.

openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 7 entries */, 32768)     = 168
close(3)                                = 0
openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 7 entries */, 32768)     = 168
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/bus/usb/005",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 EACCES (Permission
denied)
write(2, "Found no Garmin USB devices.\n", 29Found no Garmin USB devices.
) = 29
exit_group(1)



On Fri, May 13, 2016 at 7:47 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, 13 May 2016, Stephen Furner wrote:
>
>> This is the permissions on the files for the USB being used by the Garmin
>>
>> stephen@stephen-N150P:/$ lsusb
>> Bus 001 Device 004: ID 0ac8:c33f Z-Star Microelectronics Corp. Webcam
>> Bus 001 Device 003: ID 0781:5567 SanDisk Corp. Cruzer Blade
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 003 Device 002: ID 0a5c:219c Broadcom Corp.
>> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>> Bus 002 Device 004: ID 091e:0003 Garmin International GPS (various models)
>> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>>
>> stephen@stephen-N150P:/$ ls -l dev/bus/usb/002
>> total 0
>> crw-rw-r-- 1 root root 189, 128 May 11 13:39 001
>> crw-rw-r-- 1 root root 189, 131 May 13 19:03 004
>
> There it is: write permission only for root.  Have you tried installing
> the udev rule recommended on the Ubuntu forum?
>
> Alan Stern
>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux