[Shotwell] Does not register camera on Slackware: Kodak EasyShare CX7430
Jim Nelson
jim at yorba.org
Mon Sep 12 12:18:28 PDT 2011
Hi Brad,
It looks to me that there's something going wrong in the code in Shotwell
that matches up the camera's address on the USB bus with the gphoto2 address
(which is what we need to use to communicate with gphoto2, which talks to
the camera).
There's a few things we need you to do to diagnose this problem. First,
from the console, run Shotwell like this:
$ SHOTWELL_LOG=1 shotwell
With Shotwell running, plug in the camera, wait for a ten seconds
(presumably Shotwell won't show it), and then unplug the camera. Exit
Shotwell.
Then find this file: ~/.cache/shotwell/shotwell.log We need this log file.
Second, run this command with the camera plugged in:
$ sudo lsusb -v > lsusb.txt
Third, run this command with the camera plugged in:
$ udevadm info --export-db > udev.txt
Finally, run this command with the camera plugged in:
$ gphoto2 --list-ports > gphoto2.txt
(You might need to install the gphoto2 package in order for this last one to
work.)
Then send us all these files: shotwell.log, lsusb.txt, udev.txt, gphoto2.txt
Thanks,
-- Jim
On Sat, Sep 10, 2011 at 8:10 PM, Brad Hermanson <apeitheo at gmail.com> wrote:
> I compiled Shotwell 0.11.1 (and 0.11) on Slackware 13.37 and everything
> went well except for the fact that it does not fully detect my camera (Kodak
> EasyShare CX7430). It never shows up on the side bar. I took a look at the
> logs and found this:
>
> L 15060 2011-09-10 22:17:03 [DBG] CameraTable.vala:369: udev event: add on
> 5-1
> L 15060 2011-09-10 22:17:03 [DBG] CameraTable.vala:369: udev event: add on
> 5-1:1.0
> L 15060 2011-09-10 22:17:04 [DBG] CameraTable.vala:249: Detected 1/1 Kodak
> CX7430 @ usb:005,005
> L 15060 2011-09-10 22:17:04 [DBG] CameraTable.vala:149: USB ESP:
> current_camera_count=1 port=usb:005,005
> L 15060 2011-09-10 22:17:04 [DBG] CameraTable.vala:192: USB ESP: No
> matching bus/device found for port=usb:005,005
> L 15060 2011-09-10 22:17:09 [DBG] CameraTable.vala:369: udev event: remove
> on 5-1:1.0
> L 15060 2011-09-10 22:17:09 [DBG] CameraTable.vala:369: udev event: remove
> on 5-1
>
> I didn't look too deeply into the code, but I put together a patch that
> fixed the problem (at least for me.. I don't know what ramifications it
> would have on others). Maybe something isn't configured correctly on my
> system, but I'm hoping someone knows why this is happening.
>
> Here is the patch:
>
> --- src/camera/CameraTable.vala 2011-08-23 14:19:18.000000000 -0400
> +++ src/camera/CameraTable.vala 2011-09-06 19:42:17.052993293 -0400
> @@ -157,6 +157,15 @@
> return true;
> }
>
> + // Fix for Kodak camera; camera will not show up otherwise
> + if (current_camera_count == 1) {
> + full_port = port;
> +
> + debug("USB ESP: port=%s full_port=%s", port, full_port);
> +
> + return true;
> + }
> +
> // with more than one camera, skip the mirrored "usb:" port
> if (port == "usb:") {
> debug("USB ESP: Skipping %s", port);
>
> After adding this patch, the log file shows:
>
> L 18721 2011-09-10 23:00:03 [DBG] CameraTable.vala:378: udev event: add on
> 5-1
> L 18721 2011-09-10 23:00:03 [DBG] CameraTable.vala:378: udev event: add on
> 5-1:1.0
> L 18721 2011-09-10 23:00:04 [DBG] CameraTable.vala:258: Detected 1/1 Kodak
> CX7430 @ usb:005,008
> L 18721 2011-09-10 23:00:04 [DBG] CameraTable.vala:149: USB ESP:
> current_camera_count=1 port=usb:005,008
> L 18721 2011-09-10 23:00:04 [DBG] CameraTable.vala:164: USB ESP:
> port=usb:005,008 full_port=usb:005,008
> L 18721 2011-09-10 23:00:04 [DBG] CameraTable.vala:368: Adding to camera
> table: Kodak CX7430 @ usb:005,008
>
> This fixes the problem for me and then the camera shows up and I can
> download photos, etc, and everything works as expected. This same camera
> with shotwell on a recent version of Ubuntu works perfectly fine... I'm not
> sure what to make of it. I don't know if Ubuntu has patched Shotwell, or if
> they simply have something configured differently. I'm going to be making
> the package available for Slackware users, so if this is a
> Slackware-specific problem, any hints as to what I've not
> configured/configured incorrectly would be greatly appreciated.
>
> Thank you,
> Brad
> ______________________________**_________________
> Shotwell mailing list
> Shotwell at lists.yorba.org
> http://lists.yorba.org/cgi-**bin/mailman/listinfo/shotwell<http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell>
>
More information about the Shotwell
mailing list