LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-24-2003, 11:48 AM   #1
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
canon usb camera


hi

ive got an canon powershot a100 digital camera connected via usb. how can I use it in linux to import my pictures?

thanks!!
 
Old 09-24-2003, 01:11 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Firstly you have to make sure that you camera communicates in a nice way. A lot of them don't and so the purchase of a card reader (if it uses cards) is necessary.

Run usbview and then plug in your camera. Also, once the camera is plugged in, run dmesg and check the last few lines about USB devices.

If it behaves and is recognised as a USB storage device, then you can mount it as a normal SCSI disk, ie mount -t vfat /dev/sda1 /mnt/camera.

If none of that made sense, then have a quick look at some of the other camera related threads that have been kicking about for a few months now.

Hope that helps.
 
Old 09-24-2003, 01:57 PM   #3
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
dmesg returns:
hub.c: new USB device 00:10.1-1.1, assigned address 3
usb.c: USB device 3 (vend/prod 0x4a9/0x3061) is not claimed by any active driver.
[...disconnecting the camera...]
usb.c: USB disconnect on device 00:10.1-1.1 address 3

usbview returns (when selecting the camera):
PowerShot A100
Manufacturer: Canon Inc.
Speed: 12Mb/s (full)
USB Version: 1.10
Device Class: ff(vend.)
Device Subclass: ff
Device Protocol: ff
Maximum Default Endpoint Size: 32
Number of Configurations: 1
Vendor Id: 04a9
Product Id: 3061
Revision Number: 0.01

Config Number: 1
Number of Interfaces: 1
Attributes: c0
MaxPower Needed: 100mA

Interface Number: 0
Name: (none)
Alternate Number: 0
Class: ff(vend.)
Sub Class: 0
Protocol: 0
Number of Endpoints: 3

Endpoint Address: 81
Direction: in
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms

Endpoint Address: 02
Direction: out
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms

Endpoint Address: 83
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 64
Interval: 96ms
 
Old 09-24-2003, 02:03 PM   #4
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
root@mercure:/home/mark# mount -t vfat /dev/sda1 /mnt/camera
mount: /dev/sda1 is not a valid block device

 
Old 09-24-2003, 02:44 PM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
gphoto says the A100 is supported:

http://www.gphoto.org/proj/libgphoto2/support.php
 
Old 09-24-2003, 02:47 PM   #6
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
Any KDE equivalent?
 
Old 09-24-2003, 04:07 PM   #7
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
maybe digikam?

http://loll.sourceforge.net/cgi-bin/...=gphoto&num=10
 
Old 09-26-2003, 11:47 AM   #8
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
I've installed libgphoto2 and digikam. The digikam setup detects the camera correct. However, when I try to connect, it tells me it was unable to initialize the camera.
Any help?
 
Old 09-26-2003, 09:32 PM   #9
glennb0665
LQ Newbie
 
Registered: Sep 2003
Location: Virginia
Distribution: Ubuntu
Posts: 14

Rep: Reputation: 0
I have a Nikon E2500 and went through a similar trial. I tried using the various camera packages to no avail. As it turns out, the USB port on the camera should let you mount it just like a disk. The trick is to find which device it is linked to.

Unfortunately, I am not aware of a quick method to find this short of brute force. In my case, my camera mounts under /dev/hdb1.

One simple approach might be the following shell script:

# Search the sd devices a through e
for i in a b c d e; do
# Search the sd[a-e] devices 1 through 6
for j in 1 2 3 4 5 6; do
echo sd${i}${j}
# I use sudo(1) rather than logging in as root
# You could also run this as root and remove the sudo
# command
sudo mount /dev/sd${i}${j} /mnt/camera
if [ $? -eq 0 ]; then
# If we found it, break out of the loops
break 2
fi
done
done

This script attempts to mount /dev/sd[a-e][1-6] on /mnt/camera. You may need to create the /mnt/camera mount point. If this script doesn't find the right device, you can expand it to search the more obscure devices (on my RedHat 7.3 system there are 2048 /dev/sd* devices)

[Note: Check your mounted partitions first with df(1) If there are any /dev/sd?? partitions listed they should be excluded as they are already used]

If anyone knows of a better way of finding the correct device, please post a follow up.
 
Old 09-27-2003, 01:09 AM   #10
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I have a Canon Powershot A40. To download pictures I run the following script (as root):

#!/bin/sh
modprobe usb-uhci
mount -t usbdevfs usb /proc/bus/usb/

I think this was the result of reading the gphoto2 docs. You may not need the first line if usb-uhci is already loaded or compiled into the kernel. Then I just use gphoto2 from the command line (gphoto2 with no arguments gives all the options). e.g. 'gphoto2 -L' should list the files on the camera. 'gphoto2 -P' copies the pictures to the disk.
 
Old 10-01-2003, 03:50 AM   #11
yiangos
LQ Newbie
 
Registered: Sep 2003
Location: Athens, Greece
Distribution: openSuSE 11.0
Posts: 16

Rep: Reputation: 0
I have a Powershot A70, using SuSE 8.2. I don't know about SuSE 9 (I'll update if they have a better sound card support, my SB live 4.1m my SB live 5.1, my SB Audigy2 AND my Via8235 chip dont work :-( in 8.2 pro for some weird reason). Now, according to gphoto2, A70 was NOT supported - it reached up to A40. However, I used the generic PTP camera protocol in digicam, and it all came out nicely.

Here's my instructions (completely step by step, after you set digikam to wait for general PTP protocol digital cameras)
Turn on the camera
Set the camera to viewing mode (not shooting mode).
Connect it to the USB port.
Run digikam.
Wait till the image on the LCD display of the camera dsappears and tha double beep comes out of the PC speaker.
Click the camera icon at the bottom left.
Browse the directories you get. The pictures should be in there.
Oh and make sure you have enough power left in your batteries. Sometimes the transfer doesnt take kindly to low power.

Lemme know if it helped

Yiangos

P.S. SuSE 9 is out?????
 
Old 10-01-2003, 04:08 AM   #12
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
gtkam
menu
graphics
digital camera tool
 
Old 10-05-2003, 03:59 PM   #13
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
No luck.

The display of the camera doesn't turn off when I connect the camera to the USB port. It does in Windows XP.
 
Old 10-05-2003, 05:05 PM   #14
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
do you have anything else that uses the usb port?

the usb port may not be activated

scrounge around to see if it is

I , myself , have no idea how to do this but maybe someone will be able to help
 
Old 10-05-2003, 09:56 PM   #15
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
Try it as root and if it works then it means you do not have the gphoto hotplug script installed.

I went with libgphoto2, gphoto2 and gtkam and compiled all with --prefix=/usr.



My Canon S10 works flawlessly.

Check out the Chapter 4 in the manual

Gphoto Manual

Last edited by shepper; 10-05-2003 at 09:57 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Settng up Canon Multifunction USB printer timsch75 Linux - Hardware 3 06-03-2006 11:54 AM
Canon Scanner (USB) supported BUT not detected!!! ivancauso Linux - Newbie 5 08-10-2005 03:25 PM
Cannot print : Canon BJ200 through USB govert Linux - Hardware 1 05-16-2005 05:25 AM
Canon Digital Camera seelk Linux - Hardware 3 04-14-2005 02:43 AM
Canon Ixus V3 Digital Camera and Red Hat Linux 9 JC404 Linux - Hardware 12 07-25-2003 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration