<div dir="ltr">Hi,<div><br></div><div>I have a RaspberryPi ZeroW running the latest Rasbian</div><div><span style="color:rgb(68,68,68);font-family:"Open Sans";font-size:14px"><br></span></div><div><span style="color:rgb(68,68,68);font-family:"Open Sans";font-size:14px">PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"Open Sans";font-size:14px"><span style="color:rgb(68,68,68);font-family:"Open Sans";font-size:14px">NAME="Raspbian GNU/Linux"</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"Open Sans";font-size:14px"><span style="color:rgb(68,68,68);font-family:"Open Sans";font-size:14px">VERSION_ID="9"</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"Open Sans";font-size:14px"><span style="color:rgb(68,68,68);font-family:"Open Sans";font-size:14px">VERSION="9 (stretch)"</span><br></div><div><br></div><div>I'm trying to get a time lapse script package working, which works fine on a RaspberryPi B+ but on the Zero I get an error:</div><div><br></div><div><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">Connecting</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">open_camera_dev_usb:usb_ptp_device_reset(): Device or resource busy</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">usb_ptp_get_device_status(): Device or resource busy</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">open_camera_dev_usb: ptp_opensession failed 0x2ff</span><br></div><div><br></div><div>Looking further into the USB device where my camera is connected I find:</div><div><br></div><div><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">root@raspberrypi</span><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">_Zero-01:~/multilapse-CHDK/current# lsusb</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">Bus 001 Device 005: ID 04a9:32aa Canon, Inc.</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</span></div><div><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">root@raspberrypi</span><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">_Zero-01:~/multilapse-CHDK/current# fuser /dev/bus/usb/001/005</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">/dev/bus/usb/001/005:   999</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)"><br></span></div><div><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">root@raspberrypi</span><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">_Zero-01:~/multilapse-CHDK/current# ps ax |grep 999</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)">  999 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-gphoto2 --spawner :1.4 /org/gtk/g                                    vfs/exec_spaw/4</span><br style="box-sizing:border-box;color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap"><span style="color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap;background-color:rgb(238,238,255)"> 1014 pts/0    S+     0:00 grep 999</span><br></div><div><br></div><div>So it seems that the process which is using the USB is <span style="background-color:rgb(238,238,255);color:rgb(68,68,68);font-family:"dejavu sans mono",monaco,"lucida console","courier new",monospace;font-size:x-small;white-space:nowrap">/usr/lib/gvfs/gvfsd-gphoto2</span></div><div><br></div><div>I had a similar issue with gphoto2 when I originally set up my RaspberryPi B+, which I resolved by simply uninstalling gphoto2.  However, for some reason, gphoto2 wasn't included in the slightly more recent distribution that I installed on the PiZero, so I can't uninstall it.</div><div><br></div><div>Could you please advise how I might get around this issue?</div><div><br></div><div>Thanks in advance for your consideration</div><div><br></div><div>Nigel</div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><b><font color="#003366" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:rgb(0,51,102);font-weight:bold" lang="EN-US">N</span></font></b><b><font color="#003366" face="Tahoma" size="1"><span style="font-size:8pt" lang="EN-US">igel Haslam</span></font></b><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;line-height:normal;font-size:medium"><span style="border-collapse:separate;line-height:normal"><span style="border-collapse:separate;line-height:normal"><span style="border-collapse:separate;font-size:12px;line-height:normal"><span style="font-family:Helvetica"><span style="font-family:Verdana"> </span></span></span></span></span></span><b><font color="#003366" face="Tahoma" size="1"><span style="font-size:8pt" lang="EN-US">| Director </span></font></b></div><div><b><font color="#003366" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:rgb(0,51,102);font-weight:bold" lang="EN-US"><img src="https://docs.google.com/uc?export=download&id=0B6UV_zriyY7YVFdLZ3hHaUNNMTQ&revid=0B6UV_zriyY7YOUlhL05zSkFCMlo1MWVwNlRCaXhVdFozQldJPQ"><br>Motion Circus Pty Ltd. Byron Bay</span></font></b><br><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"></span></span></span></span><b><font color="navy" face="Tahoma" size="1"><span style="font-size:7.5pt;font-family:Tahoma;color:navy;font-weight:bold" lang="EN-US">t</span></font></b><b><font color="gray" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:gray;font-weight:bold" lang="EN-US">: + 61 2 8007 7338 </span></font></b><b><font color="#003f48" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:rgb(0,63,72);font-weight:bold" lang="EN-US">|</span></font></b><b><font color="#003366" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:rgb(0,51,102);font-weight:bold" lang="EN-US">m</span></font></b><b><font color="gray" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:gray;font-weight:bold" lang="EN-US">: </span></font></b><b><font color="navy" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:navy;font-weight:bold" lang="EN-US"> </span></font></b><b><font color="gray" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:gray;font-weight:bold" lang="EN-US">+ 61  403 020 126</span></font></b><b><font color="#003366" face="Tahoma" size="1"><span style="font-size:8pt;font-family:Tahoma;color:rgb(0,51,102);font-weight:bold" lang="DE"><br>w: <u><a href="http://www.motioncircus.com/" target="_blank">www.motioncircus.com</a></u></span></font></b><br><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Verdana;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica"><span style="font-family:Verdana"></span></span></span></span></span></span><div style="display:inline"></div><div style="display:inline"></div><div style="display:inline"></div><div style="display:inline"></div><div style="display:inline"></div><div style="display:inline"></div></div></div></div><a href="http://motioncircus.com" target="_blank">link to website<br></a></div></div></div></div>
</div></div>