We have moved to a new Sailfish OS Forum. Please start new discussions there.
11

MTP does not work with 1.0.4.20, Ohijärvi, and Kubuntu 13.10 [not relevant]

asked 2014-03-18 13:07:51 +0200

Blizzz gravatar image

updated 2014-03-18 14:20:03 +0200

Before the update I could connect my Jolla via USB (PC Connection) to my laptop (running Kubuntu 13.10) and I could access the contents via mtp:/ protocol.

Now however, the device is registered (system notification popup), but I cannot access it at all. Opening mtp:/ in Dolphin shows no devices (before: "Sailfish"). By default KDE tries to access it using camera:/ but nothing appears there either.

Update:

This is what i get when I try to connect using mtp-tools if it is of any help:

$ mtp-detect 
Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.6

Listing raw device(s)
Device 0 (VID=2931 and PID=0a05) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
   Found 1 device(s):
   2931:0a05 @ bus 2, dev 21
Attempting to connect device(s)
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
OK.

.

$ mtp-files
libmtp version: 1.1.6

Device 0 (VID=2931 and PID=0a05) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device

Unable to open ~/.mtpz-data for reading, MTPZ disabled.mtp-files: Successfully connected
Listing File Information on Device with name: (NULL)
No files.
Error 2: PTP Layer error 02ff: get_all_metadata_fast(): could not get proplist of all objects.
Error 2: Error 02ff: PTP: I/O error
Error 2: PTP Layer error 02ff: get_handles_recursively(): could not get object handles.
Error 2: Error 02ff: PTP: I/O error
Error 2: PTP Layer error 02ff: Error getting friendlyname.
Error 2: Error 02ff: PTP: I/O error
Error 2: PTP Layer error 02ff: get_all_metadata_fast(): could not get proplist of all objects.
Error 2: Error 02ff: PTP: I/O error
Error 2: PTP Layer error 02ff: get_handles_recursively(): could not get object handles.
Error 2: Error 02ff: PTP: I/O error
ERROR: Could not close session!
OK.

(the command above was running approx. 4 min and 20 sec)

With mtp-filetree I indeed get the file tree, though. Not fast, but this does:

$ mtp-filetree
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Attempting to connect device(s)
Device: Sailfish
Storage: Phone Memory
1 .chromono_scores
2 .config
…
edit retag flag offensive reopen delete

The question has been closed for the following reason "question is not relevant or outdated" by Blizzz
close date 2015-01-12 12:54:52.228247

Comments

Works for me. Tested on Kubuntu 12.04, 13.04 and Gentoo running KDE-4.10.3 with kio-mtp 0.75_p20131020. Did you try this multiple times? KDE's MTP-integration (kio-mtp) sometimes fails for what-ever reason, but re-attaching the cable and trying again has always worked for me.

Milo ( 2014-03-18 13:30:03 +0200 )edit

sdcard cannot be found from terminal (/run/share/100000/media/sdcard does not exist) and from file browser my gallery can read all files in my sdcard but from filebrowser I cannot sdcard directory changes to /media/sdcard/2746-7E0A/

michdeskunk ( 2014-03-18 13:31:44 +0200 )edit

PC connection mode doesn't work for me either. Running Linux, openSUSE 13.1.

krig ( 2014-03-18 13:40:34 +0200 )edit

Yes, I tried it thrice. Once I was logged in via SSH the same time, but of course I tried it without this, too. In the past, it always worked immediately.

Blizzz ( 2014-03-18 13:42:56 +0200 )edit

@Blizzz - Seeing as MTP is working on my Windows 7 64bit install, perhaps you should mark you question title to be more specific to your computers OS, just a thought.

Spam Hunter ( 2014-03-18 13:46:46 +0200 )edit

4 Answers

Sort by » oldest newest most voted
0

answered 2014-03-18 18:26:54 +0200

raimue gravatar image

This is not the solution to this problem, however I noticed some change in the way MTP works after the update.

Most notably, the USB vendor/product IDs were changed with the 1.0.4.20 update. When selecting "PC Connection" mode, the device comes up as 2931:0a05 now, but it used to be 2931:0a01. Only the latter was added to the development version of libmtp, so this might need yet another entry now.

However, Kubuntu 13.10 still ships the current release of libmtp with version 1.1.6. So it does not have any of the additional device IDs options anyway. This change alone would not make a difference, it must be something else that was changed as well.

edit flag offensive delete publish link more

Comments

2

We have submitted a patch to libmtp to fix this: https://sourceforge.net/p/libmtp/patches/57/

Philippe De Swert ( 2014-03-18 19:07:20 +0200 )edit

Thanks, Philippe. Though I suppose a new libmtp version will be included only in 14.10. Is there any workaround I could do, except compiling it myself?

Blizzz ( 2014-03-18 19:22:31 +0200 )edit
1

@Blizzz: You can edit /etc/usb-moded/dyn-modes/pc_suite-android.ini and change the last line where it reads idProduct = 0A05 to idProduct = 0A01

And then reboot or restart/kill -HUP usb_moded

This might cause other unintended issues with Windows etc but it should make it possible for libmtp to recognize it with the old id.

Of course this comes with : AT YOUR OWN RISK ;)

Philippe De Swert ( 2014-03-18 19:38:26 +0200 )edit

I have the same issue, my Linux mint petra with KDE says that the MTP protocol died unexpectedly :-(

@Philippe De Swert I tried your suggestion and it didn't work, I change it back to '5' then. Anyway thank you for the help

I will try it on windows as well soon

Until this is solved we can always use the internet (upload from pc -> download to jolla) :-)

orestes1986 ( 2014-03-19 04:03:35 +0200 )edit

@Philippe De Swert: thank you for the hint. with this change, mpt-detect works (although it takes long still), but the mtp-kio is still not functional. Looks like the direction is good, but something is still missing…

Blizzz ( 2014-03-19 10:11:02 +0200 )edit
0

answered 2014-03-19 19:18:16 +0200

orestes1986 gravatar image

updated 2014-03-19 19:43:47 +0200

I am not sure if that is a valid answer, but my jolla seems to work fine after I reseted it and updated again only this time the USB cable was connected with my pc during the whole time.

PS: Tryed it (by chance) on linux mint 16 petra with kde.

edit flag offensive delete publish link more

Comments

..now it recognises the SD card as well :-)

orestes1986 ( 2014-03-19 19:18:48 +0200 )edit

Resetting didn't change anything for me so I don't think it's a solution.

nthn ( 2014-03-19 19:36:22 +0200 )edit

You mean you couldn't connect even when you went back to factory settings?

You could connect before the update, right?

orestes1986 ( 2014-03-19 19:41:46 +0200 )edit
1

I couldn't connect even after going back to factory settings, and yes I could connect before the update.

nthn ( 2014-03-19 19:49:51 +0200 )edit

Then yes, my answer clearly doesn't work for you, sorry :-o

orestes1986 ( 2014-03-19 19:51:33 +0200 )edit
0

answered 2014-03-19 20:28:51 +0200

vattuvarg gravatar image

Works with Mageia 4, so I can't offer any help. :(

edit flag offensive delete publish link more
0

answered 2014-06-29 13:38:49 +0200

mark gravatar image

Same here, on Ubuntu and doesn't work at all.

edit flag offensive delete publish link more

Question tools

Follow
4 followers

Stats

Asked: 2014-03-18 13:07:51 +0200

Seen: 1,986 times

Last updated: Jun 29 '14