User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mission:log:2014:10:09:oneplus-one-mtp-automount-with-gentoo [2014/10/09 17:01] chronomission:log:2014:10:09:oneplus-one-mtp-automount-with-gentoo [2016/08/09 13:36] (current) chrono
Line 3: Line 3:
 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? 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.+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. <del>I also switched to libmtp-9999, because the stable release doesn't know the OnePlus One yet</del>.
  
 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 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
- 
-Now we just have to unlock the libmtp-9999 ebuild: 
- 
-<code> 
-$ echo "media-libs/libmtp **" > /etc/portage/package.keywords/mtp 
-</code> 
  
 Let's see how that would play out: Let's see how that would play out:
Line 22: Line 16:
  
 <code> <code>
-[ebuild     U *] media-libs/libmtp-9999 [1.1.6-r1] USE="crypt -doc -examples -static-libs" 0 kB+[ebuild     U *] media-libs/libmtp-1.1.8 [1.1.6-r1] USE="crypt -doc -examples -static-libs" 0 kB
 [ebuild      ] 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 [ebuild      ] 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
 </code> </code>
Line 28: Line 22:
 After the emerge and logout/login to get gvfs reloaded you're good to go.  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 the maximum one can get out of USB 2.0 anyways.+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.
  
 {{tag>android mtp software gentoo oneplusone}} {{tag>android mtp software gentoo oneplusone}}