<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1"><font face="Arial">Despite what I wr<font size="-1">ote
below, I had the further thought that<font size="-1">, <font
size="-1">"<font size="-1">Yes, <font size="-1">I would
like to know how to write udev rules, and if I can
find a well-written how-to, then I'll move ahead."<br>
<br>
<font size="-1">And indeed, I believe I found such a
document at <a
href="http://www.reactivated.net/writing_udev_rules.html">http://www.reactivated.net/writing_udev_rules.html</a></font><br>
<br>
<font size="-1">But <font size="-1">after p<font
size="-1">lowing through the whole thing, I
encountered this mysterious warning in his USB
Camera section:<br>
</font></font></font></font></font></font></font></font></font></font>
<blockquote><font size="-1"><font face="Arial"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1">Like most, my camera identifies
itself as an external hard disk connected
over the USB bus, using the SCSI transport.
To access my photos, I mount the drive and
copy the image files onto my hard disk.</font></font></font></font></font></font></font></font></font></font></font><br>
<br>
<font size="-1"><font face="Arial"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1">Not all cameras work in this way:
some of them use a non-storage protocol such
as cameras supported by gphoto2. In the
gphoto case, you do not want to be writing
rules for your device, as is it controlled
purely through userspace (rather than a
specific kernel driver). </font></font></font></font></font></font></font></font></font></font></font><br>
</blockquote>
<font size="-1">Though I don't <font size="-1">understand</font>
what he was sa<font size="-1">ying about userspace</font>, I
observe <font size="-1">that</font> pcmanfm displays the camera
files location<font size="-1"> as gphoto2://[usb:003,004] rather
than a usual device or file system path. <font size="-1">Plus</font>
/dev/disk seems to have no refer<font size="-1">ence to the
camera memory.</font></font></font><br>
<br>
<font size="-1">Does this seem like a udev rule show-stopper when it
comes to solving this problem?</font><br>
<br>
<div class="moz-cite-prefix">On 11/2/2012 12:06 PM, John Hupp wrote:<br>
</div>
<blockquote cite="mid:5093EF7A.5020405@prpcompany.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<font size="-1"><font face="Arial">Phill, I pos<font size="-1">ted
in the Ubuntu<font size="-1">Forums at <a
moz-do-not-send="true"
href="http://ubuntuforums.org/showthread.php?p=12333141#post12333141">http://ubuntuforums.org/showthread.php?p=12333141#post12333141</a><font
size="-1">. And yes, <font size="-1">this Canon
Powershot G1 is a d<font size="-1">igital camera with
built-in mem<font size="-1">ory which is being
auto-mounted as a<font size="-1">s</font> file
system at gphoto2://[<font size="-1">usb:003,004].
The Wiki<font size="-1"> in<font size="-1">fo
that applies to your webcam does not apply
to my Ca<font size="-1">non<font size="-1">.
(<font size="-1">T</font>here is no
/dev/video*, for instance).<br>
<br>
<font size="-1">Steve, you suggested
that I look at writing udev rules for
the camera<font size="-1">. So I read
up on the topic at <a
moz-do-not-send="true"
href="http://manpages.ubuntu.com/manpages/karmic/en/man7/udev.7.html">http://manpages.ubuntu.com/manpages/karmic/en/man7/udev.7.html</a>,
but I have not yet found a way to
apply that. Some<font size="-1">where</font>
there is probably further reading
that would tell me how to locate the
rule that causes the camera
auto-mount, but just taking a guess
that the governing rule file was
/lib/udev/rules.d/40-libgphoto2-2.rules
(since the camera mounts as
gphoto2://[usb:003,004]), I didn't
see any rule that would govern
auto-mount.<br>
<br>
I could attach 40-libgphoto2-2.rules
if anyone wants to see it, but it's
179KB.<br>
<br>
So unless I can get some pointed
advice on where to locate the rule
of interest, it looks to me like
trying to write a udev rule<font
size="-1"> -- </font>while an
appealing and compliant approach<font
size="-1"> -- </font>would be
jumping down a pretty deep rabbit
hole for me. (I mean deeper than the
one I've already jumped down.<font
size="-1">)<br>
<br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
<div class="moz-cite-prefix">On 11/2/2012 5:44 AM, Yorvyk wrote:<br>
</div>
<blockquote cite="mid:509395FA.1080701@googlemail.com" type="cite">On
02/11/12 01:10, Phill Whiteside wrote: <br>
<blockquote type="cite">Hi John, <br>
<br>
I've found my little minicom usb camera / mic device. It does
not get <br>
mounted by PCManFM, but does appear if I check <br>
<br>
phillw@piglet:~$ ls /dev/video* <br>
/dev/video0 <br>
<br>
Which changes to <br>
<br>
phillw@piglet:~$ ls /dev/video* <br>
/dev/video0 /dev/video1 <br>
<br>
when I plug it in. <br>
<br>
I suspect that as my device is a real dumb web-cam, has yours
got in <br>
built memory? If it has, then that would explain it being
mounted as a <br>
storage device. <br>
<br>
I'm following the hints and tips from the wiki area [1] The
Multimedia <br>
guys on the forum are far better placed to assist you[2]. <br>
<br>
Regards, <br>
<br>
Phill. <br>
1. <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://help.ubuntu.com/community/Webcam#Configuring_Webcam_Software">https://help.ubuntu.com/community/Webcam#Configuring_Webcam_Software</a>
<br>
2. <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://ubuntuforums.org/forumdisplay.php?f=334">http://ubuntuforums.org/forumdisplay.php?f=334</a>
<br>
<br>
<br>
On 1 November 2012 23:59, John Hupp <<a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:lubuntu@prpcompany.com">lubuntu@prpcompany.com</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:lubuntu@prpcompany.com"><mailto:lubuntu@prpcompany.com></a>>
wrote: <br>
<br>
Thanks! <br>
<br>
The home page is at <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://entangle-photo.org/">http://entangle-photo.org/</a>
<br>
<br>
Since Entangle is not in the official repos, I installed
it from <br>
GetDeb: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://www.getdeb.net/software/Entangle">http://www.getdeb.net/software/Entangle</a>
<br>
<br>
On 11/1/2012 7:43 PM, Phill Whiteside wrote: <br>
<blockquote type="cite"> I'd expect USB flash drives to be
auto mounted (The screams of "I <br>
plugged my flash drive in & it didn't mount - do not
worth <br>
thinking about :) ) <br>
<br>
I'm in no way any expert on this, but IIRC, when I
plugged my USB <br>
webcam in a few cycles ago, it launched Cheese and not
PCManFM. <br>
Things will have changed and my laptop as of them is no
longer, <br>
this one has a built in one. If you have a link to
Entangle I'd be <br>
happy to install it & see how it gets on. <br>
<br>
Regards, <br>
<br>
Phill. <br>
<br>
On 1 November 2012 23:06, John Hupp <<a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:lubuntu@prpcompany.com">lubuntu@prpcompany.com</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:lubuntu@prpcompany.com"><mailto:lubuntu@prpcompany.com></a>>
wrote: <br>
<br>
Perhaps it is too eager, I don't know. It seems
like standard <br>
behavior with removable storage -- it does the same
thing with <br>
USB flash drives, which is also what Windows does. <br>
<br>
It would also be interesting to figure out why
Entangle locks <br>
up when it tries to unmount the camera. <br>
<br>
But in the meantime I'm very eager for a
work-around. I've <br>
put in a lot of research and testing time on this
over the <br>
lastfew weeks, and it seems that I'm close to a
decent <br>
solution with Entangle. (I like it very much when
things work <br>
the way they should, and I prefer to see the "right"
solution, <br>
but I'll admit to some battle-weariness with
confronting one <br>
issue after another.) <br>
<br>
On 11/1/2012 6:42 PM, Phill Whiteside wrote: <br>
<blockquote type="cite"> Hi John, <br>
<br>
from what you describe I think PCManFM is being
maybe just a <br>
little too eager to mount anything that arrives in
a USB <br>
port. As such, I'd suggest raising a bug against
PCManFM in <br>
the first instance, it can always get re-allocated
once the <br>
dev-team have had chance to look into it. <br>
<br>
Regards, <br>
<br>
Phill. <br>
<br>
On 1 November 2012 22:36, John Hupp <<a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:lubuntu@prpcompany.com">lubuntu@prpcompany.com</a>
<br>
<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:lubuntu@prpcompany.com"><mailto:lubuntu@prpcompany.com></a>>
wrote: <br>
<br>
I'm trying to get a Canon Powershot G1
USB-connected <br>
camera working with remote capture (tethering)
using <br>
either Entangle or Gtkam. <br>
<br>
Both apps get tripped up on the fact that
Lubuntu <br>
auto-mounted the camera. Gtkam simply
generates an error <br>
message about the camera already being in use.
Entangle <br>
notes the same condition and offers to unmount
the <br>
camera, but approving that causes the program
to lock up. <br>
<br>
Either program launches OK if I manually
unmount the <br>
camera from pcmanfm first. <br>
<br>
So I'd like to launch the camera program from
a script <br>
that first unmounts the camera. <br>
<br>
Post #2 in <br>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://ubuntuforums.org/showthread.php?t=967104had">http://ubuntuforums.org/showthread.php?t=967104had</a>
a <br>
solution in the command "gvfs-mount -s
gphoto2," but <br>
gvfs-mount is not installed by default in
Lubuntuand is <br>
not available from the default repos. <br>
<br>
I also tried "sudo umount
/home/<user>/.gvfs," which was <br>
the mount point suggested to me by "sudo
mount." That ran <br>
without error, but the camera did not seem to
be truly <br>
unmounted, and both cam apps errored as
before. <br>
<br>
What's my best solution in Lubuntu? <br>
<br>
</blockquote>
<br>
</blockquote>
</blockquote>
> <br>
I think you need to be looking at writing udev rules for the
camera. <br>
<br>
-- <br>
Steve <br>
<br>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>