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 ** Attachment added: "use the newest version of canon.c" http://launchpadlibrarian.net/14409638/libgphoto2-canon-trunk.patch ** Changed in: libgphoto2 (Ubuntu) Status: New => Incomplete ** Description changed: 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". - As I was having problems with this camera on previous versions, too, i - know that the camera only supports PTP mode, which doesn't show up in - the list. I remember adding a line to my udev rules to fix this problem - in previous version, but in hardy there is no file like - /etc/udev/rules.d/*-libgphoto2.rules. - Creating /etc/udev/rules.d/45-libgphoto2.rules with the following - content doesnt help either: - - SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="30c0", MODE="0660", - GROUP="plugdev" - - to be sure i didn't mess up the ids, heres the output of lsusb: - - # lsusb | grep -i canon - Bus 003 Device 013: ID 04a9:30c0 Canon, Inc. Digital IXUS 30 (PTP mode) / PowerShot SD200 (PTP mode) - - Why is the rules file missing and how is PTP expected to work without - it? - - Further information: - - I just found the file /usr/share/hal/fdi/preprobe/10osvendor/20-libgphoto2.fdi which contains information on the access methods used by libgphoto, by default this file contains two matching entries for the IXUS 30: - <match key="usb.vendor_id" int="1193"> - <match key="usb.product_id" int="12480"> - <merge key="info.category" type="string">camera</merge> - <append key="info.capabilities" type="strlist">camera</append> - <merge key="camera.access_method" type="string">proprietary</merge> - <merge key="camera.libgphoto2.name" type="string">Canon Digital IXUS 30 (normal mode)</merge> - <merge key="camera.libgphoto2.support" type="bool">true</merge> - </match> - </match> - <match key="usb.vendor_id" int="1193"> - <match key="usb.product_id" int="12480"> - <merge key="info.category" type="string">camera</merge> - <append key="info.capabilities" type="strlist">camera</append> - <merge key="camera.access_method" type="string">ptp</merge> - <merge key="camera.libgphoto2.name" type="string">Canon Digital IXUS 30 (PTP mode)</merge> - <merge key="camera.libgphoto2.support" type="bool">true</merge> - </match> - </match> - - So obviously F-Spot only shows up the first one. 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. - So we need to get rid of the normale mode access method, so that all - applications will use the working PTP mode to access the camera. - - I tried to remove the corresponding lines in the 20-libgphoto2.fdi, - restarting HAL and replugging my camera, but that didn't have any - effects. + We need to get rid of the normal mode access method, so that libgphoto2 + will use the working PTP mode to access the camera. ** Tags removed: udev -- Canon Digital IXUS 30 doesn't show up as PTP https://bugs.launchpad.net/bugs/228154 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
