GThumb fail to import photos from Canon S1 IS

Bug #22978 reported by Łukasz Halman
10
Affects Status Importance Assigned to Milestone
gthumb (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

My camera is Canon S1 IS. It worked flawlessly in hoary. After upgrade to breezy
it stopped. Gthumb fails to import photos with an error "lock keys failed". I
investigated this issue and it seems the problem is that camera is working in
'normal mode', which is problematic in this case. I works well in 'ptp mode',
which can be forced with 3rd party tools like: gtkam, gphoto, but not gthumb.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Martin could that be a gphoto issue?

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

Can you please install the "gphoto2" package from universe and try

  gphoto2 --auto-detect

? Does it show two interfaces? Also, please do

 lshal > hal.txt

while the camera is plugged in and on, and attach hal.txt here.

Revision history for this message
Łukasz Halman (lukasz-halman) wrote :

Created an attachment (id=4729)
lshal output

Output from lshal while camera is attached.

Revision history for this message
Łukasz Halman (lukasz-halman) wrote :

Gphoto --auto-detect shows only 'normal mode'. However I can force 'ptp mode'
and download pictures from camera. There's a bug in gphoto bugzilla about it:

https://sourceforge.net/tracker/?group_id=8874&atid=108874&func=detail&aid=1224783

Perhaps there's a way to force hal/gphoto to use 'ptp mode' by default? Just how
it did in previous versions?

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

(In reply to comment #4)
> Gphoto --auto-detect shows only 'normal mode'. However I can force 'ptp mode'
> and download pictures from camera. There's a bug in gphoto bugzilla about it:
>
> https://sourceforge.net/tracker/?group_id=8874&atid=108874&func=detail&aid=1224783

Thanks for looking for the upstream bug.

> Perhaps there's a way to force hal/gphoto to use 'ptp mode' by default? Just how
> it did in previous versions?

hal already shows a PTP node for the camera, and since hal does not actually
"do" anything, it can't be forced to anything. However, I can't find a gthumb
command line option for forcing PTP mode, how did you do that? If there was a
switch, I could modify gnome-volume-manager-gthumb to use it if a PTP node is
present.

Revision history for this message
Łukasz Halman (lukasz-halman) wrote :

(In reply to comment #5)
> (In reply to comment #4)
> > Gphoto --auto-detect shows only 'normal mode'. However I can force 'ptp mode'
> > and download pictures from camera. There's a bug in gphoto bugzilla about it:
> >
> >
https://sourceforge.net/tracker/?group_id=8874&atid=108874&func=detail&aid=1224783
>
> Thanks for looking for the upstream bug.
>
> > Perhaps there's a way to force hal/gphoto to use 'ptp mode' by default? Just how
> > it did in previous versions?
>
> hal already shows a PTP node for the camera, and since hal does not actually
> "do" anything, it can't be forced to anything. However, I can't find a gthumb
> command line option for forcing PTP mode, how did you do that? If there was a
> switch, I could modify gnome-volume-manager-gthumb to use it if a PTP node is
> present.

However hal in some way cooperates with gphoto2 database of cameras as far as I
understand. Right now gphoto2 advertises S1 in both normal and ptp mode. The
first one is automatically chosen. Maybe if it was somehow deleted from the list
of supported cameras it will initialize camera in ptp mode?

I can force ptp in two ways:

1. using gphoto with following command:
gphoto2 --camera "Canon Powershot S1 IS (PTP mode)" --port usb: --additional-options

2. I launch gthumb _before_ camera is connected and I click on "Import Photos".
The camera abviously cannot be found and gthumb allows user to choose camera
manually. I chose S1 in ptp mode and connect camera.

L.

Revision history for this message
Neil (neil-christensen) wrote :

> 1. using gphoto with following command:
> gphoto2 --camera "Canon Powershot S1 IS (PTP mode)" --port usb:
--additional-options
>
> 2. I launch gthumb _before_ camera is connected and I click on "Import Photos".
> The camera abviously cannot be found and gthumb allows user to choose camera
> manually. I chose S1 in ptp mode and connect camera.
>
> L.

I am having the same trouble with my Powershot S1 IS. This last comment was
helpful to me, but does not seem to work all the time. I import photos before
the camera is attached. Since it cannot find a camera attached it allows me to
choose my camera. After choosing my camera (in PTP mode), it says "No Images
Found". I then plug my camera in. It still says "No Images Found". I click
import and I get a dialogue saying "No Images Found". I have also tried opening
the choose camera dialogue and then plugging my camera in before I actually
choose my camera. I still get "No Images Found". I had this method work once
but cannot figure out what I did differently that time.

Revision history for this message
Dan Bishop (danbishop) wrote :

I get exxactly the same as above with my Powershot A630. If I plug camera in and select import photos when edgy detects the camera, I get:

An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Do you still get the bug on Ubuntu 7.04?

Changed in gthumb:
assignee: dholbach → desktop-bugs
Revision history for this message
Lorenzo De Tomasi (lorenzo-detomasi) wrote : Same problem on Ubuntu 7.04 with Canon Powershot A430

Same problem on Ubuntu 7.04 with Canon Powershot A430 :-(
I'm a newbie, so please give easy instructions :-)
Thanks

Changed in gthumb:
assignee: desktop-bugs → nobody
status: Needs Info → Unconfirmed
Revision history for this message
Łukasz Halman (lukasz-halman) wrote :

As far as Canon S1IS is concerned everything works fine in 7.04. Camera works in PTP mode with no problems whatsoever.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Does it work for everybody in Feisty or Gutsy?

Changed in gthumb:
status: Unconfirmed → Needs Info
Revision history for this message
Daniel Holbach (dholbach) wrote :

As described in the previous comments, your report lacks the information we need to investigate the problem further. We'll close this report for now - please reopen it if you can give us the missing information.

Changed in gthumb:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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