LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-10-2006, 10:23 PM   #1
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Rep: Reputation: 30
USB camera access.


I recently bought a Canon EOS Rebel and would like to know how to launch a script when the camera is detected via USB. Is there an event trigger or system in usbfs that can call scripts? If so, I can create a script to detect, synchronize and catalog the camera memory to the drive. If someone less technically inclined hooked it up, I would like the script to handle all the photo management. Any pointers to othe resources or help would be greatly appreciated.
 
Old 08-11-2006, 01:10 PM   #2
TuxSurfer
Member
 
Registered: May 2004
Location: NC USA
Distribution: Fedora 30 - Xfce Spin
Posts: 272

Rep: Reputation: Disabled
Maybe I am not understanding exactly what you want to do but wouldn't gphoto do exactly that?
 
Old 08-11-2006, 01:44 PM   #3
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Original Poster
Rep: Reputation: 30
Gphoto would definently help in getting the files, but I am looking for an automated way to do this as soon as the camera is connected. This way a person can hook up the camera and it would synchronize the files without them knowing or caring.
 
Old 08-22-2006, 09:09 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Have you read man hotplug? It looks complex, but exactly what you are asking for.
 
Old 08-22-2006, 09:52 AM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
When I plug my camera in to the usb port, gtkam opens a query telling me that it has detected a camera with pictures, do I want to download them? ... I can't explain to you how it works, it just started doing it the first time I plugged in the camera.
 
Old 08-23-2006, 01:13 PM   #6
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Original Poster
Rep: Reputation: 30
Thanks for all the feedback regarding hotplug and gtkam; I will definently check these out. It looks like I have bigger issues now though.

I plugged my new Canon Digital SLR Rebel and am able to see it in the /proc PCI bus, but gphoto2 doesn't manage to autodetect the camera. I verified the camera is setup for a USB/PC connection and is alive at the time I try to autodetect (in case that is an issue.) My next step is to compare the vendor code on my model to what is in gphoto2's list for the Canon Rebel.
 
Old 10-03-2006, 06:53 PM   #7
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Original Poster
Rep: Reputation: 30
Just wanted to post a follow up to this post. I was able to resolve the camera problem by setting it to PTP mode. Once I did this, gphoto2 was able to see the vendor code correctly and start downloading the images.

Here is a hardware review of the camera with Linux setup info.

Last edited by unreal128; 10-03-2006 at 06:57 PM.
 
  


Reply



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
USB Logitech STX Camera | sytem startup camera active problem delta function Slackware 0 08-06-2006 04:23 PM
Digital Camera Access acdc Linux - Hardware 3 01-15-2006 09:01 AM
digital camera - USB access of SD card??? pbhj Slackware 4 12-23-2003 02:43 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM
USB Jenoptik Digital Camera Access xariusx Linux - Hardware 4 05-06-2003 04:26 PM

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

All times are GMT -5. The time now is 05:14 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