Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

  1. #1

    Default Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    Hello. Please correct me if I've put the thread into the wrong category.

    Now I have my Android Redmi Note 5 I want to have my photos and videos from.

    Windows 10 works fine with the file transferring from the phone.

    As you may know, using the standard file manager on OpenSuse 15.0 causes many bugs, I installed Android file transfer and was able to download the files by using it. It obviously lacks functionality of a file manager as it can't move files from the phone on the PC (you have to copy them first, than delete). Also it doesn't show video thumbnails and doesn't allow the preview of both photos and videos, witch really complicates the media selection process.

    Than I found out there was mtpfs utility, which gets me access to the phone file system. I've installed it and it doesn't seem to work. What I did was:
    1. Changed mtpfs configuration according to https://wiki.archlinux.org/index.php...nsfer_Protocol
    2. Connected the phone
    3. Unlocked the screen lock on the phone
    4. Tried to mount mtpfs -o allow_other ~/mnt

    The only thing I got
    Code:
    (base) aleksandr@aleksandr-pc:~> mtpfs -o allow_other ~/mnt
    Listing raw device(s)
    Device 0 (VID=2717 and PID=ff40) is a Xiaomi Mi-2s (id2) (MTP).
       Found 1 device(s):
       Xiaomi: Mi-2s (id2) (MTP) (2717:ff40) @ bus 1, dev 7
    Attempting to connect device 0
    Android device detected, assigning default bug flags
    Listing File Information on Device with name: (NULL)
    LIBMTP_Get_Storage() failed:-1
    I also tried tried switching my phone on USB file transfer mode just right after connecting it, here I got:
    Code:
    (base) aleksandr@aleksandr-pc:~> mtpfs -o allow_other ~/mnt
    Listing raw device(s)
    Device 0 (VID=2717 and PID=ff40) is a Xiaomi Mi-2s (id2) (MTP).
       Found 1 device(s):
       Xiaomi: Mi-2s (id2) (MTP) (2717:ff40) @ bus 1, dev 7
    Attempting to connect device 0
    Android device detected, assigning default bug flags
    Listing File Information on Device with name: (NULL)
    fuse: bad mount point `/home/aleksandr/mnt': Transport endpoint is not connected
    Could somebody please help me to figure out why mtpfs does not work or maybe suggest other means to transfer my files?

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,854
    Blog Entries
    14

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    Install KDEconnect both on your computer and phone. Open the firewall ports on your computer, set the permissions on the phone. Works great. Also on GNOME, Xfce
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    Quote Originally Posted by Knurpht View Post
    Install KDEconnect both on your computer and phone. Open the firewall ports on your computer, set the permissions on the phone. Works great. Also on GNOME, Xfce
    I have KDE connect, but I am not satisfied with the experience. It takes much time to load the thumbnails for the pictures and once I tried to open a 400Mb video the computer just froze and I had to restart.

  4. #4

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    I have a similar problem. KDE Connect works perfectly, but I'm interested in connecting an Android device through a USB port.
    Android device: Xiaomi Redmi 6A.
    HP desktop - CPU AMD Athlon X2 - USB ports on OHCI controller and USB ports on EHCI controller.
    HP laptop - CPU Intel Core i5 - USB ports on two EHCI controllers.

    Two identical installations of Leap 15.0.
    On the desktop the USB connection works perfectly (on both OHCI and EHCI controllers); on the laptop it does not work!
    On the laptop, every time I try to access the Android device through Dolphin, it gets unmounted and remounted; the battery charge led on the device turns on ant then turns off.

    Really weird.

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,391
    Blog Entries
    1

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    Quote Originally Posted by Ralph82 View Post
    I have a similar problem. KDE Connect works perfectly, but I'm interested in connecting an Android device through a USB port.
    Android device: Xiaomi Redmi 6A.
    HP desktop - CPU AMD Athlon X2 - USB ports on OHCI controller and USB ports on EHCI controller.
    HP laptop - CPU Intel Core i5 - USB ports on two EHCI controllers.

    Two identical installations of Leap 15.0.
    On the desktop the USB connection works perfectly (on both OHCI and EHCI controllers); on the laptop it does not work!
    On the laptop, every time I try to access the Android device through Dolphin, it gets unmounted and remounted; the battery charge led on the device turns on ant then turns off.

    Really weird.
    Assuming this is a USB power management issue, you could try configuring TLP to inhibit usb-autosuspend for the device concerned ie edit USB_BLACKLIST= entry in /etc/default/tlp as explained here

    https://linrunner.de/en/tlp/docs/tlp...ation.html#usb
    openSUSE Leap 15.0; KDE Plasma 5

  6. #6

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    Quote Originally Posted by deano_ferrari View Post
    Assuming this is a USB power management issue, you could try configuring TLP to inhibit usb-autosuspend for the device concerned ie edit USB_BLACKLIST= entry in /etc/default/tlp as explained here

    https://linrunner.de/en/tlp/docs/tlp...ation.html#usb
    deano_ferrari, you are absolutely right!
    It was a power management issue.
    This happens because USB_AUTOSUSPEND=1 (default setting) enables USB auto-suspend also on AC power.

    Probably, USB_AUTOSUSPEND=1 is enough, but I have also set USB_BLACKLIST_PHONE=1 (default=0); in fact:
    0=do not exclude, 1=exclude (enable charging).

    Thank you very much for your help.

  7. #7

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    Sorry. Obviously I did mean "Probably, USB_AUTOSUSPEND=0 is enough, ..."

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,391
    Blog Entries
    1

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    Quote Originally Posted by Ralph82 View Post
    deano_ferrari, you are absolutely right!
    It was a power management issue.
    This happens because USB_AUTOSUSPEND=1 (default setting) enables USB auto-suspend also on AC power.

    Probably, USB_AUTOSUSPEND=1 is enough, but I have also set USB_BLACKLIST_PHONE=1 (default=0); in fact:
    0=do not exclude, 1=exclude (enable charging).

    Thank you very much for your help.
    Good result!
    openSUSE Leap 15.0; KDE Plasma 5

  9. #9

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    I tried changing the parameters you adviced... Nothing changed. It doesn't seem to be the power issue I have.
    Still get error like "mtp has died unexpectedly" when trying to open my photos.

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,391
    Blog Entries
    1

    Default Re: Can't find a way to access my files on an Android device. mtpfs fails, AFT is not good enough.

    Quote Originally Posted by Alekssan View Post
    I tried changing the parameters you adviced... Nothing changed. It doesn't seem to be the power issue I have.
    Still get error like "mtp has died unexpectedly" when trying to open my photos.
    Just in case the advice in this post is relevant. Specifically....

    If you connect the device while it is locked, the system will not recognize it even after you unlock it.

    For everything to be recognized and you can transfer the files, you must first unlock the device and only then connect it to the PC. If the smarthphone goes back to lock mode before you connect to the PC, you will need to disconnect, unlock again and just plug it in.
    Credit for this advice to user McCloud.
    openSUSE Leap 15.0; KDE Plasma 5

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •