Flight-Control
S | M | T | W | F | T | S | |
---|---|---|---|---|---|---|---|
39 | 24 24 | 25 25 | 26 | 27 | 28 | 29 | 30 |
40 | 01 | 02 | 03 | 04 | 05 | 06 | 07 |
41 | 08 | 09 | 10 | 11 | 12 | 13 | 14 |
42 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
43 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
|
Hot Projects
S | M | T | W | F | T | S | |
---|---|---|---|---|---|---|---|
39 | 24 24 24 | 25 25 25 | 26 26 | 27 27 | 28 28 | 29 29 | 30 30 |
40 | 01 01 | 02 02 | 03 03 | 04 04 | 05 05 | 06 06 | 07 07 |
41 | 08 08 | 09 09 | 10 10 | 11 11 | 12 12 | 13 13 | 14 14 |
42 | 15 15 | 16 16 | 17 17 | 18 18 | 19 19 | 20 20 | 21 21 |
43 | 22 22 | 23 23 | 24 24 | 25 25 | 26 26 | 27 27 | 28 28 |
|
Since the Android folks decided that MTP should be the way to connect Android devices via USB I ran into some trouble while trying to get comfortable access to the OnePlus One. There are a couple of forum threads and blog entries out there how to hack some udev rules and use scripts that try to automount the MTPFS. Some recommend mtpfs others use go-mtpfs or jmtpfs. I've tried them all and the result was still not what I wanted to have. Why can't I just plug it in and have it pop up in thunar, like any other USB/Flash device?
Well, the answer is simple: Because I have forgotten to supply the mtp USE flag for gvfs, which manages all mounting related tasks in Xfce4 for me. I also switched to libmtp-9999, because the stable release doesn't know the OnePlus One yet.
Since it's basically a per machine decision, whether it's probable, that it will ever have to mount an MTP device, just put mtp into your global USE flags in /etc/portage/make.conf
Let's see how that would play out:
$ emerge -upvND --with-bdeps=y @world
And voila:
[ebuild U *] media-libs/libmtp-1.1.8 [1.1.6-r1] USE="crypt -doc -examples -static-libs" 0 kB [ebuild R ] gnome-base/gvfs-1.20.2 USE="cdda gtk http mtp* udev udisks -afp -archive -avahi -bluray -fuse -gnome-online-accounts -gphoto2 -ios -libsecret -samba -systemd {-test}" 0 kB
After the emerge and logout/login to get gvfs reloaded you're good to go.
Connected to a Thinkpad x230 USB 2.0 port it sustained about 29MB/s read transfer rate (copying OnePlus One 4k videos to the Thinkpad's SSD), which is more or less the maximum one can get out of USB 2.0 anyways.
Discussion
Great post, helped me, thank you.
Since then the 1.1.8 version of libmtp is in the tree which supports the OnePlus One: http://sourceforge.net/p/libmtp/bugs/1107/#ecd6
So it's enough to unmask 1.1.8 instead of 9999:
echo '=media-libs/libmtp-1.1.8' » /etc/portage/package.keywords
Nice, thanks for the update. When I get the chance, I'll test it and update the post to keep the info more in line with the real-time situation.
Since this mission log entry is actually receiving a fair amount of traffic, I'd advise to go with Paul's recommendation before going 9999, which you really should only do if you want to work/develop at the cutting edge or the feature is really needed but hasn't arrived in mainline yet, like it was in this case.
Awesome post, the information you shared was resourceful and I enjoyed reading it, thanks for sharing. https://mymelee.com/
certainly like your website but you have to take a look at the spelling on quite a few of your posts. https://totovera.com/
You are my intake, I own few blogs and occasionally run out from to brand. https://totogorae.com/
I am now not positive where you’re getting your information, however good topic. https://meoktwi.com/