<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nicolas Kuttler &#187; gphoto2</title>
	<atom:link href="http://www.nkuttler.de/tag/gphoto2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nkuttler.de</link>
	<description>WordPress Services, IT Services</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Canon Powershot A60 on Debian</title>
		<link>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/</link>
		<comments>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 13:02:52 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[gphoto2]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[powershot]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=1093</guid>
		<description><![CDATA[Edit: This is a very old (2003) page of mine that needs a new location, and I think this blog is the best place. I bought my camera at the end of april 2003 and after a few minutes of toying around i wanted to connect it to my favorite OS. I have been told [...]]]></description>
			<content:encoded><![CDATA[<p><b>Edit</b>: This is a <strong>very old</strong> (2003) page of mine that needs a new location, and I think this blog is the best place.</p>
<p>I bought my camera at the end of april 2003 and after a few minutes of toying around i wanted to connect it to my favorite OS. I have been told that some of the stuff on this page will work with a powershot A70 or A75 too.<span id="more-1093"></span></p>
<p>Feel free to contact me if you have questions or solutions to any problems. But I&#8217;m in no way an expert. Please notice that I haven&#8217;t changed this page for a very long time and probably won&#8217;t update it any more.</p>
<p>Debian sarge comes with gphoto 2.1.5, I tested 2.1.3.</p>
<a name="wptoc_0_0_0"></a><h1>Preparations</h1>
<a name="wptoc_0_1_0"></a><h2>gphoto2 and hotplug</h2>
<pre># apt-get install gphoto2 hotplug</pre>
<a name="wptoc_0_1_1"></a><h2>Kernel</h2>
<p>I&#8217;m not sure but i guess stock Debian kernels should have all the USB stuff compiled in, if you build your own kernel figure out what you need reading the <a href="http://gphoto.sourceforge.net/doc/manual/">fine gphoto2 manual</a>.</p>
<a name="wptoc_0_1_2"></a><h2>Connect the cam</h2>
<p>Connect the camera to your USB port and and turn it on in replay mode. Try</p>
<pre>$ grep Canon /proc/bus/usb/devices </pre>
<p>You will hopefully see something like</p>
<pre>
S:  Manufacturer=Canon Inc.
S:  Product=Canon Digital Camera
</pre>
<p>If not have a look at <tt>/var/log/messages</tt>. Does your kernel support USB?</p>
<a name="wptoc_0_1_3"></a><h2>Setting permissions</h2>
<p>You don&#8217;t want to run gphoto2 as root, so follow the steps in <tt>/usr/share/doc/libgphoto2-2/README.Debian</tt>. If you don&#8217;t have a usb group yet create it (<tt>man addgroup</tt>) and remember to logout and login after adding yourself (<tt>man adduser</tt>) to the group. Change fstab and set the correct devgid there (<tt>man id</tt>).</p>
<p>I added the following line to my /etc/fstab:</p>
<pre>
none  /proc/bus/usb  usbfs devuid=0,devgid=1002,devmode=0660  0   0
</pre>
<a name="wptoc_0_1_4"></a><h2>First test</h2>
<p>If hotplug found your camera try</p>
<pre>$ gphoto2 --auto-detect</pre>
<p>The output should be</p>
<pre>
Model                          Port
----------------------------------------------------------
Canon PowerShot A60            usb:
</pre>
<p>To download the first picture from your camera type</p>
<pre>$ gphoto2 --get-file 1 </pre>
<p>You will need at least one file (photo, movie) on the cam of course.</p>
<a name="wptoc_0_0_1"></a><h1>Gphoto2 drivers</h1>
<p>The camera can be accessed by two different kind of drivers:</p>
<ol>
<li>The PTP protocol is a manufacturer-independent picture transfer protocol. Libgphoto2 doesn&#8217;t fully support PTP completeley yet.<br />
There is also a project called jphoto that seems supports PTP but looks inactive, I haven&#8217;t tried it yet.</li>
<li>Canon protocol.</li>
</ol>
<p>If you want to capture images with gphoto2 you need the ptp driver. This may work or not with the canon driver in the future.</p>
<a name="wptoc_1_1_0"></a><h2>Driver status</h2>
<table class="sci">
<thead>
<tr>
<th>feature</th>
<th>ptp2 driver 2.1.3</th>
<th>canon driver 2.1.3</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#8211;capture-image</td>
<td>yes</td>
<td>no</td>
</tr>
<tr>
<td>&#8211;capture-movie</td>
<td>no</td>
<td>no</td>
</tr>
<tr>
<td>&#8211;delete-all-files</td>
<td>no (4)</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;delete-file range</td>
<td>no (4)</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-all-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-all-thumbnails</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-audio-data</td>
<td>?</td>
<td>?</td>
</tr>
<tr>
<td>&#8211;get-file range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-thumbnail range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;list-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;list-folders</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;mkdir folder</td>
<td>no</td>
<td>yes (1,3)</td>
</tr>
<tr>
<td>&#8211;num-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;rmdir folder</td>
<td>?</td>
<td>?</td>
</tr>
<tr>
<td>&#8211;show-info range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;summary</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;upload-file file</td>
<td>no</td>
<td>yes (2)</td>
</tr>
</tbody>
</table>
<p>Comments:</p>
<ol>
<li>the folder will be in capitals</li>
<li>the .deb in sid DOESN&#8217;T SUPPORT upload.</li>
<li>hm, can&#8217;t create a folder &#8216;folder&#8217;&#8230;
<li>doesn&#8217;t delete everything properly (firmware bug?)</li>
</ol>
<p><b>Note:</b> Mixing the usage of both drivers seems to crash the camera.</p>
<a name="wptoc_0_0_2"></a><h1>More tools for the A60</h1>
<ul>
<li><a href="http://sourceforge.net/projects/libptp">libptp</a> is part of gphoto but there is a stand-alone tool included that uses it to set camera properties.<br />
You can&#8217;t do that with gphoto2.
</li>
<li>
Petr Danecek wrote a tool for for <a href="http://www.ucl.cas.cz/~petr/plant-growth/">periodic capturing</a> for the A70.<br />
It should work with the A60 too (I didn&#8217;t test it yet).
</li>
</ul>
<a name="wptoc_0_0_3"></a><h1>More links&#8230;</h1>
<ul>
<li>I love <a href="http://hugin.sf.net">hugin</a> to stitch my photos!
</li>
<li>Have a look at <a href="http://www.patrice.ch/en/computer/linux/articles/2003/0509">this page about the A60</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
