Moto G5 Plus not seen by Mint Linux system via USB
Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Moto G5 Plus not seen by Mint Linux system via USB
If I plug my phone into a Windows 10 system a notification becomes available on the phone which allows various options such as 'transfer files'. The phone previously did the same thing when I would plug it into my Linux Mint desktop. At some point it stopped doing this. Now when plugging my G5 into a USB port there is no response on the linux system at all. The USB port will charge the phone but there is no 'data' connection at all.
The lsusb command does not show anything different after plugging in the phone. I cannot pinpoint exactly when this stopped functioning but it was possibly after an OS update on the phone.
Hey, I was facing the same problem so I did some research and I found this solution.
First of all, You have to enable Developer Options on your Android phone, simply follow this guide!
Go to,
Stock Android: Settings > About phone > Build number
when you see "build number" starts to click consecutively on it until you see the message "You are now a developer"
to enable developer option in moto g5 follow the below instrustion:
1. Under settings, head onto ‘About phone‘ option and tap on it.
2. Under About phone, scroll down to bottom and tap on ‘Build number‘ 7 times. Once you tap Build number 7 times, the message will appear “You are now a developer!”
after you are a developer go to developer option, enable Developing and check that "Debug USB" has "the green V".
after you do this steps, connect your phone, and you should see it as a normal drive
sharky, it seems part of the problem is in your phone.
you need to tell it to "transfer files" when connecting via usb.
the option is probably still there in the settings, you just dont get the notification anymore.
Quote:
Originally Posted by sharky
Nothing in dmesg.
nothing at all?
i find that hard to believe.
please show us.
Quote:
Originally Posted by techblogger911
after you do this steps, connect your phone, and you should see it as a normal drive
it certainly doesn't show up as a "normal drive" without installing some rather unconventional software. definitely not on linux, and i don't think windows does this either.
but who am i to contradict techblogger911...
however, it's good to enable adb debugging, because one can do loads of stuff via adb, including copying to and from, and running a shell on the phone.
of course you need to have 'adb' (android debug bridge) installed on your computer.
The output of dmesg is over 900 lines so I can't show it directly. What I did was run dmesg and redirect the output to a file, plugged in the phone, ran dmesg and directed the output to another file. Then ran diff on the two files and got nothing return - no changes.
The output of dmesg is over 900 lines so I can't show it directly. What I did was run dmesg and redirect the output to a file, plugged in the phone, ran dmesg and directed the output to another file. Then ran diff on the two files and got nothing return - no changes.
well that's one way of doing it.
you could also try:
Code:
dmesg -w
then press enter a few times to get a visual divider.
then plug in the phone, give it about 10 seconds to settle.
there should be some new output now.
really nothing?
then there must be a hardware problem: cable, usb port on computer or phone.
well that's one way of doing it.
you could also try:
Code:
dmesg -w
then press enter a few times to get a visual divider.
then plug in the phone, give it about 10 seconds to settle.
there should be some new output now.
really nothing?
then there must be a hardware problem: cable, usb port on computer or phone.
Running 'dmesg -w' yields a segfault.
Code:
[177683.569592] RenderingThread[12020]: segfault at 7f9e1696efe0 ip 00007f9e3937e5ff sp 00007f9e15fb0910 error 6 in libKF5CoreAddons.so.5.18.0[7f9e3931a000+8a000]
It did not return to the prompt after the segfault so I tried the steps you suggested and saw nothing.
Google has made Android file systems increasing difficult to see and manipulate via USB.
You might take a look at Airdroid. You can use it to transfer files locally without creating an Airdroid account; I use it daily to transfer podcasts to my phone.
^ frankbell, if even dmesg cannot see it it must be a hardware problem.
i mean, even if my phone is set to charging only, and adb debugging disabled, the kernel still notices that something has plugged into the usb port:
Code:
[ 3262.660069] usb 1-3: new high-speed USB device number 4 using xhci_hcd
[ 3262.810118] usb 1-3: Device not responding to setup address.
[ 3263.030137] usb 1-3: Device not responding to setup address.
[ 3263.250056] usb 1-3: device not accepting address 4, error -71
[ 3263.620098] usb 1-3: new high-speed USB device number 5 using xhci_hcd
[ 3277.575127] usb 1-3: USB disconnect, device number 5
[ 3277.970062] usb 1-3: new high-speed USB device number 6 using xhci_hcd
[ 3278.150247] usb 1-3: device descriptor read/all, error -71
I've just checked this with my G5 and my Mint 19 system.
The phone charges but dmesg has no output.
I did notice that there was a recent security update with the Moto G5, perhaps it has disabled access through the usb port.
I will try with some more micro USB cables and see if I can find one that will work.
The phone doesn't recognise that it is plugged in from a USB data perspective. (Data sharing via USB says "not plugged into USB).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.