View previous topic :: View next topic |
Author |
Message |
darkphader Veteran


Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Sun May 10, 2009 10:40 pm Post subject: can no longer transfer pictures from my camera |
|
|
Hello,
I have a PTP camera - Kodak DC4800 - and I can no longer transfer pictures. The system finds the camera properly but cannot read data.
When I plug it in I get this in /var/log/messages :
==========================================================
May 10 17:03:37 sartre usb 3-2: new full speed USB device using uhci_hcd and address 2
May 10 17:03:37 sartre usb 3-2: New USB device found, idVendor=040a, idProduct=0160
May 10 17:03:37 sartre usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 10 17:03:37 sartre usb 3-2: Product: KODAK DC4800 Zoom Digital Camera
May 10 17:03:37 sartre usb 3-2: Manufacturer: Eastman Kodak Company
May 10 17:03:37 sartre usb 3-2: configuration #1 chosen from 1 choice
==========================================================
lsusb -v :
==========================================================
Bus 003 Device 002: ID 040a:0160 Kodak Co. DC4800
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x040a Kodak Co.
idProduct 0x0160 DC4800
bcdDevice 1.00
iManufacturer 1 Eastman Kodak Company
iProduct 2 KODAK DC4800 Zoom Digital Camera
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
(Missing must-be-set bit!)
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 6 Imaging
bInterfaceSubClass 1 Still Image Capture
bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 16
Device Status: 0x0001
Self Powered
==========================================================
And last but not least a gphoto2 debug output :
==========================================================
0.031018 gphoto2-port-usb(1): Looking for USB device (vendor 0x40a, product 0x160)... found.
0.031025 gphoto2-port-usb(2): inep to look for is 82
0.031031 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 82, outep 01, intep 83, class 06, subclass 01
0.031039 gphoto2-abilities-list.c(2): Found 'Kodak DC4800' (0x40a,0x160)
0.031053 gphoto2-port(2): Freeing port...
0.031064 gphoto2-port(2): Closing port...
0.031124 gphoto2-camera(2): Setting abilities ('Kodak DC4800')...
0.031138 gphoto2-setting(2): Setting key 'model' to value 'Kodak DC4800' (gphoto2)
0.031147 gphoto2-setting(2): Saving 4 setting(s) to file "/home/smythe/.gphoto/settings"
0.045270 gphoto2-port-info-list(2): Looking for path 'usb:' (22 entries available)...
0.045381 gphoto2-port-info-list(2): Getting info of entry 17 (22 available)...
0.045392 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'...
0.045809 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
0.045820 gphoto2-port(2): Setting settings...
0.045829 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1), (new int=0, conf=-1, alt=-1)
0.045837 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2)
0.045845 gphoto2-setting(2): Saving 4 setting(s) to file "/home/smythe/.gphoto/settings"
0.062165 foreach(2): Executing action 'List Folders' for folder '/'.
0.062359 gphoto2-camera(2): Listing folders in '/'...
0.062370 gphoto2-camera(2): Initializing camera...
0.062386 gphoto2-port-usb(1): Looking for USB device (vendor 0x40a, product 0x160)... found.
0.062394 gphoto2-port-usb(2): inep to look for is 82
0.062401 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 82, outep 01, intep 83, class 06, subclass 01
0.062408 gphoto2-camera(2): Loading '/usr/lib64/libgphoto2/2.4.4/ptp2'...
0.062680 gphoto2-port(2): Opening USB port...
0.062689 libusb(2): gp_port_usb_open()
0.062729 libusb(2): claiming interface 0
0.062758 ptp2(2): maxpacketsize 64
0.062817 gphoto2-port(2): Setting timeout to 8000 millisecond(s)...
0.062835 ptp(2): PTP: Opening session
0.062847 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
0.062856 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................
0.065088 ptp2/ptp_usb_getresp(2): reading response
0.065103 ptp2/ptp_usb_getpacket(2): getting next ptp packet
0.065118 gphoto2-port(2): Reading 512=0x200 bytes from port...
0.066202 gphoto2-port(2): Could only read 0 out of 512 byte(s)
0.066219 gphoto2-port(3): Empty hexdump of empty buffer
0.066230 gphoto2-port(2): Reading 512=0x200 bytes from port...
0.067195 gphoto2-port(2): Could only read 0 out of 512 byte(s)
0.067208 gphoto2-port(3): Empty hexdump of empty buffer
0.067218 ptp2/usb_getresp(0): request code 0x1002 getting resp error 0x02ff
0.067230 ptp2/camera_init(0): ptp_opensession returns 2ff
0.067245 ptp2/device_reset_request(2): sending reset
0.067260 gphoto2-port(2): Writing message (request=0x66 value=0x0 index=0x0 size=0=0x0)...
0.067272 gphoto2-port(3): No hexdump (NULL buffer)
0.068193 ptp(2): PTP: Opening session
0.068206 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
0.068217 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................
0.069193 ptp2/ptp_usb_getresp(2): reading response
0.069204 ptp2/ptp_usb_getpacket(2): getting next ptp packet
0.069214 gphoto2-port(2): Reading 512=0x200 bytes from port...
0.070195 gphoto2-port(2): Could only read 0 out of 512 byte(s)
0.070207 gphoto2-port(3): Empty hexdump of empty buffer
0.070217 gphoto2-port(2): Reading 512=0x200 bytes from port...
0.071194 gphoto2-port(2): Could only read 0 out of 512 byte(s)
0.071207 gphoto2-port(3): Empty hexdump of empty buffer
0.071216 ptp2/usb_getresp(0): request code 0x1002 getting resp error 0x02ff
0.071226 ptp2/camera_init(0): ptp_opensession returns 2ff
0.071235 ptp2/device_reset_request(2): sending reset
0.071244 gphoto2-port(2): Writing message (request=0x66 value=0x0 index=0x0 size=0=0x0)...
0.071255 gphoto2-port(3): No hexdump (NULL buffer)
0.072194 ptp(2): PTP: Opening session
0.072245 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
0.072257 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................
0.073193 ptp2/ptp_usb_getresp(2): reading response
0.073204 ptp2/ptp_usb_getpacket(2): getting next ptp packet
0.073215 gphoto2-port(2): Reading 512=0x200 bytes from port...
0.074195 gphoto2-port(2): Could only read 0 out of 512 byte(s)
0.074208 gphoto2-port(3): Empty hexdump of empty buffer
0.074218 gphoto2-port(2): Reading 512=0x200 bytes from port...
0.075196 gphoto2-port(2): Could only read 0 out of 512 byte(s)
0.075208 gphoto2-port(3): Empty hexdump of empty buffer
0.075218 ptp2/usb_getresp(0): request code 0x1002 getting resp error 0x02ff
0.075228 ptp2/camera_init(0): ptp_opensession returns 2ff
0.075237 ptp2/device_reset_request(2): sending reset
0.075246 gphoto2-port(2): Writing message (request=0x66 value=0x0 index=0x0 size=0=0x0)...
0.075256 gphoto2-port(3): No hexdump (NULL buffer)
0.076213 context(0): PTP I/O error
0.076474 gphoto2-port(2): Closing port...
0.076530 context(0): An error occurred in the io-library ('Unspecified error'): No error description available
0.077458 gp-camera(2): Freeing camera...
0.077468 gphoto2-port(2): Freeing port...
0.077475 gphoto2-port(2): Closing port...
0.077502 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.077510 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.077517 gphoto2-filesystem(2): Internally deleting all folders from '/'...
==========================================================
The system does work with my flash drives properly. Any clues?
Thanks,
Chris _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Sun May 10, 2009 11:19 pm Post subject: |
|
|
Have you tried to mount the camera directly? _________________ Time is what keeps everything from happening all at once. |
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Sun May 10, 2009 11:26 pm Post subject: |
|
|
EzInKy wrote: | Have you tried to mount the camera directly? |
AFAIK, a PTP camera is not mountable as a mass storage device. _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Mon May 11, 2009 12:02 am Post subject: |
|
|
Sorry, I actually forgot there were cameras that weren't mountable...it's been awhile since I bought one. _________________ Time is what keeps everything from happening all at once. |
|
Back to top |
|
 |
