<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi John,<br>
      It seems that this *may* be a bug in PCManFM.<br>
      <br>
      You might point the developers to this bug.<br>
      Here is their mailing list:<br>
      <br>
      <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/pcmanfm-develop">https://lists.sourceforge.net/lists/listinfo/pcmanfm-develop</a><br>
      <br>
      My reasoning is, if Shotwell can find it correctly, then the
      backend MUST work (except the error -53)<br>
      Unless the libfm backend doesn't work right...<br>
      Either way, I think the pcmanfm devs will be able to fix this, and
      would probably appreciate your report.  You are always very
      detailed and very rigorous in your testing, and can give reliable
      tests to reproduce this bug.<br>
      <br>
      On 09/25/2014 12:21 PM, John Hupp wrote:<br>
    </div>
    <blockquote cite="mid:54244F2B.200@prpcompany.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">New developments:<br>
        <br>
        I dug up some old testing info from another problem and see that
        I was using<br>
        $ gvfs-mount -s gphoto2<br>
        to unmount gvfs filesystems (used for all cameras supporting the
        PTP standard for photo transfers)<br>
        <br>
        But to use gvfs-mount, you have to first install gvfs-bin.<br>
        <br>
        But in any case that now seems unnecessary.  Once in PCManFM,
        one can eject/unmount any of the filesystems displayed for the
        camera, and it will unmount all of them.  One of the displayed
        filesystems will disappear from PCManFM at that point, and the
        other one or two will remain displayed (thereby reflecting some
        status as recognized or available, but not mounted).  The camera
        is ready to be unplugged.<br>
        <br>
        But there is still a lot of buggy behavior here.  Either by
        PCManFM, or perhaps by gvfs at the bottom of it.  Some problems:<br>
        - The Kodak EasyShare C182 error when plugged in: "Error
        initializing camera: -53: Could not claim the USB device."<br>
        - Multiple filesystems are represented.  Two for the Canon
        Powershot G1, both with matching contents.  Three for the Kodak
        EasyShare C182; some or all of the contents are duplicated.<br>
        - There is another error if you do not initially mount the
        camera storage in PCManFM, but say, in Shotwell, then close that
        and try to mount in PCManFM.  I didn't record the error but it
        duplicates reliably.<br>
        <br>
        These bad behaviors are more troubling because opening PCManFM
        when plugging in a camera is the only option offered by
        default.  On account of that I hope someone has time to better
        define the bug(s) and pursue the problem.  (I've undertaken
        several of these mis/adventures.  It is sometimes a long road,
        and now would be a bad time for me take a big detour.)<br>
        <br>
        That reference to Shotwell brings me to another point.<br>
        <br>
        <hr size="2" width="100%"><br>
        Looking for a less troubling and confusing user experience, I
        found it reported that Shotwell is the default photo manager for
        Ubuntu 14.04.  It's available via Synaptic and only installs a
        few small dependencies.  Total download was 12.5 MB as I recall.<br>
        <br>
        Now plugging in a camera results in Shotwell being offered
        alongside the file manager as choices to mount the storage. 
        There is also a checkbox where one could choose to always use
        Shotwell instead of being offered the choice.  (Though for the
        Kodak there is still the Error -53 popup to OK through.)<br>
        <br>
        The Shotwell interface reasonably shows just one filesystem
        represented for either the Canon or the Kodak.  When one is done
        previewing/importing and closes Shotwell, it automatically
        unmounts the camera storage once again, and the camera can be
        unplugged.<br>
        <br>
        That's better!<br>
        <br>
        <hr size="2" width="100%"><br>
        All the same, I hope someone pursues and fixes this.  I prefer
        Lubuntu's initial default of using PCManFM for camera downloads
        -- it's just not working well now.<br>
        <br>
        --John<br>
        <br>
        On 9/23/2014 10:18 PM, Israel wrote:<br>
      </div>
      <blockquote cite="mid:54222A03.6090904@gmail.com" type="cite">
        <meta content="text/html; charset=utf-8"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">Hi John!<br>
          I would check out some of the documentation on the gvfs...<br>
          However you can try<br>
          <tt>gvfs-mount --unmount</tt> <i><location></i><br>
          where <location> is the actual location.<br>
          You can also use<br>
          <tt>gvfs-mount -o</tt><br>
          to watch what it is dong when you plug it in.<br>
          (it monitors the output)<br>
          <tt>man gvfs-mount</tt><br>
          will give you more information.<br>
          You can also type<br>
          <tt>man gvfs</tt><TAB><TAB><br>
          (Use the actual TAB key) to see all the gvfs related commands
          listed.<br>
          This should at least get you pointed in the right direction<br>
          <br>
          On 09/23/2014 05:29 PM, John Hupp wrote:<br>
        </div>
        <blockquote cite="mid:5421F44D.20206@prpcompany.com" type="cite">
          <meta http-equiv="content-type" content="text/html;
            charset=utf-8">
          I plugged a Kodak EasyShare C182 (supporting PTP file
          transfer) into a 14.04.1 desktop today over USB and it
          responded with:<br>
          <br>
          "Error initializing camera: -53: Could not claim the USB
          device"<br>
          <br>
          OK'ing out of that, it then offered to open the device in the
          file manager, where it had mounted 3 devices.  One with no
          contents, another with DCIM and MISC folders, and another with
          something-store1 and something-store2 folders.  (I suppose
          there would be separate devices for internal memory and an SD
          card, but I don't know why there would be 3 devices.)<br>
          <br>
          It was then only possible to unmount 1 of the 3 devices.  To
          prevent corruption, I powered down the PC before unplugging
          the camera.<br>
          <br>
          Under 13.04, it responded:<br>
          <br>
          "Error initializing camera: -60: Could not lock the device"<br>
          <br>
          And then it opened in the file manager, again showing 3
          devices, only one of which I could unmount, so again I powered
          down to disconnect.<br>
          <br>
          <hr size="2" width="100%"><br>
          For a partial comparison, I plugged a Canon Powershot G1 into
          the 14.04.1 desktop and there was no error, it offered to open
          in file manager, and it mounted 2 devices, both with DCIM and
          MISC folders.  I was only able to unmount one of the devices
          and so powered down to disconnect.<br>
          <br>
          <hr size="2" width="100%"><br>
          Searching for non-ancient explanations (of which there are
          many), I did find this popular bug:<br>
          <br>
          <a moz-do-not-send="true"
            href="https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1296275">PTP



            Cameras not working on 14.04, works flawlessly on 12.04</a><br>
          <br>
          But that report does not reference either of these errors, and
          this machine already has the prescribed libghoto2 update that
          should fix the described bug.<br>
          <br>
          There is also this Launchpad Answer regarding error -53, but
          it does not mention the unmount problem:<br>
          <br>
          <a moz-do-not-send="true"
href="https://answers.launchpad.net/ubuntu/+source/shotwell/+question/157569">Unable



            to fetch previews from the camera: Could not claim the USB
            device (-53)</a><br>
          <br>
          The errors and the unmount problem are both troubling, but if
          I could find a manual unmount command (perhaps with gvfs?), at
          least I would have a workaround that would not involve
          rebooting.<br>
          <br>
          Does anyone have the lowdown on all this?  What's the best
          available solution?<br>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
        </blockquote>
        <br>
        <br>
        <pre class="moz-signature" cols="72">-- 
Regards</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Regards</pre>
  </body>
</html>