LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 01-10-2021, 02:42 AM   #1
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 583

Rep: Reputation: Disabled
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?
 
Old 01-10-2021, 12:23 PM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 216

Rep: Reputation: Disabled
You may find out which process is using usb with 'lsof +D /dev/bus/usb'
 
Old 01-10-2021, 12:33 PM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,660
Blog Entries: 3

Rep: Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188
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.
 
Old 01-10-2021, 01:04 PM   #4
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 583

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
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
 
Old 01-10-2021, 01:09 PM   #5
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 583

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lvm_ View Post
You may find out which process is using usb with 'lsof +D /dev/bus/usb'
output is empty, problem persists
 
Old 01-10-2021, 01:12 PM   #6
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,660
Blog Entries: 3

Rep: Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188Reputation: 1188
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Patents Are Turning BlackBerry and Nokia, Which Used Android, Into Anti-Android Fronts That Tax Android OEMs LXer Syndicated Linux News 0 10-14-2017 10:05 AM
File transfer from Android tablet changes file names Scott271 Slackware 3 04-21-2015 05:42 AM
Slow single file transfer, fast multiple transfer Manzano Linux - Networking 6 08-06-2013 12:39 PM
Bluetooth transfer file from computer to android 2.2.1 mobile otoomet Linux - Mobile 3 12-27-2011 12:44 AM
Sony PSP file transfer inaccurate transfer progress stratotak Linux - Newbie 3 01-02-2010 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration