master1986
Posts: 15
Joined: Mon Nov 03, 2014 8:40 am

canon g3 and gphoto

Wed Nov 26, 2014 9:48 am

Hello everyone , I'm trying to work a distant A canon G3 with gphoto , I state What use gphoto updated to the latest version available . The problem occurs when I go to give the command of the shot .

comes out this error :


Model Port
----------------------------------------------------------
Canon PowerShot G3 (normal mode) usb:001,004

*** Error ***
An error occurred in the io-library ('Could not lock the device'): Camera is already in use.
ERROR: Could not capture image.
ERROR: Could not capture.

User avatar
TimG
Posts: 299
Joined: Tue Apr 03, 2012 12:15 am
Location: Switzerland

Re: canon g3 and gphoto

Wed Nov 26, 2014 11:16 am

Could be caused by gvfs. List the gvfs gphoto processes:

Code: Select all

ps auxw | grep gvfs.*gphoto
Kill those processes and try again.

master1986
Posts: 15
Joined: Mon Nov 03, 2014 8:40 am

Re: canon g3 and gphoto

Wed Nov 26, 2014 12:36 pm

thanks a lot , performing a kill process chamber works with the capture command . the problem is when I turn off and relight the raspberry , I'm forced to make the kill .

how can I make the kill automatically at system startup ?

User avatar
TimG
Posts: 299
Joined: Tue Apr 03, 2012 12:15 am
Location: Switzerland

Re: canon g3 and gphoto

Wed Nov 26, 2014 5:48 pm

I afraid I don't know how to stop gvfs from grabbing the camera. If you run without a graphical desktop then gvfs is not started, but that's probably not the solution you want.

A little googling turned up this, though I don't know if it will work with Raspbian:

Code: Select all

gconftool --type Boolean --set /apps/nautilus/preferences/media_automount  false

Return to “General discussion”