ppurka Advocate

Joined: 26 Dec 2004 Posts: 3256
|
Posted: Mon May 11, 2009 12:25 am Post subject: |
|
|
Do you have CAMERAS="*" in /etc/make.conf? If not, then you will need to put that in /etc/make.conf and recompile libgphoto2.
If you don't want all CAMERAS to be enabled, then do a pretend emerge of libgphoto2 and enable the cameras you want. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Mon May 11, 2009 12:32 am Post subject: |
|
|
ppurka wrote: | Do you have CAMERAS="*" in /etc/make.conf? If not, then you will need to put that in /etc/make.conf and recompile libgphoto2.
If you don't want all CAMERAS to be enabled, then do a pretend emerge of libgphoto2 and enable the cameras you want. |
No, I have which I believe is correct (it has been for years). _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Tue May 12, 2009 3:26 pm Post subject: |
|
|
On the off chance that something changed re CAMERAS I did remerge libgphoto2 with CAMERAS="*" with no change and it is correct that what I need is CAMERAS="ptp2". Incidentally the camera does work under Ubuntu, which removes the camera as the culprit. _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
ppurka Advocate

Joined: 26 Dec 2004 Posts: 3256
|
Posted: Tue May 12, 2009 4:02 pm Post subject: |
|
|
Is your camera being automatically mounted by any chance? I had read that your camera can be read by both mounting and by ptp. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Tue May 12, 2009 4:35 pm Post subject: |
|
|
ppurka wrote: | Is your camera being automatically mounted by any chance? I had read that your camera can be read by both mounting and by ptp. |
No, it isn't and mounting it has never been possible before.
There is this: http://www.dankulp.com/ptpfs/, but it isn't installed and being at version 0.00000001 I'm not so tempted to try it :) _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
bobspencer123 Guru


Joined: 19 Dec 2005 Posts: 544
|
Posted: Tue May 12, 2009 4:54 pm Post subject: |
|
|
i'm just throwing this out there, maybe it's a permission problem? Have you tried running gphoto as root? |
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Tue May 12, 2009 5:00 pm Post subject: |
|
|
bobspencer123 wrote: | i'm just throwing this out there, maybe it's a permission problem? Have you tried running gphoto as root? |
Yes, indeed - same results. Although I am in the proper groups, etc. And this is something that at one time did work. _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
Kabuto l33t

Joined: 01 Aug 2002 Posts: 701
|
Posted: Tue May 12, 2009 6:30 pm Post subject: |
|
|
Try to emerge -C libusb libgphoto2 gphoto2 and then try to re-emerge gphoto2 and see if that fixes anything. Did you change kernel recently? Only other thing I could think is to revdep-rebuild. |
|
Back to top |
|
 |
ppurka Advocate

Joined: 26 Dec 2004 Posts: 3256
|
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Tue May 12, 2009 10:07 pm Post subject: |
|
|
N/A, KDE is not running or even installed currently. There is no indication that anything is trying to mount the camera. _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
EzInKy Veteran


Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Tue May 12, 2009 10:30 pm Post subject: |
|
|
Well, I'm sure you've found already visited the libptp site, but I thought I'd post an excerpt from their readme:
Code: |
=================
*Common problems*
=================
Sometimes it might happen that the device claims to support given property
but does not respond to --show-property request. In most cases it's because of
improper PTP implementation on the camera side.
Moreover, given property may not have any meaning in a certain camera state.
For example setting or getting 'Focus Distance' property may not be allowed
in automated camera mode! In such case try to switch the camera to manual
mode.
For example my Kodak DC4800 fails over --show-property=5006
(which is "RGB Gain") if RGB Gain is not set. It looks like this:
root@emsi(chroot):~# ptpcam --show-property=5006
Camera: DC4800 Zoom Digital Camera
Property 'RGB Gain'
ERROR: Could not get device property description!
Try to reset the camera.
In such a case you need to issue a --reset request to the camera:
root@emsi(chroot):~# ptpcam --reset
Resetting input pipe!
Device status OK
It's a good practice to verify whether the reset went OK issuing
--list-devices. Sometimes one or two more reset may be needed to properly
reset the camera.
|
Might be worth trying a manual reset. _________________ Time is what keeps everything from happening all at once. |
|
Back to top |
|
 |
darkphader Veteran


Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Wed May 13, 2009 4:45 am Post subject: |
|
|
It appears that it is something Gnome is causing. If I quit X then attach and turn on the camera, gphoto2 works just fine, and then a startx will even show a little picture of a camera on my desktop. But if I'm in Gnome when I attach and turn on the camera, then after the "do nothing" or "import photos" dialog box I am dead in the water. _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
 |
JeliJami Veteran


Joined: 17 Jan 2006 Posts: 1086 Location: Belgium
|
|
Back to top |
|
 |
mamac l33t


Joined: 29 Feb 2004 Posts: 890
|
Posted: Sat May 08, 2010 8:25 pm Post subject: |
|
|
Hi,
Suddenly I feel less alone
Same here, when plugin my powershot A60.
dmesg shows:
Code: |
usb 5-1: new full speed USB device using uhci_hcd and address 3
usb 5-1: New USB device found, idVendor=04a9, idProduct=3074
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-1: Product: Canon Digital Camera
usb 5-1: Manufacturer: Canon Inc.
usb 5-1: configuration #1 chosen from 1 choice
|
lsusb shows:
Code: |
Bus 005 Device 003: ID 04a9:3074 Canon, Inc. PowerShot A60 (ptp)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 32
idVendor 0x04a9 Canon, Inc.
idProduct 0x3074 PowerShot A60 (ptp)
bcdDevice 0.01
iManufacturer 1 Canon Inc.
iProduct 2 Canon Digital Camera
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 6 Imaging
bInterfaceSubClass 1 Still Image Capture
bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 96
Device Status: 0x0001
Self Powered
|
But still, running KDE4, digikam does recognize the camera but nothing happens when trying to transfer pictures, I can't even see pictures stored in the camera.
Frustrating is I can't find any error message even when running digikam from console.
That happened after kernel updgrade, running 2.6.32-gentoo-r7.
Sorry darkphader, not helping you that much but joining to search for a fix. _________________ Powered by Gentoo Linux since 2003 |
|
Back to top |
|
 |
mamac l33t


Joined: 29 Feb 2004 Posts: 890
|
Posted: Mon May 10, 2010 6:38 pm Post subject: |
|
|
It is fixed for me, I had to recompile digikam with gphoto2 use flag. It installed libgphoto2. _________________ Powered by Gentoo Linux since 2003 |
|
Back to top |
|
 |
|