Bug 153716 - Digikam does not work with Olympus C-170 CAMEDIA camera
Summary: Digikam does not work with Olympus C-170 CAMEDIA camera
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 0.9.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-09 12:36 UTC by Julio A. Cartaya
Modified: 2017-08-16 05:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0
Sentry Crash Report:


Attachments
jacartaya.vcf (473 bytes, text/x-vcard)
2007-12-10 14:17 UTC, Julio A. Cartaya
Details
Output for the 486 kernel - Debian Etch (2.96 KB, text/plain)
2008-01-03 01:37 UTC, Andy Goss
Details
Output for the 686 kernel - Debian Etch (6.98 KB, text/plain)
2008-01-03 01:38 UTC, Andy Goss
Details
jacartaya.vcf (473 bytes, text/x-vcard)
2008-01-03 09:30 UTC, Julio A. Cartaya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julio A. Cartaya 2007-12-09 12:36:21 UTC
Version:           0.9.2-final (using KDE 3.5.7, compiled sources)
Compiler:          Target: i586-mandriva-linux-gnu
OS:                Linux (i686) release 2.6.22.12-desktop-1mdv

My Olympus C-170 Camedia camera used to be misidentified by Digikam as an Olympus C-370Z, but at least it worked. Now it reports it can not read the "/" directory of the camera, and that is all.

Obviously, I am doing all the prep work with the camera the same way I used to do: putting it in the "P" mode, connecting the same USB cable I used to, and the rest.

I tried several other settings, like "USB PTP Class Camera" and "Directory Browse" and it does not work either.

Perhaps the problem is not Digikam, but the USB drivers under Linux, because as of 1 month ago I installed Mandriva 2008 and the new kernel is 2.6.22.12-desktop-1mdv, and now if I use the "Storage Media" KDE interface to access the USB device directly, it gives the error message "Could not read file Error writing to the port".

So, essentially, my camera has become useless under Linux.
Comment 1 caulier.gilles 2007-12-09 13:27:39 UTC
Julio,

There is no camera drivers in digiKam. We use libgphoto2 for that. Witch version you use in your computer ?

Gilles Caulier
Comment 2 Julio A. Cartaya 2007-12-09 13:28:17 UTC
Espa
Comment 3 Julio A. Cartaya 2007-12-10 14:17:27 UTC
Hi Gilles,

I encountered the very same problem I described at two different
computers (even 2 different distros):

    * The one at my office (where I am now) is running Open SuSE 10.3 on
      an x86-64 CPU, and uses libgphoto2-2.4.0-25.2.
    * The other computer is my home machine, runs Mandriva 2008 Power
      Pack, on an x86-32 CPU, and I will have to wait until I get back
      home to tell you exactly which version of libgphoto2 is using.

When I attempt to access the pictures through the USB storage device I
get an error message from KDE that says it can not write to the port.
Wouldn't that be indication that the failure resides perhaps at the USB
driver?

Thanks

Julio
------------------------------------------------------------------------
Gilles Caulier escribió:
[bugs.kde.org quoted mail]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Gilles,<br>
<br>
I encountered the very same problem I described at two different
computers (even 2 different distros):<br>
<ul>
  <li>The one at my office (where I am now) is running Open SuSE 10.3
on an x86-64 CPU, and uses libgphoto2-2.4.0-25.2. <br>
  </li>
  <li>The other computer is my home machine, runs Mandriva 2008 Power
Pack, on an x86-32 CPU, and I will have to wait until I get back home
to tell you exactly which version of libgphoto2 is using.</li>
</ul>
When I attempt to access the pictures through the USB storage device I
get an error message from KDE that says it can not write to the port.
Wouldn't that be indication that the failure resides perhaps at the USB
driver?<br>
<br>
Thanks<br>
<br>
Julio<br>
<hr size="2" width="100%">Gilles Caulier escribió:
<blockquote cite="mid:20071209122740.4184.qmail@ktown.kde.org"
 type="cite">
  <pre wrap="">------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
         
<a class="moz-txt-link-freetext" href="http://bugs.kde.org/show_bug.cgi?id=153716">http://bugs.kde.org/show_bug.cgi?id=153716</a>         
caulier.gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Camera GUI



