Bug 179313

Summary: gphoto2 does not detect Canon A610 camera
Product: [Fedora] Fedora Reporter: Yusuf Ma <yusufma77>
Component: gphoto2Assignee: Radek Vokál <rvokal>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-02 21:07:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
debug info returned by "env LANG=C gphoto2 --debug --summary"
none
debug info created by "env LANG=C gphoto2 --debug --summary" as root none

Description Yusuf Ma 2006-01-30 06:45:53 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.8) Gecko/20060126 Fedora/1.5-5 Firefox/1.5

Description of problem:
"gphoto2 --auto-detect" returns nothing after the Caon A610 camera is connected. It used to work in FC4. I ran "env LANG=C gphoto2 --debug --summary" as suggested. The returned debug info is included in the attachment. It seems that the key 'model' was successfully set to 'Canon PowerShot A610 (PTP mode)', but gphoto2 still said "Could not find USB device" afterwards.

Version-Release number of selected component (if applicable):
gphoto2-2.1.99-4

How reproducible:
Always

Steps to Reproduce:
1.Connect the camera to USB port
2.run "gphoto2 --auto-detect"
  

Actual Results:  No camera is detected

Expected Results:  The camera is correctly detected

Additional info:

Comment 1 Yusuf Ma 2006-01-30 06:48:19 UTC
Created attachment 123857 [details]
debug info returned by "env LANG=C gphoto2 --debug --summary"

Comment 2 Radek Vokál 2006-01-31 08:34:55 UTC
Can you try running the same command as root, I was trying to fix the HAL
permissions recently and they still might be wrong.. 

Comment 3 Radek Vokál 2006-01-31 09:25:22 UTC
Also try gphoto2-2.1.99-5 and new udev and libusb.

In newer udev versions we've moved away from /proc/bus/usb/XXX/YYY to
/dev/bus/usb/XXX/YYY which needs a newer libusb that understands it.

Comment 4 Yusuf Ma 2006-02-02 21:22:46 UTC
I updated gphoto2 and tried the same command as root. "gphoto2 --auto-detect" as
ordinary users still returns nothing. "gphoto2 --auto-detect" as root can detect
the camera correctly. However, I still got errors when running "env LANG=C
gphoto2 --debug --summary" as root. The versions of udev and libusb are
udev-078-8 and libusb-0.1.11-2 respectively. I attached the debug info created
by "env LANG=C gphoto2 --debug --summary" as root.

Comment 5 Yusuf Ma 2006-02-02 21:25:39 UTC
Created attachment 124071 [details]
debug info created by "env LANG=C gphoto2 --debug --summary" as root

Comment 6 Radek Vokál 2006-03-31 10:37:19 UTC
Can you try forcing PTP mode? 

gphoto2 --camera "Canon PowerShot A610 (PTP mode)" --port usb: -L



Comment 7 Yusuf Ma 2006-04-01 01:11:30 UTC
Current gphoto2 and kernel version:

gphoto2-2.1.99-8
kernel-2.6.16-1.2080_FC5


*** CASE ONE ***

run:

gphoto2 --camera "Canon PowerShot A610 (PTP mode)" --port usb: -L



result:

The files are successfully listed.



*** CASE TWO ***

run:
 
gphoto2 -L



the following error message is returned:

-----
Detected a 'Canon:PowerShot A610 (normal mode)'.

*** Error ***
Step #4 failed! (returned 0, expected 64) Camera not operational
*** Error (-102: 'Corrupted data') ***

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.net>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug -L

Please make sure there is sufficient quoting around the arguments.
-----



*** CASE THREE ***

run

gphoto2 --camera "Canon PowerShot A610 (PTP mode)" --port usb: -L

right after the "gphoto2 -L" command (which will fail)



the following error message is returned:

-----
gp_port_write: Resource temporarily unavailable

*** Error ***
PTP I/O error

*** Error ***
An error occurred in the io-library ('Unspecified error'): Could not query
kernel driver of device.
*** Error (-1: 'Unspecified error') ***

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.net>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug --camera "Canon PowerShot A610 (PTP mode)" --port
"usb:" -L

Please make sure there is sufficient quoting around the arguments.
-----

Comment 8 Radek Vokál 2006-04-02 21:07:25 UTC
Once a Canon camera has been accessed in "normal" mode it needs to be detached
/powered off/on to be accessed in "PTP" mode again. The autodetection stops
after one try. From the list of supported cameras it seems that your camera is
supposed to work in both, normal and PTP mode. I'm reporting this issue upstream.