[Pkg-phototools-devel] Bug#760096: Bug#760096: Acknowledgement (gphoto2: Fails to initialize CanonPowerShot G5 after upgrade from stable)
Helge Kreutzmann
debian at helgefjell.de
Sun Jul 2 06:54:54 UTC 2017
Hello Herbert,
On Tue, Jul 26, 2016 at 01:55:10PM -0300, Herbert Fortes wrote:
>
> > > Can you tell me which mode (normal/PTP) did you use ?
> >
> > How do I find out? I just plug the camera in.
>
> I do not have a camera. But when I plug my
> cell phone I have two options (in the cell
> phone):
>
> - media device. Like a pendrive I guess.
> - camera (PTP))
>
>
> Is there something similar in your camera ?
No.
> > > Can you set '--camera MODEL' and see what happens ? It
> > > will necessary to use '--port' too.
> > >
> > > "--list-cameras" (List supported camera models.) and
> >
> > This "only" gives:
> > helge at samd:~$ gphoto2 --list-cameras | grep G5
> > »Canon PowerShot G5 (PTP mode)«
>
> PTP mode is the only way.
Yes, I believe so as well.
> > > "--list-ports" (List supported port devices) can be
> > > a help.
> >
> > helge at samd:~$ LC_ALL=C gphoto2 -L --camera "Canon PowerShot G5 (PTP mode)" --port "usb:"
> >
> > *** Error ***
> > An error occurred in the io-library ('Bad parameters'): No error description available
> > *** Error (-2: 'Bad parameters') ***
>
> Yes, PTP must be set on the device, if possible. Did
> you try '--auto-detect' ? The manpage says it list
> auto-detected cameras.
As normal user: does not change anything
As root user: works as expected
…
Canon PowerShot G5 (PTP mode) usb:011,002
> > For debugging messages, please use the --debug option.
> > Debugging messages may help finding a solution to your problem.
> > If you intend to send any error or debug messages to the gphoto
> > developer mailing list <gphoto-devel at lists.sourceforge.net>, please run
> > gphoto2 as follows:
> >
> > env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt -L --camera "Canon PowerShot G5 (PTP mode)" --port usb:
> >
> > Please make sure there is sufficient quoting around the arguments.
> >
> > However, I just by chance tried as root:
> > root at samd:~# LC_ALL=C gphoto2 -L
> > There is no file in folder '/'.
> > There is no file in folder '/store_00010001'.
> > There is no file in folder '/store_00010001/MISC'.
> > There is no file in folder '/store_80000001'.
> >
> > Strange, so it must be a permission problem. Also -P works (as root).
>
> Did you check /dev/* ? lsusb and ls -l /dev/bus/usb/003/012 (in my case)
> can show the permissions.
Which device in /dev are you looking for?
root at samd:~# lsusb
…
Bus 011 Device 002: ID 04a9:3085 Canon, Inc. PowerShot G5
…
root at samd:~# ls -lh /dev/bus/usb/011/002
crw-rw-r--+ 1 root plugdev 189, 1281 Jul 2 08:39 /dev/bus/usb/011/002
I'm a member:
root at samd:~# grep plugdev /etc/group
plugdev:x:46:helge
(and I can ls the above file as well)
I run strace -eopen as root and as normal user, and the difference
starts here:
open("/sys/bus", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 EACCES (Permission denied)
I tried to chown /sys/bus (and subdirectories) to root:plugdev, but
this does not work :-((
> regards,
> -- Herbert Parentes Fortes Neto (hpfn)
--
Dr. Helge Kreutzmann debian at helgefjell.de
Dipl.-Phys. http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
Help keep free software "libre": http://www.ffii.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-phototools-devel/attachments/20170702/6b093817/attachment.sig>
More information about the Pkg-phototools-devel
mailing list