------- Additional Comments From caulier.gilles gmail com  2007-12-09 13:27 -------
Julio,

There is no camera drivers in digiKam. We use libgphoto2 for that. Witch version you use in your computer ?

Gilles Caulier


  </pre>
</blockquote>
<br>
</body>
</html>


Created an attachment (id=22445)
jacartaya.vcf
Comment 4 Arnd Baecker 2007-12-10 14:42:23 UTC
Could you try the following commands on the command-line
and report their output:
a) connect camera, what is the output of dmesg
   (only the camera related part)
b) gphoto2 -v
c) gphoto2 --list ports
d) gphoto2 --auto-detect -L
e) gphoto2 --abilities
f) gphoto2 --list-folders

((Please don't quote the full message in your reply, 
as this makes reading the thread in the web-interface very difficult, see
http://bugs.kde.org/show_bug.cgi?id=153716 ))

Thanks, Arnd
Comment 5 Julio A. Cartaya 2007-12-10 14:42:59 UTC
Espa
Comment 6 Andy Goss 2008-01-03 01:35:30 UTC
I am having the "Could not read file Error writing to the port" problem as well, but on Debian Etch KDE, both 486 and 686 kernels. I plug in the camera (Olympus SP-510UZ), and Konqueror attempts to initialise it for while, before popping up the message.

I will attach the output for both kernels.

On the same machine I have Kubuntu 6.06, on which I can upload the files from the camera with no trouble. I am not using Digikam, just uploading via Konqueror.
Comment 7 Julio A. Cartaya 2008-01-03 01:36:24 UTC
Espa
Comment 8 Andy Goss 2008-01-03 01:37:18 UTC
Created attachment 22812 [details]
Output for the 486 kernel - Debian Etch
Comment 9 Julio A. Cartaya 2008-01-03 01:38:04 UTC
Espa
Comment 10 Andy Goss 2008-01-03 01:38:15 UTC
Created attachment 22813 [details]
Output for the 686 kernel - Debian Etch
Comment 11 Julio A. Cartaya 2008-01-03 01:39:03 UTC
Espa
Comment 12 Julio A. Cartaya 2008-01-03 09:30:47 UTC
owner@bugs.kde.org escribió:
[bugs.kde.org quoted mail]


Created an attachment (id=22820)
jacartaya.vcf
Comment 13 Arnd Baecker 2008-01-03 10:31:38 UTC
Andy, does: env LANG=C gphoto2 --debug --auto-detect -L
work as root user (it might be a rights issue).
In any case: it is not a digikam problem and therefore
is better asked on the corresponding gphoto2 mailing list.
Comment 14 Andy Goss 2008-01-04 04:11:50 UTC
Arnd, env LANG=C gphoto2 --debug --auto-detect -L  does work, the following looks like the relevant part:

0.469963 gphoto2-port-usb(1): Looking for USB device (vendor 0x7b4, product 0x109)... found.
0.469979 gphoto2-port-usb(1): USB device (vendor 0x7b4, product 0x109) is a mass storage device, and might not function with gphoto2. Reference: http://www.linux-usb.org/USB-guide/x498.html
0.469994 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 82, outep 01, intep ffffffff, class 08, subclass 06
0.470024 gphoto2-abilities-list.c(2): Found 'Olympus C-370Z' (0x7b4,0x109)
0.470043 gphoto2-port(2): Freeing port...
0.470057 gphoto2-port(2): Closing port...
0.470916 foreach(2): Executing action 'List Files' for folder '/'.
0.471397 gphoto2-camera(2): Listing files in '/'...
0.471436 gphoto2-camera(2): Initializing camera...
0.471458 gphoto2-port-usb(1): Looking for USB device (vendor 0x7b4, product 0x109)... found.
0.471482 gphoto2-port-usb(1): USB device (vendor 0x7b4, product 0x109) is a mass storage device, and might not function with gphoto2. Reference: http://www.linux-usb.org/USB-guide/x498.html
0.471497 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 82, outep 01, intep ffffffff, class 08, subclass 06
0.471514 gphoto2-camera(2): Loading '/usr/lib/libgphoto2/2.2.1/sierra'...
0.471769 gphoto2-port(2): Opening USB port...
0.471867 gphoto2-port(0): Could not query kernel driver of device.
0.471941 gphoto2-port(2): Setting settings...
10.472577 gphoto2-port(0): Could not set config 0/1 (Connection timed out)
10.472814 sierra/sierra.c(2): Operation failed (-37)!
10.472930 gphoto2-port(2): Closing port...
10.473038 gphoto2-port(0): Could not release interface 0 (Invalid argument).
10.473206 context(0): An error occurred in the io-library ('Error updating the port settings'): Could not release interface 0 (Invalid argument).

*** Error ***              
An error occurred in the io-library ('Error updating the port settings'): Could not release interface 0 (Invalid argument).
*** Error (-37: 'Error updating the port settings') ***       

10.474688 gp-camera(2): Freeing camera...
10.474867 gphoto2-port(2): Freeing port...
10.474960 gphoto2-port(2): Closing port...
10.475064 gphoto2-port(0): Could not release interface 0 (Invalid argument).

It seems to have mis-identified the camera. As you suggest, gphoto2 might be a better place for this bug.
Comment 15 Marcus Meissner 2008-01-04 15:06:00 UTC
there is a usb conflict/mix between the mass storage and the libgphoto2 driver.

Can you chose to use the Mass Storage driver?
Comment 16 Julio A. Cartaya 2008-01-04 15:06:58 UTC
Espa
Comment 17 Andy Goss 2008-01-05 01:07:45 UTC
"there is a usb conflict/mix between the mass storage and the libgphoto2 driver.
Can you chose to use the Mass Storage driver? "

All I am doing is plugging the camera in and chosing PC on its menu. Konqueror comes up, followed after a minute or so by the error message. How do I elect to use the Mass Storage driver?
Comment 18 Andy Goss 2008-01-05 01:44:57 UTC
I have opened a Debian bug, 459017, which has been assigned to libgphoto2-2, to avoid (I hope) confusion, as I have no problem with Digikam. But I will continue to monitor this bug.
Comment 19 Christof Hurschler 2008-02-24 19:46:28 UTC
I am observing this problem with a similar camera (fe-190) and have posted the following message to debian-kde@lists.debian.org.

......

after a recent upgrade in testing, digikam does not recognize my Olympus 
fe-190 camera correctly anymore.  Instead, it reports the camera as a Olympus 
C-310Z and fails to connect.

Using PTP USB mode it is possible to connect, but not with the functionality I 
had before (new pictures are recognized for instance).

Does anyone have any suggestions for me, should I post a bug-report to 
digikam?

Thanks,

C

Here is my lsusb and /proc/partitions, I'm using the 2.6.24-1-686 kernel.

major minor  #blocks  name

   3     0   40209120 hda
   3     1    6835626 hda1
   3     2          1 hda2
   3     5   32868958 hda5
   3     6     497983 hda6
   3    64  117220824 hdb
   3    65  117218241 hdb1


Bus 001 Device 009: ID 07b4:0109 Olympus Optical Co., Ltd C-370Z/D-535Z/X-450
Bus 001 Device 003: ID 04a9:220d Canon, Inc. CanoScan N670U/N676U/LiDE 20
Comment 20 Julio A. Cartaya 2008-02-24 19:47:28 UTC
Espa
Comment 21 caulier.gilles 2008-12-04 20:39:57 UTC
What's news in this report ? using digiKam 0.9.4 and a recent version of libgphoto2 fix the problem ?

Gilles Caulier
Comment 22 caulier.gilles 2009-05-13 11:32:16 UTC
What's news here ? using digiKam 0.10.0 fix the problem ?

Gilles Caulier
Comment 23 Johannes Wienke 2010-03-21 17:09:21 UTC
No answer since more then a year. I close this bug report. Feel free to reopen if necessary.
Comment 24 caulier.gilles 2015-07-02 05:07:51 UTC
New digiKam 4.11.0 is available.

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

Gilles Caulier
Comment 25 caulier.gilles 2016-07-15 16:18:25 UTC
With digiKam 5.0.0, this problem is not reproducible.
I close this file now. Don't hesitate to re-open if necessary.
Gilles Caulier