Kodak cameras

From MEPIS Documentation Wiki

Jump to: navigation, search

Camera Icon Appears But Not Accessible

This tip is for the following scenario:

You plug the camera in via USB, and get a digital camera icon on the desktop - and a prompt to start digikam. But when digikam is started, the camera is not recognised (as a USB PTP Class Camera), so it can't be accessed - either via digikam, or even in konqueror (by clicking the desktop camera icon).

However - the system sees it - because it's listed in kinfocenter, and if you run digikam as root (right-click the desktop, Run Command..., type kdesu digikam), you can access the camera.

POSSIBLE SOLUTION

  • First, open a konsole, su to root, then run lsusb to get the camera output. An example is:
Bus 001 Device 007: ID 040a:05bd Kodak Co.
This is from my Kodak C713 digital camera.
  • Next, navigate and open (as root) the file /etc/udev/rules.d/025_libgphoto2.rules
  • Add a new line right at the end using same info from the line above it - but change the details to match your camera. The copied line read:
SYSFS{idVendor}=="2770", SYSFS{idProduct}=="905c", MODE="0660", GROUP="plugdev"
And I changed it to the info from my C713 (info from the lsusb command)
SYSFS{idVendor}=="040a", SYSFS{idProduct}=="05bd", MODE="0660", GROUP="plugdev"
The values changed are for the vendor and product ID.
  • Save the file and reboot.
  • Plug your camera in again and this time once digikam comes up, it may well be recognised and accessible (as a USB PTP Class Camera).

NOTE - MEPIS 8

  • The format for /etc/udev/rules.d/025_libgphoto2.rules has changed - so using the above example (my kodak) - the line would now read:
ATTRS{idVendor}=="040a", ATTRS{idProduct}=="05db", MODE="0664", GROUP="plugdev"
  • Simply follow the same style as the existing lines.

Lykwydchykyn's Script Option

If you are having trouble uploading images from a Kodak camera, here is a script worked out by MEPIS user lykwydchykyn that works around the problems:

#!/bin/bash
# getPhotos
# This script will download the photos from the camera in a date-notated directory.
# make the directory "My Pictures" if it doesn't exist

[ -d $HOME/My\ Pictures ] || mkdir $HOME/My\ Pictures

DATESTRING=`date +%m-%d-%y`
DIRNAME=pix-$DATESTRING

# Make our special new directory
mkdir $HOME/My\ Pictures/$DIRNAME

# Move to the new directory
cd $HOME/My\ Pictures/$DIRNAME/

# Get the photos
gphoto2 -P

# So, leave
exit

#End of script

Save this script somewhere (for example, as getphotos.sh in /home/username), right-click it and make it executable, then drag it to the desktop to create a link.

Personal tools