LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2015, 11:03 PM   #1
jim.thornton
Member
 
Registered: May 2007
Posts: 430

Rep: Reputation: 19
Problem syncing Android Phone (MTP)


Desktop: Korora 21

I'm trying to mount my LG G3 phone to sync music to it. I was originally going to try and root it and installed the following into /etc/udev/rules.d/51-android.rules
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev"
When I did that ADB was able to see the device.

I DID NOT root my device. I discovered through research because I upgraded to Lolipop that it cannot be done. At least not easily so I gave up on that. My thought was that I was just going to use rsync to do a music sync.

I then was able to access my phone from the file manager. I put on a file .is_audio_player with some text in there pointing to the music folder.

After that I have been unable to re-mount my phone again. I don't know why but it just fails saying that it cannot mount MTP device [usb 001,044]

When I try to mount my phone, my phone beeps indicating that it is mounting. It also shows me my options MTP or PTP or Charging. But it will not mount.

Can someone please help me with this? I've spent way to much time on it as-is.

I have tried installing:
simple-mtpfs

But that does not do it either. Now I'm not even getting the failed message anymore.
 
Old 10-11-2015, 08:10 AM   #2
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
when i plug in my kitkat android phone, it connects as media device (mtp) and shows up as "gphoto2://[usb:002,010]/store_00010001" in my file manager.
this works because my file manager uses gvfs, and i also installed gvfs' optional dependencies gvfs-afc, gvfs-gphoto2 and gvfs-smb (that's what the packages are called on archlinux, but you should be able to find them on any distro). i guess it's gvfs-gphoto2 that provides the functionality, but i'm just listing all that i have installed.

edit:
sorry, re-reading your post, most of waht i wrote was pointless.
does it get better when you undo the udev changes?
what output do you get with "adb shell"?
can you explain "I put on a file .is_audio_player with some text in there pointing to the music folder."?
how did you put the file, where exactly did you copy it to, and why/how does it "point" to your music folder? which music folder, on your computer or on your phone?
can you see the file from your phone's file manager?
do you have usb debugging enabled?

Last edited by ondoho; 10-11-2015 at 08:18 AM.
 
Old 10-11-2015, 10:41 AM   #3
jim.thornton
Member
 
Registered: May 2007
Posts: 430

Original Poster
Rep: Reputation: 19
OK... I decided to take a break and go to bed last night. As I was wrapping up I turned off the music that was playing on my computer, closed the music player and all of a sudden I could mount the phone in the file manager again. So I guess the previous things I did were not a problem.

I can now access my phone via File Manager, but I cannot sync any music to my phone using Banshee, RhythmBox or Clementine. It just fails. In clementine it says "Adding ..." and shows all the tracks, but then when I look on my phone there is nothing there.

Anyone have any idea how to get this working? I love Android, but I really can't believe there is such a major feature that has such crappy support and they have managed to do so well. For a company (Google) that pushes "User Experience" so much, I can't believe they are content with an inferior feature to Apple on this. I hate Apple products, but this is a major drawback.
 
Old 10-11-2015, 11:01 AM   #4
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 jim.thornton View Post
For a company (Google) that pushes "User Experience" so much, I can't believe they are content with an inferior feature to Apple on this. I hate Apple products, but this is a major drawback.
OH, THE ENRAGED CUSTOMER!
(sorry, caps lock got stuck)

but if we talk about solutions instead of nagging:
  • can you actually copy files to the phone via file manager?
  • make some searches how banshee, rhythmbox and clementine handle these things internally, maybe you can find out what's going on
  • workaround: make media players sync to a dedicated folder, then just copy to device from that folder. can even be scripted.
  • while researching this problem, i realised that i had to kill my file manager before i could use adb. maybe same applies to file manager / media player?
  • android settings, maybe change Settings => Storage => Default write disk?
 
Old 10-11-2015, 11:13 AM   #5
jim.thornton
Member
 
Registered: May 2007
Posts: 430

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by ondoho View Post
OH, THE ENRAGED CUSTOMER!
(sorry, caps lock got stuck)

but if we talk about solutions instead of nagging:
  • can you actually copy files to the phone via file manager?
    Yes I am able to write to the phone via file manager. I created the empty file from within the file manager and then was able to save it.
  • make some searches how banshee, rhythmbox and clementine handle these things internally, maybe you can find out what's going on
    I was searching for hours last night and couldn't figure it out. I'll try searching again tomorrow. (family stuff today)
  • workaround: make media players sync to a dedicated folder, then just copy to device from that folder. can even be scripted
    Not following you. I'm able to connect to the phone and copy files onto the phone manually with the file manager but not with the music players. I said Clementine says "Adding... " and shows the songs, but that is Banshee. Clementine says "Organizing files " and then is stuck at 0 with a failure message. When Clementine is open, I can still access the phone. When Banshee is open, the file manager cannot access the phone at the same time.
  • while researching this problem, i realised that i had to kill my file manager before i could use adb. maybe same applies to file manager / media player?
    I'm not trying to use adb.
  • android settings, maybe change Settings => Storage => Default write disk?
    There is only the internal storage on this phone. I don't have an sd card in it. There is no option within Settings > Storage for changing default disk though.
 
Old 10-11-2015, 12:12 PM   #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
Quote:
Originally Posted by jim.thornton View Post
workaround: make media players sync to a dedicated folder, then just copy to device from that folder. can even be scripted
Not following you. I'm able to connect to the phone and copy files onto the phone manually with the file manager but not with the music players. I said Clementine says "Adding... " and shows the songs, but that is Banshee. Clementine says "Organizing files " and then is stuck at 0 with a failure message. When Clementine is open, I can still access the phone.
exactly. so you tell your media player to sync to a dedicated folder on your local machine, then just move the files to your phone. still easier than picking them manually from your music collection.
Quote:
while researching this problem, i realised that i had to kill my file manager before i could use adb. maybe same applies to file manager / media player?
I'm not trying to use adb.
no, but your file manager. try unmounting the phone and killing the file manager before opening your media player to sync.
Quote:
There is only the internal storage on this phone. I don't have an sd card in it. There is no option within Settings > Storage for changing default disk though.
hmmm, that could have some bearing on the situation. not so sure about android internals, but it's getting increasingly picky about where one is allowed to write to.
 
  


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
Linux, Android, and MTP Webtm Linux - Mobile 20 09-06-2015 06:21 AM
phone displays in gui through mtp url fine but not in cli mode nitecrawler Slackware 5 01-01-2015 08:06 PM
[SOLVED] Slackware64 14.1, Xfce, MTP, LG E612 phone - filenames replaced with numeric code yars Slackware 3 11-06-2014 03:23 PM
[SOLVED] Problem Mounting Android Phone Pinonoir Slackware 11 06-06-2014 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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