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
[email protected]
http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell