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

Is MTP just a ferocious pile of dung?

asked 2016-10-05 11:55:46 +0200

Dankoozy gravatar image

I spent over an hour trying to transfer a couple of songs to my Aqua Fish. The normal way I use is sftp/filezilla over Wifi, but had no coverage here. SD card was a no-go because my card reader doesn't like 64GB cards (surprisingly the Fish does even though it claims to only go to 32GB). In the end I set up hostapd on the machine I was using and was able to transfer over Wifi.

But MTP is just a pure pig, on Xubuntu at least. It transferred some small jpg's very slowly but balked at any FLAC file, disconnected, stalled, was unresponsive, crashed the filemanager using it, lost the device and was unable to get it back without rebooting. Pretty much how MTP has always behaved on any platform I ever used it on. It was always very prone to this. Is there something inherently wrong with the protocol, is it overcomplicated or badly designed?

I have a Canon 1300D as well that uses MTP and it hasn't given that much trouble yet but its still much more finnicky than USB mass storage. I'm sure the fact that it's a Microsoft-designed protocol doesn't help, that company has a knack for helping out their paying partners with implementing it in such a way that it works while leaving the open source crowd in the lurch

edit retag flag offensive close delete

Comments

1

Yes, never found any use for MTP

juiceme ( 2016-10-05 12:09:41 +0200 )edit
4

Simo has been doing a large amount of work in mtp recently, some of which made it into 2.0.4 but some which will be in the next releases. See https://git.merproject.org/mer-core/buteo-mtp/commits/master for that. In short, MTP support will be greatly improved in the near future.

chris.adams ( 2016-10-05 12:36:18 +0200 )edit
1

MTP works great by me (jp1)
I may open file and transfer them into my ubuntu (home) or windows (work).
I'm able to have access on my file on the device and with the os at the same time.
That couldn't do android with v2 and v3 (rest i don't know, i left android since i'm with sfos)...
Maybe it will be better with 2.0.4 aquafish is still quite new supported from sfos.
Hope for that's it will be better for you...

cemoi71 ( 2016-10-05 12:37:29 +0200 )edit
1

No, what I mean is I never found any use for it, in any device whatsoever.

I have no idea why it was ever specified. :)

juiceme ( 2016-10-05 13:01:20 +0200 )edit

on this point of you i never seen it too in any devices.
until jolla comes and use it...

cemoi71 ( 2016-10-05 14:03:35 +0200 )edit

1 Answer

Sort by » oldest newest most voted
7

answered 2016-10-05 12:02:52 +0200

coderus gravatar image

Update to 2.0.4

edit flag offensive delete publish link more

Comments

I can't transfer FLAC by MTP(AF ->J_C, v2.0.4 and v.2.0.5). It's OK after renaming to *.FL. I haven't problem to transfer FLAC by MTP to UbuntuTouch.

Oleg ( 2016-11-30 20:00:43 +0200 )edit

@Oleg We have a task for tuning list of supported file formats -> probably helps with flac etc. But in a sense it is also host side issue too: Probably it requires that "flac" is explicitly supported by device instead of falling to "undefined" format - which probably is what is used after renaming the file to ".fl".

spiiroin ( 2016-12-01 07:37:40 +0200 )edit

@spiiroin, thanks for help. but. This transfer works between ubuntu_16.04 and Meizu_Pro5_ubuntu_edition by MTP(SD card is the same).

Oleg ( 2016-12-01 14:12:52 +0200 )edit

@Oleg What I'm saying is: pc side will a) happily attempt to upload random data with random name (or "xxx.flac" renamed to "xxx.fl") as ObjectFormatUndefined b) refuse to even trying to upload files that end with ".flac" because ObjectFormatFLAC exists in mtp and device (=jolla in this case) does not declare explicit support for it. As long as (a) is supposedly ok, IMO there is no technical reason for (b) - it could upload also flac files as having undefined format.

That said, we will change the jolla side sw so that it will declare flac as "supported" format.

spiiroin ( 2016-12-02 08:27:35 +0200 )edit

@spiiroin, thanks for explanation. I understood and I'll wait.

Oleg ( 2016-12-02 21:24:30 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2016-10-05 11:55:46 +0200

Seen: 350 times

Last updated: Oct 05 '16