LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   android-file-transfer error (https://www.linuxquestions.org/questions/linux-mobile-81/android-file-transfer-error-4175688300/)

FlinchX 01-10-2021 01:42 AM

android-file-transfer error
 
If I connect my Android phone to the desktop (Slackware Linux) over USB cable, android-file-transfer works. If the phone stays connected for a while, android-file-transfer starts displaying an error at startup:

Code:

Device is busy, maybe another process is using it.

Close other MTP applications and restart Android File Transfer.

Press Abort to kill them or Ignore to try next device.

The fix is to unplug and plug back the USB cable.

Is there a purely software fix that does not involve touching the cable?

lvm_ 01-10-2021 11:23 AM

You may find out which process is using usb with 'lsof +D /dev/bus/usb'

teckk 01-10-2021 11:33 AM

I've had android do that using mtpfs or simple-mtpfs if:

You have a file manager open on your pc, showing an android directory. Android considers that to be busy. Or if you have a shell open, where you are in a mounted android directory.

The solution is to close whatever is viewing that directory on the android. Android is weird.

Quote:

The fix is to unplug and plug back the USB cable.
How about if you un-mount the android and then re-mount it, with whatever mtpfs software that you are using.

FlinchX 01-10-2021 12:04 PM

Quote:

Originally Posted by teckk (Post 6206085)
How about if you un-mount the android and then re-mount it

I do not understand this part. I am not typing any explicit mounting commands. This is my workflow:

- i have the desktop
- i have the android phone
- i have an usb-microusb cable
- i plug it into desktop and phone
- i start android-file-transfer

it works for a while then starts displaying the error above next times i start it

FlinchX 01-10-2021 12:09 PM

Quote:

Originally Posted by lvm_ (Post 6206082)
You may find out which process is using usb with 'lsof +D /dev/bus/usb'

output is empty, problem persists

teckk 01-10-2021 12:12 PM

Look up the software that you are using and see what it does, what it's dependencies are.

Code:

pacman -Si android-file-transfer
...
Name            : android-file-transfer
Version        : 4.0-1
Description    : Android MTP client with minimalistic UI
Architecture    : x86_64
URL            : https://github.com/whoozle/android-file-transfer-linux
...
Depends On      : qt5-base  fuse2  libxkbcommon-x11  hicolor-icon-theme  file
...
Download Size  : 621.39 KiB
Installed Size  : 3205.29 KiB
...

I've never used it. It uses MTP and FUSE.
https://github.com/whoozle/android-f...ster/README.md
https://github.com/whoozle/android-f.../master/FAQ.md


All times are GMT -5. The time now is 11:03 PM.