Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.