LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 06-23-2018, 12:59 PM   #1
sharky
Member
 
Registered: Oct 2002
Posts: 569

Rep: Reputation: 84
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.

Am open to any comments, advice, or suggestions.

Thanks in advance,
 
Old 06-23-2018, 02:09 PM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,131
Blog Entries: 21

Rep: Reputation: 3477Reputation: 3477Reputation: 3477Reputation: 3477Reputation: 3477Reputation: 3477Reputation: 3477Reputation: 3477Reputation: 3477Reputation: 3477Reputation: 3477
look in dmesg after you plug in your phone to your mint box.

Have you tried other usb ports?

Last edited by rokytnji; 06-23-2018 at 02:12 PM.
 
Old 06-24-2018, 01:29 AM   #3
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Nothing in dmesg.
 
Old 06-28-2018, 11:40 AM   #4
techblogger911
LQ Newbie
 
Registered: Apr 2018
Posts: 8

Rep: Reputation: Disabled
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
 
Old 06-28-2018, 12:40 PM   #5
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Developer options are on and "USB debugging" is enabled. Still nothing when I plug in the phone. I do not see "Debug USB" or any "green V".
 
Old 06-29-2018, 07:54 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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 View Post
Nothing in dmesg.
nothing at all?
i find that hard to believe.
please show us.

Quote:
Originally Posted by techblogger911 View Post
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.
 
Old 06-29-2018, 10:18 AM   #7
soveda
Member
 
Registered: Feb 2018
Distribution: Mint 19; Ubuntu Studio; Kali
Posts: 37

Rep: Reputation: Disabled
Have you tried a different USB cable? Solved my issues with using a G5 as a USB tethered device
 
Old 06-29-2018, 11:01 AM   #8
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
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.
 
Old 06-29-2018, 11:03 AM   #9
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Still looking for a different usb cable. It's uncanny how I can find them all over the place when I'm looking for a network cable.
 
Old 06-29-2018, 11:08 AM   #10
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Found another usb cable - no joy. Also tried different usb ports with no change.
 
Old 06-30-2018, 03:35 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by sharky View Post
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.
 
Old 06-30-2018, 09:28 AM   #12
sharky
Member
 
Registered: Oct 2002
Posts: 569

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by ondoho View Post
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.
 
Old 06-30-2018, 09:37 PM   #13
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,337
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
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.

If you use KDE, KDEconnect works quite nicely,
 
Old 07-01-2018, 04:07 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ 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
 
Old 07-13-2018, 09:38 AM   #15
soveda
Member
 
Registered: Feb 2018
Distribution: Mint 19; Ubuntu Studio; Kali
Posts: 37

Rep: Reputation: Disabled
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).
 
  


Reply



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: Linux Mint-Based feren OS Gets Upgraded to Linux Mint 18.2, USB Boot Improved LXer Syndicated Linux News 0 08-18-2017 09:16 PM
LXer: Moto G And Moto G Plus Are Finally Out With Fingertouch Sensor LXer Syndicated Linux News 0 05-18-2016 01:12 AM
Two USB ports not recognising any devices including USB mouse: Linux mint 13 MAYA nikiitea Linux - Hardware 6 03-16-2014 11:25 AM
LXer: Linux gets its 'Moto' running LXer Syndicated Linux News 0 07-29-2006 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 09:01 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