So, finally I had to by a (un)smart phone for reasons we don't have to mention here. One of the first problems I run in to was not being able to connect the phone to my siduction-computers for viewing photos shot by the phone. Normal usb-connection only shows the external sd-card. So I need mtp support on my computers.
Android 4.4.4 on the phone.
Siduction, XFCE on the computers
I have tried and now I found one way of doing it.
I installed jmtpfs
I modified /etc/fuse.conf to ]# /etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)
# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
#mount_max = 1000
# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other It's the last line that shall be unchecked.
I created a mountpoint "mtp"
Now I can mount my phone as root with # jmtpfs -o allow_other mtp
and read the files as user
and unmount, also as root with # fusermount -u mtp
OK, that's working, but I want to be able to do this as a user, I don't want to became root to be able to mount and unmount the phone. Can this be done in some way? Maybe by a nice line in fstab?
I would use Airdroid (https://play.google.com/store/apps/details?id=com.sand.airdroid) or Droid over WiFi (https://play.google.com/store/apps/details?id=com.dmitril.droidoverwifi) instead of fiddling with mtp.
Quote from: towo on 2014/07/08, 22:09:49
I would use Airdroid (https://play.google.com/store/apps/details?id=com.sand.airdroid) or Droid over WiFi (https://play.google.com/store/apps/details?id=com.dmitril.droidoverwifi) instead of fiddling with mtp.
They are working, I tried, but they don't let me see my photos directly from the phone in my favorite viewer. And I don't trust this apps either, I don't trust any apps....
I want a cable between the phone and the computer and be able to browse my files as I could before with my old phone and as I can with my digital camera.
If you have a separate sdcard, MTP won't work
MTP is used for phones without removable sdcards instead of USB Mass Storage
If you say you have it working, hopefully you don't corrupt the sdcard (if removable)
What file system you using, ext4 or f2fs ?
I use shotwell for all my photos and it mounts my phone as a camera or at least it did when I last tried it.
Quote from: piper on 2014/07/09, 01:40:23
If you have a separate sdcard, MTP won't work
MTP is used for phones without removable sdcards instead of USB Mass Storage
If you say you have it working, hopefully you don't corrupt the sdcard (if removable)
What file system you using, ext4 or f2fs ?
My phone has one internal not removable "sdcard" and one removable sdcard. With the phones USB-settings on USB Mass Storage I will only be able to read the removable sdcard, thats working as a normal usb storage then. But I want to reach the internal sdcard and that has to be done with mtp, with the phones USB-settings on mtp. I don't want to write, just read and copy.
I use ext4 on my computers.
@ titan, I don't think any camera application can reach the photos on my phone without mtp
So, I still want to be able to mount my phone, with mtp, as user, preferable not writeable only readable
you need to install the mtp libs libmtp-common etc . I have just taken a photo with my phone opened shotwell connected my phone which it sees it as gt i9300 I can see the photo and download it
Quote from: vildeQuote from: piper on Yesterday at 08:40:23 PMIf you have a separate sdcard, MTP won't work
MTP is used for phones without removable sdcards instead of USB Mass Storage
If you say you have it working, hopefully you don't corrupt the sdcard (if removable)
What file system you using, ext4 or f2fs ? My phone has one internal not removable "sdcard" and one removable sdcard. With the phones USB-settings on USB Mass Storage I will only be able to read the removable sdcard, thats working as a normal usb storage then. But I want to reach the internal sdcard and that has to be done with mtp, with the phones USB-settings on mtp. I don't want to write, just read and copy.
I use ext4 on my computers.
@ titan, I don't think any camera application can reach the photos on my phone without mtp
So, I still want to be able to mount my phone, with mtp, as user, preferable not writeable only readable
Every phone has one internal not removable "sdcard"
The file system I was asking about was on the phone itself, not computer ;)
Please just say what phone you have :)
titan, correct on the galaxy 3, but, are you really using MTP to look at your photo's or you using PTP, which is used for phones that don't support MTP (for camara, photo''s )
There is a way to use MTP on the galaxy 3 if USB debugging is enabled or thru adb
Ah, just did a little reading, so, starting with the galaxy 3 you can use MTP, still, a lot of people are having problems according to the forums at cm.
Xperia Z1 Compact
Have you tried going to > setting-xperia-connectivity change the mode MSC to MTP, (if you are running stock, if running a modified rom, the setting above won't work) the pictures are in DCIM/Camera, unless sony does something different, and make sure usb debugging is enabled
Quote from: piper on 2014/07/10, 03:28:42
Have you tried going to > setting-xperia-connectivity change the mode MSC to MTP, (if you are running stock, if running a modified rom, the setting above won't work) the pictures are in DCIM/Camera, unless sony does something different, and make sure usb debugging is enabled
The problem is well known, With the phone settings to MSC, I can reach the removable sdcard only and nothing else, (and that's what it says in the manual also) with the settings MTP I will not see anything on my linux computers. MTP applications are made only for Windows and Mac.
The only way through usb-cable to reach my photos is to mount MTP. MTP is made for windows users who are to stupid to unmount there usb devices before unconnecting them. And this great Linux-based Android shit will not make me browse my files with Linux, I have to use Windows or Mac for that. I've written it before and I still believe that Android is the death of the free Linux because even if Android is Linux and the core is free it's completely useless without the nonfree apps.
So, back to my original question, how do I mount and unmount my phone , MTP, (preferable only readable) as user??????????????
Quote from: vilde on 2014/07/10, 10:03:41
So, back to my original question, how do I mount and unmount my phone , MTP, (preferable only readable) as user? ??? ??? ??? ??? ?
Gmtp
Quote from: titan on 2014/07/10, 10:42:35
Quote from: vilde on 2014/07/10, 10:03:41
So, back to my original question, how do I mount and unmount my phone , MTP, (preferable only readable) as user? ??? ??? ??? ??? ?
Gmtp
Not working, don't detect my phone.
And again, I want to mount the filesystem on the phone so I can use it with all my preferred applications directly. I don't want some sort of only download files support
Well, it is a problem with the phone you have, as it wants/needs windows media player for MTP to to work properly.
MTP is an extension of PTP (picture transfer protocol) and part of WMDRM (windows media drm) and is actually part of windows media framework.
My nexus 5 has no problems with MTP in linux, apt-get install and it just works, been like that since the release of nexus 5.
Most of the problems I have seen are from OEM phones, Sony, Samsung, etc, but, that was late 2012/2013.
I stick to non-oem phones, so I can build my own system ;)
Can I see these commands with your phone plugged in to your computer. Make sure mtp-tools, kio-mtp, mtpfs, is installed (apt-get)
mtp-detect | grep idVendor
and
mtp-detect | grep idProduct
I don't have kio-mtp (rather not because I'm not using KDE) I don't have mtpfs. But I have mtp-tools and jmtpfs installed, I think that will work also and this is what you want I hope:
idVendor: 0fce
idProduct: 01a7
If you want the whole output for some reason:
nisse@siduction_test:~$ mtp-detect | grep idVendor
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Device 0 (VID=0fce and PID=01a7) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
idVendor: 0fce
nisse@siduction_test:~$ mtp-detect | grep idProduct
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Device 0 (VID=0fce and PID=01a7) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
idProduct: 01a7
Sorry, I really can't help without KDE
https://lists.debian.org/debian-user/2014/05/msg00735.html
https://lists.debian.org/debian-user/2014/05/msg00733.html
the whole post is here
http://comments.gmane.org/gmane.linux.debian.user/475256
and
https://groups.google.com/forum/#!topic/linux.debian.user/g1xUk6B_RT8
I see a lot of this in a lot of searches
http://ehc.ac/p/libmtp/bugs/1036/
udev rules at #353
https://github.com/M0Rf30/android-udev-rules/blob/master/51-android.rules
might want to have a read here also
https://www.google.com/search?q=Xperia+Z1+Compact+and+mtp+in+linux&gws_rd=ssl
Quote from: vilde on 2014/07/10, 12:47:23
I don't have kio-mtp (rather not because I'm not using KDE)
I use e17 and thunar I tried gvfs with thunar a year ago and it didn't work and could not connect to the phone but I just had another look and added gvfs-backend and it all works fine.
@ titan, I think I have another problem than you with my xperia Z1, but thanks anyway.
@ piper, I did a test-installation with KDE and installed kio-mtp before but still the telephone is not recognized. I shall read and check your links later when I have more time.
One thing more.... I tried to flush down the telephone in the toilet so I can by a new one but it didn't work, and after bringing the phone up from the water it's still working so I have to stick with it for a while....
hmm ... one can try a hammer ... 8)
lol, :) hehe
It's a nice phone, water resistant, dust proof, it will probably be running android "L" after it gets released (I have been running it since google released the preview), if not kitkat is good also :)
These 2 links *might shed some light
http://forums.linuxmint.com/viewtopic.php?f=49&t=156620
http://www.mysolutions.it/mounting-your-mtp-androids-sd-card-on-ubuntu/
Thanks everybody for your help. I gave up this for now and made a work-around by adjusting the phones camera-setting to store camera files on the external sd-card that is reachable as a normal usb-memory.
I just use Airdroid as suggested above by towo, it works well.
What about gmtp?