You are not logged in.

#1 2014-07-06 10:31:16

shmakky
Member
Registered: 2012-11-24
Posts: 15

[SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Hi, I can't sync files or mount my Nokia Windows Phone (WP8.1) via MTP protocol.

I have installed this MTP packages:

local/gvfs-mtp 1.20.2-1
    MTP backend for gvfs
local/jmtpfs 0.5-1
    mtpfs with better support for Android
local/libmtp 1.1.6-6
    Library implementation of the Media Transfer Protocol

I thing, that problem can be with libmtp package, because command mtp-connect give me:

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

Output of lsusb is:

Bus 002 Device 006: ID 0421:06fc Nokia Mobile Phones

but jmtpfs mount command give me same error msg as mtp-connect:

Unable to open ~/.mtpz-data for reading, MTPZ disabled.No mtp devices found.

In the past (few month) I had connected WP8 phone Nokia Lumia 520 via jmtpfs package and was able to read data from phone or memory card (writting wasn't possible because mounted device rights problem???, I don't know).

Can enybody help me, please?

Last edited by shmakky (2014-09-02 09:48:51)

Offline

#2 2014-07-23 07:25:25

shmakky
Member
Registered: 2012-11-24
Posts: 15

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Hi all archlinux users,

I tried all packages from MTP wiki, but no luck, WP is not recognized.
On updated openSUSE 13.1 Nokia Lumia 630 works well.
KDE desktop, installed packages:

libmtp9-1.1.6-2.5.1.x86_64
kio_mtp-0.75-2.1.1.x86_64

On updated Ubuntu 14.04 LTS is Nokia Lumia 630 recognized with error message, but writing to memory card or phone memory is possible and works well.
On Ubuntu is MTP protocol implemented by gvfs.

Have archlinux libmtp package bug?

Offline

#3 2014-07-29 22:49:56

Götz
Member
Registered: 2009-02-16
Posts: 30

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Hi, shmakky, I do also have a Nokia Lumia 630, and I also get the same error "No raw devices found" when executing mtp-detect.

I'll try with Ubuntu 14.04 to see if this works.


What I hear, I forget. What I say, I remember. What I do, I understand.  –Tao Te Ching/Laozi

Offline

#4 2014-08-01 11:07:45

shmakky
Member
Registered: 2012-11-24
Posts: 15

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Götz wrote:

Hi, shmakky, I do also have a Nokia Lumia 630, and I also get the same error "No raw devices found" when executing mtp-detect.

I'll try with Ubuntu 14.04 to see if this works.

Hi Götz,

may be I'm one step further to solve this, may be not... :-) I downloaded source code from http://sourceforge.net/projects/libmtp/ and hacked file src/music-players.h

Here you can find lines with Nokia WP8 configuration:

  // Reported by Sampo Savola
  // Covers Lumia 920, 820 and probably any WP8 device.
  { "Nokia", 0x0421, "Nokia Lumia WP8", 0x06fc, DEVICE_FLAG_NONE },
  // Reported by Richard Wall <richard@the-moon.net>

so I updated idProduct to 0x06fc (Nokia Lumia 630 idProduct from lsusb output) and after compile (./configure | make | sudo make install) mtp- commands like mtp-detect, mtp-connect detect my Lumia 630,
mtp-files find files from Lumias SD card. But thats all. Integration with GNOME (gvfs) or KDE (kio-mtp) does not work yet. Other implementations like mtpfs, jmtpfs, go-mtpfs and simple-mtpfs does not work yet too.

What is interesting is, that on Ubuntu 14.04 LTS mtp-detect get also error "No raw devices found" but nautilus auto mount connected Lumias internal memory and SD card well and you can write files here.
So question is, how depends gvfs or kio-mtp with libmtp library.

Last edited by shmakky (2014-08-01 12:59:01)

Offline

#5 2014-08-04 05:36:37

Götz
Member
Registered: 2009-02-16
Posts: 30

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Hi, I can confirm that with Lubuntu 14.04.1 this works. Although audio files don't seam to be recognized by Xbox Music.
Transferring them with a File Manager like this one http://www.windowsphone.com/en-us/store … 8b85c18dc2 through FTP works without problems.

shmakky wrote:

so I updated idProduct to 0x06fc (Nokia Lumia 630 idProduct from lsusb output) and after compile (./configure | make | sudo make install) mtp- commands like mtp-detect, mtp-connect detect my Lumia 630,
mtp-files find files from Lumias SD card. But thats all.

That is great, one step forward for sure!

shmakky wrote:

Integration with GNOME (gvfs) or KDE (kio-mtp) does not work yet. Other implementations like mtpfs, jmtpfs, go-mtpfs and simple-mtpfs does not work yet too.

What is interesting is, that on Ubuntu 14.04 LTS mtp-detect get also error "No raw devices found" but nautilus auto mount connected Lumias internal memory and SD card well and you can write files here.
So question is, how depends gvfs or kio-mtp with libmtp library.

That is odd, I get the same behavior. gvfs-mtp depends on libmtp, it should work.
Maybe for now, the easiest method is using FTP to transfer files.


What I hear, I forget. What I say, I remember. What I do, I understand.  –Tao Te Ching/Laozi

Offline

#6 2014-08-23 13:19:02

ka9314
Member
Registered: 2014-08-23
Posts: 4

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Hi shmakky,
Did you also update "/usr/lib/udev/rules.d/69-libmtp.rules" file?
According to "https://wiki.archlinux.org/index.php/MTP", i think it should update this file after re-compile libmtp.
I added Lumia 630 to this file without no re-complie libmtp, and nautilus can show the Lumia 630, but still not work.

Offline

#7 2014-08-23 22:19:15

Götz
Member
Registered: 2009-02-16
Posts: 30

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

ka9314, as far as I know, both ways work the same.


What I hear, I forget. What I say, I remember. What I do, I understand.  –Tao Te Ching/Laozi

Offline

#8 2014-08-24 10:14:26

ka9314
Member
Registered: 2014-08-23
Posts: 4

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Thanks Götz,
I just re-complie libmtp, and nautilus can connect to Lumia 630 now.

Offline

#9 2014-08-25 12:13:04

shmakky
Member
Registered: 2012-11-24
Posts: 15

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

ka9314 wrote:

Hi shmakky,
Did you also update "/usr/lib/udev/rules.d/69-libmtp.rules" file?
According to "https://wiki.archlinux.org/index.php/MTP", i think it should update this file after re-compile libmtp.
I added Lumia 630 to this file without no re-complie libmtp, and nautilus can show the Lumia 630, but still not work.

File /usr/lib/udev/rules.d/69-libmtp.rules is generated by "sudo make install" and contains changes that I made in src/music-players.h file before compiling.
ka9314, can you subscribe configuration steps one by one, if your Lumia 630 now working, please??

Last edited by shmakky (2014-08-25 12:13:31)

Offline

#10 2014-08-25 12:18:17

shmakky
Member
Registered: 2012-11-24
Posts: 15

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

ka9314 wrote:

Thanks Götz,
I just re-complie libmtp, and nautilus can connect to Lumia 630 now.

btw. libmtp package is out dated, is it possible contact package mainteiner for update, optionally add support for Lumia 630?

Offline

#11 2014-08-25 13:02:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

The package has been flagged, which means the maintainer has already been contacted. If you don't want to wait for him, build it yourself.

The libmtp project page on Sourceforge details the right way to submit new product IDs.

Offline

#12 2014-08-27 13:08:01

ka9314
Member
Registered: 2014-08-23
Posts: 4

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

I modified the libmtp PKGBUILD and add patch as below then
makepkg
sudo pacman -U libmtp-1.1.6-6-i686.pkg.tar.xz

PKGBUILD:

# $Id$
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: damir <damir@archlinux.org>
# Contributor: Kevin Edmonds <edmondskevin@hotmail.com>

pkgname=libmtp
pkgver=1.1.6
pkgrel=6
pkgdesc="Library implementation of the Media Transfer Protocol"
arch=("i686" "x86_64")
url="http://libmtp.sourceforge.net"
license=('LGPL')
depends=('libusb' 'libgcrypt')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
        'add_lumia630.patch')
