LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   antiX / MX Linux (https://www.linuxquestions.org/questions/antix-mx-linux-127/)
-   -   No usb connection with smartphone (https://www.linuxquestions.org/questions/antix-mx-linux-127/no-usb-connection-with-smartphone-4175677612/)

saturn1955 06-25-2020 09:55 AM

No usb connection with smartphone
 
I changed the OS of my notebook from LMDE 4 to Antix 19. But now, I don t have usb connection with smartphone, which appeared like an usb stick in the former OS. Any suggestions how to fix that?

captain_sensible 06-25-2020 01:05 PM

You need something like a MTP Android File Transfer package installed . Probably when you have that installed Android phone should be recognized and as you say become something similar to a usb .


Antix is Debian based so you can try something from a terminal like :

sudo apt-get update

sudo apt-cache pkgnames MTP

that should come up with some possibilities after which it will just be a case of installing

ondoho 06-25-2020 02:54 PM

What filemanager is this?
Anyhoo, you probably need to 'apt install gvfs-backends'.

saturn1955 06-26-2020 03:16 AM

I followed your suggestions, but I can t establish a usb connection with my smartphone as before. I am using nemo as filemanger. What can I do more?

teckk 06-26-2020 07:04 AM

General info for mtp devices.
https://wiki.archlinux.org/index.php...nsfer_Protocol

I've been using this for years. Simple and reliable as it gets. I don't care that it's not up to date.
https://github.com/phatina/simple-mtpfs/

frankbell 06-26-2020 07:38 PM

You can also use the Android app Airdroid for file transfer and a number of other functions.

No Airdroid account is required to use it locally. I've used it a number of years with good results.

ondoho 06-27-2020 02:58 AM

Quote:

Originally Posted by saturn1955 (Post 6138105)
I followed your suggestions, but I can t establish a usb connection with my smartphone as before. I am using nemo as filemanger. What can I do more?

Please be precise.
What exactly happens in your file manager window when you plug that phone in?
What exactly happens on your phone (it should ask you how you want to connect)?

Additionally, do this:
  • UNplug the device, wait 10s
  • open a terminal and enter 'dmesg -w'
  • press Enter a few times so you get a visual divider - we're not interested in the current output
  • plug the device IN now, wait a few seconds
  • shows us all the NEW stuff that's in your terminal now

saturn1955 07-01-2020 02:19 AM

I did the following steps

Code:

sudo apt-cache pkgnames MTP
and

Code:

sudo apt-get  install gvfs-backends
Code:

$ dmesg -w
command not found

normally, when plugging in the smartphone with usb cable and changing to file transfer in the settings of the smartphone, a window of the file manager pops up, but in my case nothing happens.
what else can I do?

ondoho 07-01-2020 03:40 AM

You might need to execute dmesg with sudo: 'sudo dmesg -w' etc.

saturn1955 07-01-2020 05:37 AM

Code:

[10302.964095] usb 1-1: new full-speed USB device number 14 using uhci_hcd
[10303.093722] usb 1-1: not running at top speed; connect to a high speed hub
[10303.121740] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee7
[10303.121750] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10303.121757] usb 1-1: Product: Moto G 2014
[10303.121761] usb 1-1: Manufacturer: motorola
[10303.121766] usb 1-1: SerialNumber: ZX1D228X59


captain_sensible 07-01-2020 07:07 AM

so your phones a motorola ?

I had a quick look at live Antix 19.2 64 bit

looks like you can't use apt cache, instead :

sudo apt update

sudo apt search mtp-tools

also I found android-tools

I have previously got access to Android phones via adb bridge while producing an .apk file

from a python -> buildozer ->android

although a bit involved

it should be interesting to see what others come up with.

Also i guess you want to connect to retrieve files
another approach just might be use bluetooth via Antix and pair with phone

teckk 07-01-2020 07:20 AM

All of this works for mtp devices. Choose what you want to use and set it up correctly.

https://whoozle.github.io/android-file-transfer-linux/
https://www.gnokii.org/
https://gmtp.sourceforge.io/
https://wiki.gnome.org/Attic/PhoneManager
https://community.kde.org/KDEConnect
https://wammu.eu/
http://libmtp.sourceforge.net
https://github.com/JasonFerrara/jmtpfs
https://github.com/phatina/simple-mtpfs/
https://wiki.gnome.org/Projects/gvfs

Bugs
https://sourceforge.net/p/libmtp/bugs/1830/
https://sourceforge.net/p/libmtp/bugs/1808/

https://askubuntu.com/questions/9953...era-on-android
https://askubuntu.com/questions/1030...148034#1148034

captain_sensible 07-01-2020 08:30 AM

1 Attachment(s)
following up on @teckk suggestion on Antix 19.2

$sudo apt-get update


$ sudo apt-cache pkgnames gmtp
gmtp


$ sudo apt-get install gmtp
Reading package lists... Done

gMTP was then found in menu

connected and gained access to my vodafone so @saturn1955 i guess gMTP is a keeper ?

ondoho 07-01-2020 12:52 PM

[You're not the only one](https://duckduckgo.com/?q=%2Blinux+M...usb+connection)
Maybe there's something there for you.

Quote:

Originally Posted by saturn1955 (Post 6140084)
Code:

[10302.964095] usb 1-1: new full-speed USB device number 14 using uhci_hcd
[10303.093722] usb 1-1: not running at top speed; connect to a high speed hub
[10303.121740] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee7
[10303.121750] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10303.121757] usb 1-1: Product: Moto G 2014
[10303.121761] usb 1-1: Manufacturer: motorola
[10303.121766] usb 1-1: SerialNumber: ZX1D228X59


With the phone plugged in, unlocked and clearly in MTP modus, try this:
Code:

grep -i '18d1.*4ee7' /lib/udev/rules.d/*rules
mtp-detect | head

and show us.

saturn1955 07-02-2020 01:31 AM

I ve completely overseen, that in the menue exists the function - android device usb connect -. Clicking this entry, the smartphone appears in the filemanager like an usb stick or external hd. That was all.
The gnome phone manger and some other progs don t work for me, because the notebook lacks of bluetooth.
Thanks a lot for your help.


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