Debian Bug report logs - #760096
gphoto2: Fails to initialize CanonPowerShot G5 after upgrade from stable

version graph

Package: gphoto2; Maintainer for gphoto2 is Debian PhotoTools Maintainers <[email protected]>; Source for gphoto2 is src:gphoto2 (PTS, buildd, popcon).

Reported by: Helge Kreutzmann <[email protected]>

Date: Sun, 31 Aug 2014 18:21:01 UTC

Severity: important

Found in version gphoto2/2.5.4-1

Full log


Message #20 received at [email protected] (full text, mbox, reply):

Received: (at 760096) by bugs.debian.org; 26 Jul 2016 15:55:16 +0000
From [email protected] Tue Jul 26 15:55:16 2016
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-7.2 required=4.0 tests=BAYES_00,CK_HELO_GENERIC,
	DIGITS_LETTERS,FOURLA,HAS_BUG_NUMBER,HELO_DYNAMIC_IPADDR,PGPSIGNATURE,
	URIBL_CNKR autolearn=ham autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 9; hammy, 150; neutral, 323; spammy,
	0. spammytokens: hammytokens:0.000-+--H*c:pgp-sha256, 0.000-+--H*u:1.5.21,
	0.000-+--H*UA:1.5.21, 0.000-+--H*u:2010-09-15, 0.000-+--H*UA:2010-09-15
Return-path: <[email protected]>
Received: from luckmann.name ([213.239.213.133] helo=static.213-239-213-133.clients.your-server.de)
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256)
	(Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1bS4hP-0001ig-VL
	for [email protected]; Tue, 26 Jul 2016 15:55:16 +0000
Received: from localhost (localhost [127.0.0.1])
  (uid 502)
  by static.213-239-213-133.clients.your-server.de with local; Tue, 26 Jul 2016 17:55:09 +0200
  id 0000000000E5E039.00000000579787DD.00004CA6
Date: Tue, 26 Jul 2016 17:55:09 +0200
From: Helge Kreutzmann <[email protected]>
To: Herbert Fortes <[email protected]>
Cc: [email protected]
Subject: Re: [Pkg-phototools-devel] Bug#760096: Acknowledgement (gphoto2:
 Fails to initialize CanonPowerShot G5 after upgrade from stable)
Message-ID: <20160726155509.GA19489@Debian-50-lenny-64-minimal>
References: <20140831181844.GA10923@Debian-50-lenny-64-minimal>
 <[email protected]>
 <20160726101343.GA13219@Debian-50-lenny-64-minimal>
 <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=_luckmann.name-19622-1469548509-0001-2"
Content-Disposition: inline
In-Reply-To: <[email protected]>
X-Public-Key-URL: http://www.helgefjell.de/data/debian_neu.asc
X-homepage: http://www.helgefjell.de/debian
User-Agent: Mutt/1.5.21 (2010-09-15)
[Message part 1 (text/plain, inline)]
Hello Herbert,
thanks for your speedy reply.

On Tue, Jul 26, 2016 at 11:04:30AM -0300, Herbert Fortes wrote:
> Thanks to stopping by.
> 
> Em Ter, 2016-07-26 às 12:13 +0200, Helge Kreutzmann escreveu:
> > Hello,
> > my stable machine died and I set up a testing machine having version
> > 2.5.10-1.
> > 
> > However, gphoto2 does work even less: now the camera is not detected.
> > When I plug it in, I see (in /var/log/syslog):
> > 
> > Jul 26 12:09:21 samd kernel: [11905.608945] usb 11-3: new full-speed USB device number 3 using ohci-pci
> > Jul 26 12:09:22 samd kernel: [11905.780175] usb 11-3: New USB device found, idVendor=04a9, idProduct=3085
> > Jul 26 12:09:22 samd kernel: [11905.780182] usb 11-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> > Jul 26 12:09:22 samd kernel: [11905.780187] usb 11-3: Product: Canon Digital Camera
> > Jul 26 12:09:22 samd kernel: [11905.780191] usb 11-3: Manufacturer: Canon Inc.
> > Jul 26 12:09:22 samd mtp-probe: checking bus 11, device 3: "/sys/devices/pci0000:00/0000:00:16.0/usb11/11-3"
> > Jul 26 12:09:22 samd mtp-probe: bus: 11, device: 3 was not an MTP device
> > 
> > However, gphoto2 does not see it, running
> > env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt -L
> > yields:
> > *** Fehler ***
> > Konnte keine Kamera finden
> > *** Fehler (-105: »Unbekanntes Modell«) ***
> > 
> > (In english: Error, could not find a camera, error (-104, "unknown model")).
> > 
> > It worked in 2.4.x, however, I'm no longer able to (trivially) forward port 
> > this version :-((
> > 
> > The log file is attached, any idea how to rectify this greatly
> > appreciated.
> 
> A quick 'grep' shows that the camera is supported:
> ./libgphoto2/camlibs/canon/doc/Protocol.xml:            <row><entry>PowerShot G5</entry><entry>02-May-03</entry><entry>yes</entry></row>
> ./libgphoto2/camlibs/canon/doc/Protocol.xml:	  as the product ID, which is correct for the PowerShot G5.</para>
> ./libgphoto2/camlibs/canon/canon.c:        {"Canon:PowerShot G5 (normal mode)", CANON_CLASS_5,     0x04A9, 0x3085, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL},
> ./libgphoto2/camlibs/ptp2/library.c:	{"Canon:PowerShot G5 (PTP mode)",       0x04a9, 0x3085, PTPBUG_DELETE_SENDS_EVENT|PTP_CAP|PTP_CAP_PREVIEW},
> 
> Can you tell me which mode (normal/PTP) did you use ? 

How do I find out? I just plug the camera in.

> 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@samd:~$ gphoto2 --list-cameras | grep G5
        »Canon PowerShot G5 (PTP mode)«

> "--list-ports" (List supported port devices) can be
> a help.

helge@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') ***

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 <[email protected]>, 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@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).

Greetings

          Helge

-- 
      Dr. Helge Kreutzmann                     [email protected]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:46:06 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.