<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=1912&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / mtp device shown twice when plugged into ascii laptop]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=1912</link>
		<description><![CDATA[The most recent posts in mtp device shown twice when plugged into ascii laptop.]]></description>
		<lastBuildDate>Wed, 25 Apr 2018 13:18:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8586#p8586</link>
			<description><![CDATA[<p>Sorry for resurrecting an old post, but I&#039;m experiencing the double item issue on Caja (1.16.6), too. My phone is a Motorola Moto-G (first model I think - don&#039;t know if this is relevant -... it shows as &quot;XT1032&quot; on file managers), and when I plug it in, almost always a double icon appears under &quot;Devices&quot;, the &quot;almost&quot; is because sometimes the phone shows once. When it shows twice, both of the &quot;devices&quot; are fully functional, e.g. I can browse, cut/copy etc. files from/to both of them. I&#039;m on ASCII fully updated.</p>]]></description>
			<author><![CDATA[dummy@example.com (Max_B)]]></author>
			<pubDate>Wed, 25 Apr 2018 13:18:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8586#p8586</guid>
		</item>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7941#p7941</link>
			<description><![CDATA[<p>A quick follow-up: </p><p>When my Android phone is mounted by jmtpfs, I can perform all these operations from within the file manager (caja) on my Devuan laptop without any problems:<br />&#160; - copy and paste files in either direction (phone &lt;-&gt; laptop)<br />&#160; - cut and paste files in either direction (phone &lt;-&gt; laptop)<br />&#160; - create new files on the phone<br />&#160; - delete files from the phone<br />&#160; - open and view files on the phone</p><p>However, jmtpfs mounts the phone in such a way that GUI applications such as pluma <strong>cannot</strong> <em>modify</em> files on the phone--I am able to start editing files that are on the phone, but I get an I/O error when I try to save the modified file. I did some duck-ducking and it seems this a known mtp limitation (<a href="https://askubuntu.com/questions/284762/some-ubuntu-13-04-applications-cannot-access-files-on-mtp-mounted-systems-why/421503" rel="nofollow">https://askubuntu.com/questions/284762/ … why/421503</a>).</p><p>Interestingly, gvfs (when it works) mounts my phone in such a way that pluma and other GUI applications <strong>can</strong> modify and save files on the phone. How does gvfs-mtp-volume-monitor magically work around an mtp limitation? I&#039;d love to learn the trick so that I can implement it in my workaround. Anybody know?</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Mon, 12 Mar 2018 19:13:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7941#p7941</guid>
		</item>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7800#p7800</link>
			<description><![CDATA[<p>Gvfs-mtp-volume-monitor seems to be a buggy mess. There only consistent thing about it is that it always detects my phone twice. Otherwise, it is pretty unpredictable: It occasionally detects the phone and shows the two desktop icons, but doesn&#039;t actually mount the device. Occasionally the caja windows that pop up do not contain any files or directories, so I need to close the two windows then double-click on one of the two desktop icons. Occasionally, the device is detected but an error box pops up saying the device is unavailable. I give up on using gvfs for mounting my phone.</p><p>Here is my graybearded workaround:</p><p>1. sudo apt-get install jmtpfs</p><p>2. sudo chmod a-x /usr/lib/gvfs/gvfs-mtp-volume-monitor</p><p>3. Create /etc/udev/rules.d/80-mtp-mount.rules with this in it:</p><div class="codebox"><pre><code>ACTION==&quot;add&quot;, SUBSYSTEM==&quot;usb&quot;, ATTR{idVendor}==&quot;04e8&quot;, RUN+=&quot;/bin/su bruno -c /opt/scripts/mtp-mount&quot;</code></pre></div><p>4. Create /opt/scripts/mtp-mount with this in it, then make it executable:</p><div class="codebox"><pre><code>#!/bin/sh

# mount the device
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/scripts
export DISPLAY=:0.0
mkdir $HOME/Phone &amp;&amp; jmtpfs $HOME/Phone &amp;&amp; caja $HOME/Phone

# create a .desktop file to unmount the device
desktop_file=$HOME/Desktop/Phone-unmounter.desktop
cat &lt;&lt; EOF &gt; $desktop_file
[Desktop Entry]
Comment=Phone Unmounter
Exec=sh -c &quot;fusermount -u ~/Phone; rm -r ~/Phone; rm $desktop_file&quot;
Icon=media-eject
Terminal=false
Type=Application
Name[en_US]=Eject Phone
EOF
sleep 0.5 # to make sure .desktop exists
sudo chmod a+x $desktop_file</code></pre></div><p>The above is as reliable as a faithful old dog, with never any surprises. </p><p>Folks experiencing flaky mounting of their Android phones (or other mtp device) can recycle the above workaround with only minimal modifications: <br />&#160; - change &quot;bruno&quot; to your username in the udev rule<br />&#160; - change the idVendor attribute in the udev rule to match your device&#039;s manufacturer</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 28 Feb 2018 20:00:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7800#p7800</guid>
		</item>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7796#p7796</link>
			<description><![CDATA[<p>Devuan Jessie and an updated Arch Linux only show the phone once when it&#039;s plugged in.</p><p>I tried re-installing all packages with gvfs in the name. Also, in caja&#039;s media preferences I unchecked &quot;Browse media when inserted&quot; and checked &quot;Never prompt or start programs on media insertion&quot;. Still, two desktop icons show up on the desktop when the phone is connected--the only difference now is that two caja windows do not automatically pop up when I plug in the phone.</p><p>Therefore, the issue here is not that caja is detecting the device twice: gvfs is the one that&#039;s detecting the device twice. Alas, I think I have the right diagnosis but still have no clue regarding the proper treatment.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 28 Feb 2018 14:13:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7796#p7796</guid>
		</item>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7792#p7792</link>
			<description><![CDATA[<p>That&#039;s a good thought, but it only has an internal/simulated sd card. Also, Devuan Jessie only shows it once.</p><p>I have an old Arch Linux machine I&#039;ve kept updated. Will try plugging into that and will update this thread with result.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 28 Feb 2018 12:29:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7792#p7792</guid>
		</item>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7790#p7790</link>
			<description><![CDATA[<p>Maybe the phone has two partitions? E.g. internal and external sd cards?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Wed, 28 Feb 2018 04:42:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7790#p7790</guid>
		</item>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7789#p7789</link>
			<description><![CDATA[<p>I did some snooping around and discovered some things:</p><p>a) A process called /usr/lib/gvfs/gvfs-mtp-volume-monitor is normally running in the background</p><p>b) If I kill the above process, my phone gets mounted/shown 0 times when I plug it in</p><p>c) If I then run /usr/lib/gvfs/gvfs-mtp-volume-monitor in the background again--or if I reboot--then we&#039;re back to &quot;normal&quot; behavior where my phone gets mounted/shown 2 times when I plug it in</p><p>I&#039;m after the Goldilocks behavior where my phone gets mounted/shown 1 time when it is plugged in. I&#039;m not sure what to try next.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 28 Feb 2018 03:14:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7789#p7789</guid>
		</item>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7787#p7787</link>
			<description><![CDATA[<p>I really don&#039;t think the two are related, as one involves mate-panel and the other involves caja/gvfs.</p><p>Regarding the current issue, it does not affect thumbdrives and external hard drives, only my phone (which is unique in that it&#039;s my only mtp device).</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Tue, 27 Feb 2018 22:49:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7787#p7787</guid>
		</item>
		<item>
			<title><![CDATA[Re: mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7786#p7786</link>
			<description><![CDATA[<p>Maybe that&#039;s related to your other duplicate icon post?</p><p><a href="https://dev1galaxy.org/viewtopic.php?id=1910" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=1910</a></p><p>Have you duplicated a config file somewhere?&#160; Maybe fire up a vm and if it doesn&#039;t duplicate icons, start comparing directories/files</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Tue, 27 Feb 2018 22:35:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7786#p7786</guid>
		</item>
		<item>
			<title><![CDATA[mtp device shown twice when plugged into ascii laptop]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=7785#p7785</link>
			<description><![CDATA[<p>I&#039;ve been on ASCII with MATE for a few days, and am very impressed and happy with it. Everything is working beautifully!</p><p>The last little thing I&#039;d like to fix is this issue: When I plug in my android phone (an MTP device), the system mounts/shows it twice. See screenshot of my desktop:</p><p><span class="postimg"><img src="http://files.dantas.airpost.net/public/doubled.png" alt="doubled.png" /></span> </p><p>These are the gvfs packages installed:</p><div class="codebox"><pre><code>bruno@thinkpad:~$ dpkg -l | grep gvfs
ii  gvfs:amd64        1.30.4-1   amd64        userspace virtual filesystem - GIO module
ii  gvfs-backends    1.30.4-1   amd64        userspace virtual filesystem - backends
ii  gvfs-bin              1.30.4-1   amd64        userspace virtual filesystem - binaries
ii  gvfs-common      1.30.4-1   all          userspace virtual filesystem - common data files
ii  gvfs-daemons     1.30.4-1   amd64        userspace virtual filesystem - servers
ii  gvfs-libs:amd64  1.30.4-1   amd64        userspace virtual filesystem - private libraries</code></pre></div><p>I&#039;d like to fix this so that the phone is mounted only once, but I have no idea how to do it. Can someone please point me in the right direction?</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Tue, 27 Feb 2018 21:35:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=7785#p7785</guid>
		</item>
	</channel>
</rss>
