Canon Digital IXUS 30 doesn't show up as PTP

Bug #228154 reported by Christoph Pegel
24
Affects Status Importance Assigned to Milestone
libgphoto2 (Ubuntu)
Fix Released
Medium
Martin Pitt
Hardy
Fix Released
Medium
Unassigned

Bug Description

Connecting my Canon Digital IXUS 30 to my notebook just triggers the import dialog and i can click import to start f-spot-import. Then F-Spot asks me to choose my camera and lists the following:

Canon Digital IXUS 30 (normal mode), usb:
Canon Digital IXUS 30 (normal mode), usb: 003,012

I tried both, F-Spot just gives an "Unknown Error".

I installed gphoto2 to use its command line interface to do some more debugging and got the following:

$ env LANG=C gphoto2 --list-cameras | grep "IXUS 30 "
 "Canon Digital IXUS 30 (normal mode)" (EXPERIMENTAL)
 "Canon Digital IXUS 30 (PTP mode)"
$ env LANG=C gphoto2 --auto-detect
Model Port
----------------------------------------------------------
Canon Digital IXUS 30 (normal mode) usb:
Canon Digital IXUS 30 (normal mode) usb:004,012

So it uses the normal mode by default, which fails.
Forcing PTP with --camera "Canon Digital IXUS 30 (PTP mode)" works fine and i can access the camera via CLI.

We need to get rid of the normal mode access method, so that libgphoto2 will use the working PTP mode to access the camera.

description: updated
description: updated
Revision history for this message
Christoph Pegel (rio-eta-ori) wrote :

Finally, I managed to fix the problem.

I downloaded the sources of libgphoto2 and patched the canon.c to the newest trunk revision. This patch comments out the lines that force libgphoto to use normal mode for models that hang.

I attached a patch to update the canon.c

Changed in libgphoto2:
status: New → Incomplete
description: updated
Changed in libgphoto2:
status: Incomplete → New
Revision history for this message
James Westby (james-w) wrote :

Hi,

Attached is a debdiff that would make the necessary change for
you.

However, the package should probably be merged from Debian
at the same time.

Thanks,

James

Changed in libgphoto2:
importance: Undecided → Medium
status: New → Triaged
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → Triaged
Martin Pitt (pitti)
Changed in libgphoto2:
assignee: nobody → pitti
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

I fixed James' patch (changelog: hardy-proposed, and he forgot to add the patch to debian/patches/00list), sponsored it, and accepted it into hardy-proposed. Can you please test the package in hardy-proposed and give feedback here? Thanks!

Changed in libgphoto2:
status: Triaged → Fix Committed
Revision history for this message
Christoph Pegel (rio-eta-ori) wrote :

Thanks Martin,

The package just reached the pool and i succesfully tested it. Everything uses the PTP driver as it should and the affected cameras should work without flaws again.

Revision history for this message
Martin Pitt (pitti) wrote :

Splendid, thanks for testing!

Martin Pitt (pitti)
Changed in libgphoto2:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libgphoto2 - 2.4.0-9ubuntu1

---------------
libgphoto2 (2.4.0-9ubuntu1) intrepid; urgency=low

  * Merge with Debian unstable. Remaining Ubuntu changes:
    - Use HAL's automatic ACLs instead of udev rules for controlling
      permissions on USB devices:
      + debian/control: Change udev recommendation to hal.
      + debian/libgphoto2-2.post{inst,rm}, debian/rules: Do not install/remove
        udev rules.
      + Drop debian/libgphoto2-2.README.Debian, since it does not apply.
    - 30_additional_camera_support.dpatch: Updated camera support from
      upstream SVN, and merge our previously separate bug fix cherrypick
      dpatches into this patch as well. This includes the fix for LP: #228154.

libgphoto2 (2.4.0-9) unstable; urgency=high

  * Adopt the package within pkg-phototools:
     - Set the Maintainer to the group.
     - Add Frederic Peters and myself as Uploaders.
     - Add Vcs-Browser and Vcs-Git fields accordingly.
  * debian/control:
     - Add a Depends: on libltdl3-dev to libgphoto2-2-dev since libltdl.la
       is referenced in a bunch of “.la” files (Closes: #467527). Setting
       urgency to “high” accordingly, since the bug is also in testing.
     - Add a Homepage field.
     - Make lintian happy, delete the “-1” bits from the versioned B-D on
       libhal-dev.
     - Bump Standards-Version from 3.7.2 to 3.7.3 (no changes needed).
  * debian/copyright:
     - Point to LGPL-2 rather than just LGPL, which now points to
       LGPL-3 (the copyright says LGPL-2+, but let's be precise).
  * debian/patches:
     - Add 75_deprecated_hal_key.dpatch: Replace the deprecated HAL
       property “info.bus” with “info.subsystem” in the HAL FDI generation
       tool, thanks to Martin Pitt (Closes: #472656).

 -- Martin Pitt <email address hidden> Thu, 15 May 2008 10:51:07 +0200

Changed in libgphoto2:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in libgphoto2:
status: Fix Committed → Fix Released
Revision history for this message
Marcus Meissner (meissner) wrote :

its disabled in the canon.c in upstream libgphoto2 too, and will be in the 2.4.2 and later releases

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.