Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: KDE 5 MTP failure
Date: Sun, 18 Jun 2017 15:04:22
Message-Id: 1952257.srNYfLdsuP@peak
In Reply to: Re: [gentoo-user] Re: KDE 5 MTP failure by Walter Dnes
1 On Friday 16 Jun 2017 14:35:21 Walter Dnes wrote:
2 > On Fri, Jun 16, 2017 at 08:23:42AM -0700, Ian Zimmerman wrote
3 >
4 > > On 2017-06-16 14:23, Grant Edwards wrote:
5 > > > This is not the first time I've seen somebody mention this "songs and
6 > > > pictures" stuff. I don't understand. When I use mtpfs to mount my
7 > > > Android devices, a "file-level view" is exactly what I get: I see the
8 > > > device's root directory and everything underneath it the exact same
9 > > > way I would if it were a USB-storage device.
10 > >
11 > > The last time I tried MTP was on Debian maybe 2 years ago or 3 years,
12 > > using the jmtpfs package. IIRC this was what happened; yes, I could see
13 > > individual files, but only certain types, and only in certain
14 > > directories.
15 >
16 > That package is currently keyworded. Use sys-fs/simple-mtpfs instead.
17 > It simply works; and it works simply. From the command line
18
19 Thanks for the instructions, Walter.
20
21 > 1) create a working mount directory, e.g. $HOME/tablet
22
23 $ mkdir ~/nexus
24
25 > 2) attach smartphone/tablet/whatever to USB port
26 >
27 > 3) sudo simple-mtpfs -o allow_other $HOME/tablet
28
29 $ sudo modprobe fuse
30 $ sudo simple-mtpfs -o allow_other ~/nexus
31 Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG
32 Electronics/Samsung) Nexus 4/5/7/10 (MTP).
33 Android device detected, assigning default bug flags
34
35 (Actually it's a Nexus 6P phone.)
36
37 > 4) cd $HOME/tablet
38
39 $ ls -la
40 total 8.0K
41 drwxr-xr-x 2 prh prh 4.0K Jun 18 15:05 .
42 drwxr-xr-x 36 prh prh 4.0K Jun 18 15:05 ..
43
44 > 5) do whatever
45 >
46 > 6) cd
47 >
48 > 7) sudo fusermount -u $HOME/tablet
49
50 $ sudo fusermount -u nexus
51 fusermount: failed to unmount /home/prh/nexus: Invalid argument
52
53 ...because it was never mounted - or if it was it was dropped immediately.
54 Dmesg has no record of anything being mounted.
55
56 I've tried two cables and both USB-2 and USB-3 ports on this box, and I've
57 tried fuse as a module and built in. I have the sys-fs/fuse package
58 installed.
59
60 I also tried an older Nexus-7 with the same result, but when I tried a
61 Samsung Galaxy Tab S I got this (as root):
62
63 # simple-mtpfs -o allow_other /home/prh/nexus
64 Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
65 LIBMTP ERROR: couldnt parse extension samsung.com/devicestatus:3
66
67 Well, Samsung do like to do their own thing.
68
69 What else might I be missing? I'm not so bothered about the two tablets, but
70 it would be good to be able to connect the phone and play with it.
71
72 > 8) dettach smartphone/tablet/whatever from USB port
73
74 --
75 Regards
76 Peter

Replies

Subject Author
Re: [gentoo-user] Re: KDE 5 MTP failure Walter Dnes <waltdnes@××××××××.org>