Bug 149786 - Digikam should try to reconnect to camera after the connection has expired
Summary: Digikam should try to reconnect to camera after the connection has expired
Status: RESOLVED INTENTIONAL
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 0.9.2
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-11 23:45 UTC by Radovan Bukoci
Modified: 2017-08-16 06:12 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.5.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radovan Bukoci 2007-09-11 23:45:58 UTC
Version:           0.9.2-final (using KDE 3.5.7, compiled sources)
Compiler:          Target: i486-slackware-linux
OS:                Linux (i686) release 2.6.21.5-smp

If I leave the Camera window not used for a long time, the connection  "expires" (probably because the camera turns itself off). If I want to perform some actions then (e.g. delete or download some images), I get only message saying that digikam cannot connect to the camera. I have to close the window and open it again (from Camera menu), which takes long because digikam reads all the contents of the camera again.

In this case, digikam could ask if I want to reconnect, and try it (but not re-reading the content), and then perform desired action (like deleting or downloading images).
Comment 1 Radovan Bukoci 2007-09-11 23:47:24 UTC
Of course, before confirming the "Do you want to try to reconnect..." dialogue box, I would turn the camera on again.
Comment 2 caulier.gilles 2007-09-12 05:11:38 UTC
*** Bug 116904 has been marked as a duplicate of this bug. ***
Comment 3 caulier.gilles 2007-09-12 05:13:05 UTC
*** Bug 119255 has been marked as a duplicate of this bug. ***
Comment 4 caulier.gilles 2011-08-05 08:41:08 UTC
I think it's fully relevant of background deamon, who initialize UBS device list connected to computer. Here digiKam do not manage it as well...

Marcus, your viewpoint ?

Gilles Caulier
Comment 5 Marcus Meissner 2011-08-05 09:20:38 UTC
Lifetime management of a plugged in camera is difficult.

Strategies:
- Watch for udev / hotplug events when the camera is removed and either close the dialog. I am not sure if KDE offers such a framework.

- As long as dialog is open try pinging the camera regulary might work, but then what if you forget this window and the camera battery is drained.

- Or, detect IO error from the libgphoto2 API calls and reconnect after popping up a dialog?



GNOME has a "gvfs" gphoto2 daemon which will attach to the cameras as soon as it plugged (and currently not let go from it). They see however a switch off and then unplug the service (after udev events).


Suggestion is either to handle plug/unplug events ... or just ignore the issue for now (and hope users use it in a single shot import fashion usually).
Comment 6 caulier.gilles 2011-12-18 14:03:32 UTC
Marcus,

Thanks for the feedback. For the moment, this entry is out of scope...

Gilles Caulier