PowerShot A40 + Linux

Getting my Canon PowerShot A40 working under RedHat Linux 7.3 with gphoto2

By Hal Canary, 2003-07-16 01:18:43 (link)

pic of A40

Before you start, glance through the gphoto2 man page.

Getting gphoto2 to recognize the A40

First of all, check the version of gphoto2

$ /usr/bin/gphoto2 -v
gPhoto (v2.0) - Cross-platform digital camera library.
Copyright (C) 2000,2001 Scott Fritzinger and others
Licensed under the Library GNU Public License (LGPL).

$ /usr/bin/gphoto2 -L
ERROR: Please specify a model.
*** Error ('Unknown model') ***

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@gphoto.org>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug -L

Please make sure there is sufficient quoting around the arguments.

Version 2.0 does not support the A40, so you'll have to try a command line that looks like this:

$ gphoto2 --usbid 0x04a9:0x3058=0x04a9:0x304e -L

But a better solution would be to download version 2.1 from sourceforge. gPhoto v2.1.0 supports the A40. You'll have to build from the source.

Now, su to root, and try

$ gphoto2 -v
gPhoto (v2.1.0) - Cross-platform digital camera library.
Copyright (C) 2000-2002 Scott Fritzinger and others
Licensed under the Library GNU Public License (LGPL).

$ gphoto2 -L
Detected a 'Canon PowerShot A40'.
There are no files in folder '/'.
There are no files in folder '/DCIM'.
There are 2 files in folder '/DCIM/100CANON':
#1     IMG_0020.JPG               rd   458 KB image/jpeg
#2     IMG_0021.JPG               rd   429 KB image/jpeg
There are no files in folder '/DCIM/CANONMSC'.

Permissions

I got most of this from here.

Don't want to have to su to root all of the time? Let's get the hotplug set up so that we don't have to worry about it. In this case, we'll just want whoever has ownership of /dev/console to be able to access any usb devices on the machine. The important files should libe in /etc/hotplug.

Instructions:

  1. $ cd /etc/hotplug/
  2. $ cp usb.usermap usb.usermap.old
  3. Edit usb.usermap. Remove all lines that start with the word usbcam.
  4. $ gphoto2 --print-usb-usermap >> usb.usermap
  5. Make sure that there is a script called /etc/hotplug/usb/usbcam

I think that's all I had to do.


(back)