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

Need help linux computer has defect MTP connection [answered]

asked 2015-02-02 02:49:56 +0200

cemoi71 gravatar image

updated 2015-02-04 11:20:45 +0200

Hello sailors,

my computer has a problem to establish an MTP connection to my Jolla-Phone on usb port. I am sure that is not a problem on jolla-phone. Because at my job place, i have a ms windows computer, and all works fine.

At home, does not work. After that i connect the phone to the computer. The phone recognize that a connection on usb is done. And ask for if i want to establish a data connection to the pc, or if it is just for charging. After i choose the data exchange option, then happened nothing on both sides. Command dmesg show that my computer see it but make some nonsense:

usb 3-13.4.3: new high-speed USB device number 8 using xhci_hcd
[21378.963961] usb 3-13.4.3: New USB device found, idVendor=2931, idProduct=0afe
[21378.963969] usb 3-13.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[21378.963975] usb 3-13.4.3: Product: Sailfish
[21378.963979] usb 3-13.4.3: Manufacturer: Jolla
[21378.963983] usb 3-13.4.3: SerialNumber: xxxxxxxxxx (it's not the right one of my phone)
[21378.989499] usb-storage 3-13.4.3:1.0: USB Mass Storage device detected
[21378.989761] scsi6 : usb-storage 3-13.4.3:1.0
[21378.989892] usbcore: registered new interface driver usb-storage
[21379.513049] usb 3-13.4.3: USB disconnect, device number 8

I don't know what to do next. it tells "USB disconnect, device number 8". Noting is naturally to be seen with the mount command.

Other possibility to connect my phone to the computer, will be with an OTA-Suite, like airdroid. Then comes the next problem.

My configuration is:
Sailfish 1.1.1.27
Linux Mint 17 with KDE

Updates:
- MTP don't work with kio-mtp, and with gmtp, device is then always disconnected after been detected.
- The dpkg dpkg -l |grep mtp command give back that gmtp, libmtp-common, libmtp9:amd64 are installed (currently is kio-mtp uninstalled after that it definitive didn't worked). - I've tried to plug the phone on different port of the computer, with other cable. sometimes i see nothing in dmesg sometimes that the device was disconnected after detection. - I had just one time on a port that it displayed in dmesg report a " nss-myhostname is not installed" warning. DEvice were mounted, but explorer could not access to a formatted "container.

Thanks in advance for your help

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by cemoi71
close date 2015-05-27 10:36:28.493325

Comments

1

you have to add mtp package to your distribition. I have openSUSE, had these problem too, I have found out, that mtp package is not in base system preinstalled. I had installed it, works fine now :) I don't know, how it is on the mint distribution...

Bobsikus ( 2015-02-02 07:43:22 +0200 )edit

@Bobsikus i've already installed one. there is a so much different mtp package. Maybe if you give me the reference of yours, then i try the same. That will be nice from you.

cemoi71 ( 2015-02-02 10:45:35 +0200 )edit

@pan tau, could you please step per step explain with more details. I have difficulties to represent me how should i do that. Thanks

cemoi71 ( 2015-02-02 10:47:52 +0200 )edit

@pan tau: From the log you show there you selected charging only... MTP/PC connection mode will only show this:

[49541.424884] usb 1-1.2: new high-speed USB device number 13 using ehci-pci
[49541.519576] usb 1-1.2: New USB device found, idVendor=2931, idProduct=0a05 
[49541.519584] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[49541.519588] usb 1-1.2: Product: Sailfish
[49541.519591] usb 1-1.2: Manufacturer: Jolla
[49541.519594] usb 1-1.2: SerialNumber: xxxxxxxx

The mass-storage there is a fake mass-storage to enumerate correctly with a pc to get 500mA charging current.

Philippe De Swert ( 2015-02-02 14:44:31 +0200 )edit

the fact that make me a little bit nervous is. on the last line of dmesg feeddback it is wrote "USB disconnect, device number 8". why this bloody part has disconnected itself?!

cemoi71 ( 2015-02-02 15:11:58 +0200 )edit

7 Answers

Sort by » oldest newest most voted
3

answered 2015-02-05 01:01:00 +0200

cemoi71 gravatar image

updated 2015-02-05 17:23:19 +0200

Got it!!! i tried a lot of things. I added the mtpfs too, but i think, it does not make the difference.
After the install, i reboot , the computer. then always the same thing: Usb device disconnected, after detection
I had the libmtp-common, gmtp, limtp9, libmtp-runtime and mtpfs.
Then i played with dev-mode and usb-switch app.
I remarked that the os was really "disturbed". systray icon for new-device appears if device on charging, option to do with it are to format. It disappear then in pc-mode and dmesg display it as disconnected.

Then i decided to reboot the phone. Then it worked!!! It currently still works with other usb port.

Comes 2 times in dmesg, maybe because of gmtp and mtpfs:

[  547.557818] usb 3-2: USB disconnect, device number 10
[  563.239090] usb 3-13.4.3: new high-speed USB device number 11 using xhci_hcd
[  563.258740] usb 3-13.4.3: New USB device found, idVendor=2931, idProduct=0afe
[  563.258749] usb 3-13.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  563.258754] usb 3-13.4.3: Product: Sailfish
[  563.258758] usb 3-13.4.3: Manufacturer: Jolla
[  563.258762] usb 3-13.4.3: SerialNumber: DU42Q00449
[  563.260798] usb-storage 3-13.4.3:1.0: USB Mass Storage device detected
[  563.260958] scsi8 : usb-storage 3-13.4.3:1.0
[  564.259581] scsi 8:0:0:0: Direct-Access     Linux    File-CD Gadget   0000 PQ: 0 ANSI: 2
[  564.260140] sd 8:0:0:0: Attached scsi generic sg3 type 0
[  564.261239] sd 8:0:0:0: [sdc] Attached SCSI removable disk
[  565.599060] usb 3-13.4.3: USB disconnect, device number 11
[  565.819555] usb 3-13.4.3: new high-speed USB device number 12 using xhci_hcd
[  565.836308] usb 3-13.4.3: New USB device found, idVendor=2931, idProduct=0a05
[  565.836310] usb 3-13.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  565.836311] usb 3-13.4.3: Product: Sailfish
[  565.836312] usb 3-13.4.3: Manufacturer: Jolla
[  565.836313] usb 3-13.4.3: SerialNumber: DU42Q00449

dpkg -l | grep mtp

ii  gmtp                                        1.3.4-2                                           amd64        simple MP3 player client for MTP based devices
ii  libmtp-common                               1.1.6-20-g1b9f164-1ubuntu2                        all          Media Transfer Protocol (MTP) common files
ii  libmtp-runtime                              1.1.6-20-g1b9f164-1ubuntu2                        amd64        Media Transfer Protocol (MTP) runtime tools
ii  libmtp9:amd64                               1.1.6-20-g1b9f164-1ubuntu2                        amd64        Media Transfer Protocol (MTP) library
ii  mtp-tools                                   1.1.6-20-g1b9f164-1ubuntu2                        amd64        Media Transfer Protocol (MTP) library tools
ii  mtpfs                                       1.1-4.1                                           amd64        FUSE filesystem for Media Transfer Protocol devices

I make it not now a resolved, because i want to observe it a few days. Seems for me that the interface not completely clean on the phone side. I'll try to put then the interface in the same issue too.

Thanks a lot to anandrkris, pmelas, wanderer, pan tau, Philippe De Swert, Bobsikus for helping. that was really great from you :-)

edit flag offensive delete publish link more

Comments

Thank you for your advice, after reboot phone i can use mtp. In my opinion phone mtp stack is buggy, and need polished.

hyper_sonic ( 2015-02-05 06:50:00 +0200 )edit

You seeing it appear twice is normal if you have the menu. If you're too slow, or wait for the charging banner to light up the screen it passes first over a mass-storage fallback to start charging until another mode is chosen.

Philippe De Swert ( 2015-02-05 18:37:24 +0200 )edit
1

After some month it works well further.... so now it is closed before i'll forget it.

cemoi71 ( 2015-05-27 10:37:14 +0200 )edit
2

answered 2015-02-02 10:02:20 +0200

wanderer gravatar image

For KDE there is the Package kio-mtp, which provides MTP support for the KDE Plasma Workspace (https://projects.kde.org/projects/playground/base/kio-mtp). Normally it should be installable via apt-get. I don't know Linux Mint (I am using Debian), so I can't give you more detailed information.

edit flag offensive delete publish link more

Comments

Yes, i believe above should work. I used to be Mint 13 KDE and kio-mtp package helped me to connect to my Dad's Android phone.

http://forums.linuxmint.com/viewtopic.php?f=56&t=142915

anandrkris ( 2015-02-02 10:09:31 +0200 )edit

@wanderer and @anandrkris does this kio-mtp works with your jolla phone? could you confirm it?

cemoi71 ( 2015-02-02 11:11:20 +0200 )edit

thanks both of you, i'll try it this evening (i'm not at home).

cemoi71 ( 2015-02-02 11:26:34 +0200 )edit

@cemoi71 - Am on Mint Cinnamon now so unfortunately can not confirm. When connected via USB to Jolla, Cinnamon threw some crazy errors but I was able to mount finally somehow.

anandrkris ( 2015-02-02 11:26:38 +0200 )edit

mint cinnamon? mean not anymore on mint 13, right?

cemoi71 ( 2015-02-02 11:29:33 +0200 )edit
2

answered 2015-02-03 01:10:16 +0200

smoku gravatar image

It could be a regression of SailfishOS 1.1.

MTP to Jolla worked flawlessly on my Linux PCs before, but recently I noticed that it is broken. Both on my Arch PC and second Fedora PC. Now that I think of it, the only thing changed is that I upgraded Jolla to SailfishOS 1.1.

edit flag offensive delete publish link more

Comments

I have tried it now, with latest update of Sailfish and it still works normally as before...

Bobsikus ( 2015-02-05 19:00:19 +0200 )edit
0

answered 2015-02-02 09:44:53 +0200

pan tau gravatar image

updated 2015-02-02 11:05:27 +0200

or weak usb power level while phone starts charging (same 'issue' while i plug phone to shitty usb hub connected to 8m cord in other room while BT adapter is connected to hub too) i just ran it over limits

other possibility what i prefer is to enable developer mode, then enable ssh login, set password and connect sftp remotely via favorite transfer app as user nemo from any OS (basic linux sftp, windows winscp)

i found this way as logical step first day while configuring and preparing jolla. i found that with sailfish os the customer is really free

step by step:

turn on Jolla

unlock screen

go to the Settings -> System -> Developer mode

allow Developer mode

allow Remote connection

generate or set own strong password

save password

you should see your Wlan IP

move to PC

open konqueror and connect to your jolla

adress should be sftp://nemo@Wlan.IP/

take a look for some pic from konqueror http://arktur.shuttle.de/doc/ods-v40/Arktur_html/images/Linux-sftp.png

note: turn off remote login when you are done.

edit flag offensive delete publish link more
0

answered 2015-02-04 07:23:19 +0200

hyper_sonic gravatar image

updated 2015-02-06 05:08:45 +0200

I use Ubuntu 14.10 Sailfish recognized by kernel:

[108587.112331] usb 1-1.6: Product: Sailfish
[108587.112335] usb 1-1.6: Manufacturer: Jolla
[108587.112338] usb 1-1.6: SerialNumber: DU3BU00350
[108589.383504] usb 1-1.6: USB disconnect, device number 77
[108589.584571] usb 1-1.6: new high-speed USB device number 78 using ehci-pci
[108589.677715] usb 1-1.6: New USB device found, idVendor=2931, idProduct=0a05
[108589.677722] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3

Nautilus show Sailfish device, but after mount, not show internal storage. But on windows machine i can select and discover to internal memory. mtp-detect seems detect mtp device:

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

Listing raw device(s)
   Found 1 device(s):
   2931:0a05 @ bus 1, dev 78
Attempting to connect device(s)
USB low-level info:
   bcdUSB: 512
   bDeviceClass: 0
   bDeviceSubClass: 0
   bDeviceProtocol: 0
   idVendor: 2931
   idProduct: 0a05
   IN endpoint maxpacket: 512 bytes
   OUT endpoint maxpacket: 512 bytes
   Raw device info:
      Bus location: 1
      Device number: 78
      Device entry info:
         Vendor: (null)
         Vendor id: 0x2931
         Product: (null)
         Vendor id: 0x0a05
         Device flags: 0x00000000
Configuration 0, interface 0, altsetting 0:
   Interface description contains the string "MTP"
   Device recognized as MTP, no further probing.
Device info:
   Manufacturer: Jolla
   Model: Jolla
   Device version: 1.1.1.27 HW: 0.0.5.44
   Serial number: 359745050086641
   Vendor extension ID: 0x00000006
   Vendor extension description: microsoft.com:1.0; microsoft.com/WMPPD:11.0; 
   Detected object size: 64 bits
   Extensions:
        microsoft.com: 1.0
        microsoft.com/WMPPD: 11.0
Supported operations:
   1001: get device info
   1002: Open session
   1003: Close session
   1004: Get storage IDs
   1005: Get storage info
   1006: Get number of objects
   1007: Get object handles
   ...

But mtpfs show this output:

Unable to open ~/.mtpz-data for reading, MTPZ disabled.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 1, dev 78
Attempting to connect device
Error 2: PTP Layer error 02fe: LIBMTP_Get_Storage(): Could not get storage info.
Error 2: Error 02fe: PTP: Protocol error, data expected
Error 1: Get Storage information failed.
Listing File Information on Device with name: Sailfish
LIBMTP_Get_Storage() failed:-1
Error 2: PTP Layer error 02fe: LIBMTP_Get_Storage(): Could not get storage info.
Error 2: Error 02fe: PTP: Protocol error, data expected

Ok, i need help, i have same problem discribed by topicstarter. Ubuntu 14.10 include libmtp version 1.1.6, i tried use new 1.1.8 from 15.04, but it was not helped for me, i got identical result. Result about mtp packages:

dpkg -l | grep mtp
ii  gmtp                                                        1.3.7-1                                            i386         simple MP3 player client for MTP based devices
ii  libmtp-common                                               1.1.6-20-g1b9f164-1ubuntu5                         all          Media Transfer Protocol (MTP) common files
ii  libmtp9:i386                                                1.1.6-20-g1b9f164-1ubuntu5                         i386         Media Transfer Protocol (MTP) library
ii  libnet-smtp-ssl-perl                                        1.01-3                                             all          Perl module providing SSL support to Net::SMTP
ii  mtp-tools                                                   1.1.6-20-g1b9f164-1ubuntu5                         i386         Media Transfer Protocol (MTP) library tools
ii  mtpfs                                                       1.1-5                                              i386         FUSE filesystem for Media Transfer Protocol device

uname -v -r -m -o
3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:07:27 UTC 2015 i686 GNU/Linux

Update: After reboot a phone, i can see file system structure. But only camera pictures can opened. Music mp3 files or camera video are not playable.

edit flag offensive delete publish link more

Comments

@hyper_sonic could you please give more details?
Have you got a similar problem? could you use mtp or not?
You know, with your answer, we can't know if you want to help or if you need some help?
The only thing that correct is, you are in the right thread
And you give a lot infos.
Maybe you could give all the mtp packages name that you have in your distribution after giving the command dpkg -l |grep mtp,
thanks a lot for your participation.

cemoi71 ( 2015-02-04 11:05:33 +0200 )edit

On this host Android devices ZTE, lenovo works as expected.

hyper_sonic ( 2015-02-04 19:08:36 +0200 )edit

@hyper_sonic seems to be that by me the problem is resolved. I want to observe further before i cry hourra!
seems now that i have more or less the same packages than by you on the computer
The only thing that i find that was crucial, was to reboot the jolla-phone. then worked on usb plugging...
If it don't work by you after reboot. Maybe would be fine to ask by jolla care
Seems for me that mtp interface on jolla device is not 100% clean.

cemoi71 ( 2015-02-05 01:09:18 +0200 )edit
0

answered 2015-02-04 12:00:14 +0200

pmelas gravatar image

I think the problem is the idVendor mismatch (0a05 vs 0afe) between the phone and libmtp distribution, see http://sourceforge.net/p/libmtp/code/ci/HEAD/tree/src/music-players.h

edit flag offensive delete publish link more

Comments

@pmelas i have seen complete at the end of the header-file of the link that you gave, that the id for jolla is 0a05, and i have 0afe.
do you think that i have bad libmtp? or there is a conflict between libmtp-common and libmtp9?

cemoi71 ( 2015-02-04 13:09:06 +0200 )edit

I found this thread link text. And there it talks about the ids of the device on mac. Seems thtat it have changed on the past.

@eric@Simo@chemist may i ask you please please make a quick control what is the correct device idproduct for the mtp connection with the jolla-phone? please
I see on my computer that it gives with dmesg idProduct=0afe and seems to be for some people 0a05. Want to know if the libmtp on my computer is buggy, outdated or in conflict...
I can't have a proper mtp connection on my linux machine.

cemoi71 ( 2015-02-04 13:35:44 +0200 )edit

copy from dmesg:

[21541.970902] usb 1-1.2.3: new high-speed USB device number 14 using ehci-pci
[21542.064502] usb 1-1.2.3: New USB device found, idVendor=2931, idProduct=0afe
[21542.064510] usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[21542.064515] usb 1-1.2.3: Product: Sailfish
[21542.064520] usb 1-1.2.3: Manufacturer: Jolla
[21542.064524] usb 1-1.2.3: SerialNumber: DU3CC00782
[21542.065490] usb-storage 1-1.2.3:1.0: USB Mass Storage device detected
[21542.065643] scsi9 : usb-storage 1-1.2.3:1.0
[21543.063403] scsi 9:0:0:0: Direct-Access     Linux    File-CD Gadget   0000 PQ: 0 ANSI: 2
[21543.064156] sd 9:0:0:0: Attached scsi generic sg2 type 0
[21543.066614] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[21543.819547] usb 1-1.2.3: USB disconnect, device number 14
[21544.025979] usb 1-1.2.3: new high-speed USB device number 15 using ehci-pci
[21544.119495] usb 1-1.2.3: New USB device found, idVendor=2931, idProduct=0a05
[21544.119503] usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[21544.119508] usb 1-1.2.3: Product: Sailfish
[21544.119513] usb 1-1.2.3: Manufacturer: Jolla
[21544.119517] usb 1-1.2.3: SerialNumber: DU3CC00782
pmelas ( 2015-02-04 17:23:50 +0200 )edit

@pmelas wanderer has made a remark, that show it more plausible comment from him above

cemoi71 ( 2015-02-04 18:41:23 +0200 )edit

In this way that could means that my id is not bad, the device went only back to the charging mode, with its dedicated id...

cemoi71 ( 2015-02-04 18:42:55 +0200 )edit
0

answered 2015-02-04 17:19:44 +0200

carepack gravatar image

updated 2015-02-04 17:20:11 +0200

I think you can find a good explanation here: https://wiki.archlinux.org/index.php/MTP

Different fuse packages explained. Also how to add devices which are not beeing recognized through hw id. Hope this helps

edit flag offensive delete publish link more

Comments

Thank you, for link. But, I know about this hooks and applied it already. Device recognized by udev, and libmtp, but userspace file-system do not work.

hyper_sonic ( 2015-02-04 19:02:52 +0200 )edit

https://together.jolla.com/question/154318/intex-aquafish-linux-file-browsing-via-usb/ works on debian jessie. You do not need to have root on the linux system or developer mode enabled on the phone.

deloptes ( 2017-01-17 17:50:27 +0200 )edit

Question tools

Follow
2 followers

Stats

Asked: 2015-02-02 02:49:56 +0200

Seen: 6,753 times

Last updated: Feb 06 '15