md5sums=('87835626dbcf39e62bfcdd4ae6da2063'
         'a0912d56ae25b1fa4cd32fd9ea4e6b77')

build() {
  cd "${srcdir}"
  patch -p0 -i "add_lumia630.patch"

  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --with-udev=/usr/lib/udev
  make
}

check() {
  cd $pkgname-$pkgver
  make -k check
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
 
  # fix broken udev rule
  sed -i "/^Unable to open/d" ${pkgdir}/usr/lib/udev/rules.d/69-libmtp.rules
}

add_lumia630.patch:

diff -Naur libmtp-1.1.6.orig/src/music-players.h libmtp-1.1.6/src/music-players.h
--- libmtp-1.1.6.orig/src/music-players.h    2013-03-15 16:46:39.000000000 +0800
+++ libmtp-1.1.6/src/music-players.h    2014-08-24 17:29:24.210294753 +0800
@@ -1120,8 +1120,9 @@
   // Reported by anonymous SourceForge user
   // One thing stated by reporter (Nokia model) another by the detect log...
   { "Nokia/Verizon", 0x05c6, "6205 Balboa/Verizon Music Phone", 0x3196, DEVICE_FLAG_NONE },
-
-
+  //Lumia 630
+  { "Nokia", 0x0421, "Nokia Lumia 630", 0x06fc, DEVICE_FLAG_NONE },

   /*
    * Vendor ID 0x13d1 is some offshoring company in China,
    * in one source named "A-Max Technology Macao Commercial

Last edited by ka9314 (2014-08-27 13:12:08)

Offline

#13 2014-08-27 13:26:13

ka9314
Member
Registered: 2014-08-23
Posts: 4

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Someone is already reported to libmtp development team.
And libmtp-1.1.8 is just out.
But music-players.h still not include the Lumia 630.
This patch may be still needed.

Offline

#14 2014-08-30 00:57:01

shmakky
Member
Registered: 2012-11-24
Posts: 15

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Thank you ka9314!!!!

I used your PKGBUILD and add_lumia630.patch (used md5sum for PKGBUILD), installed gvfs-mtp and my Lumia 630 work well with GNOME... :-)

Offline

#15 2014-08-30 08:51:12

shmakky
Member
Registered: 2012-11-24
Posts: 15

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Today I want test mtp on KDE desktop, btw. I cant rename thread to SOLVED, can aby admin close this thread?

Offline

#16 2014-08-30 11:41:39

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

Wiki's Forum Etiquette page wrote:

mark your thread as solved by editing the first post and prepending the tag [SOLVED] to the title in the "Subject" field.

https://wiki.archlinux.org/index.php/Fo … ow_to_Post

Offline

#17 2014-08-30 13:17:11

shmakky
Member
Registered: 2012-11-24
Posts: 15

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

I know this, but my subject field on first post is read only... Tried on firefox browser and wp phone...

Offline

#18 2014-09-24 23:25:57

shmakky
Member
Registered: 2012-11-24
Posts: 15

Re: [SOLVED] Cant sync files Nokia Lumia 630 Windows Phone

ka9314, dont you have this trick for libmtp 1.8? I played with PKGBUILD and this add_lumia630.patch, but no luck... :-(

Last edited by shmakky (2014-09-24 23:26:27)

Offline

Board footer

Powered by FluxBB