disconnect PTP devices

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

disconnect PTP devices

sachin sharma
Hi,

I want to try to disconnect or unmount PTP devices from linux, can you please help me regarding this,  tried alot but i unable to do this.

Thanks & Regards

Sachin Sharma



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gphoto-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
Reply | Threaded
Open this post in threaded view
|

Re: disconnect PTP devices

Damon Lynch
On 03/03/2016 09:49 AM, sachin sharma wrote:
> Hi,
>
> I want to try to disconnect or unmount PTP devices from linux, can you
> please help me regarding this,  tried alot but i unable to do this.
>
>

That depends on your desktop environment. If Gnome-like, eject it from
the File browser (Nautilus). From the command line, gvfs-mount --unmount.

If KDE, then you probably have to close the Dolphin or any other KDE
application that accessed the device -- that's the case for MTP devices
at least, because KDE provides no facility to do a virtual "unmount" or
"eject" of an MTP device (i.e. give up exclusive control of the device).

I definitely prefer the Gnome approach, which leaves the user in
control. In my opinion the KDE approach is fundamentally flawed and
should be fixed.

I filed a bug with the KDE developers about it [1] and tried to drum up
interest on a KDE developer mailing list, but unfortunately my
impression is that for them it's no  problem if a non-KDE program is
locked out of accessing the MTP device.

[1] https://bugs.kde.org/show_bug.cgi?id=356425

--

http://www.damonlynch.net


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gphoto-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
Reply | Threaded
Open this post in threaded view
|

Re: disconnect PTP devices

Marcus Meissner-4
On Thu, Mar 03, 2016 at 12:23:44PM +0500, Damon Lynch wrote:

> On 03/03/2016 09:49 AM, sachin sharma wrote:
> > Hi,
> >
> > I want to try to disconnect or unmount PTP devices from linux, can you
> > please help me regarding this,  tried alot but i unable to do this.
> >
> >
>
> That depends on your desktop environment. If Gnome-like, eject it from
> the File browser (Nautilus). From the command line, gvfs-mount --unmount.
>
> If KDE, then you probably have to close the Dolphin or any other KDE
> application that accessed the device -- that's the case for MTP devices
> at least, because KDE provides no facility to do a virtual "unmount" or
> "eject" of an MTP device (i.e. give up exclusive control of the device).
>
> I definitely prefer the Gnome approach, which leaves the user in
> control. In my opinion the KDE approach is fundamentally flawed and
> should be fixed.
>
> I filed a bug with the KDE developers about it [1] and tried to drum up
> interest on a KDE developer mailing list, but unfortunately my
> impression is that for them it's no  problem if a non-KDE program is
> locked out of accessing the MTP device.
>
> [1] https://bugs.kde.org/show_bug.cgi?id=356425

Additionaly,

if you just want to safely umount device before unplugging ... the PTP devices
are hotplug, so you can just unplug them without fear of data corruption.

Ciao, Marcus

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gphoto-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-devel