You are not logged in.

#1 2016-07-06 21:11:56

Sachiko
Member
Registered: 2016-07-01
Posts: 17

Lumia 640 was able to be mounted before but not any longer

As the title says, I've at one time been able to mount my Lumia 640(Windows 10.0.10586.420) as an MTP device on my Thinkpad T420 running the latest Arch(kernel, et al). I have libmtp, mtpfs, and gvfs-mtp installed.

[sachiko@dankpad: ~]$ sudo pacman -Q libmtp mtpfs gvfs gvfs-mtp
libmtp 1.1.11-1
mtpfs 1.1-2
gvfs 1.28.2-1
gvfs-mtp 1.28.2-1
dmesg output pertaining to the device:

[ 1145.819469] usb 1-1.1: new high-speed USB device number 7 using ehci-pci
[ 1166.289740] usb 1-1.1: reset high-speed USB device number 7 using ehci-pci
lsusb output:

=== trie on-disk ===
tool version:          230
file size:         7159205 bytes
header size             80 bytes
strings            1783885 bytes
nodes              5375240 bytes
device-enumerator: scan all dirs
  device-enumerator: scanning /sys/bus
  device-enumerator: scanning /sys/class
unable to receive message
Bus 002 Device 003: ID 3938:1032  
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f2:b221 Chicony Electronics Co., Ltd integrated camera
Bus 001 Device 003: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 007: ID 0421:06fc Nokia Mobile Phones 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsblk output:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 298.1G  0 disk 
└─sda1   8:1    0 298.1G  0 part /
sr0     11:0    1  1024M  0 rom  
journalctl output pertaining to the device:

Jul 06 15:30:44 dankpad gvfsd[602]: Device 0 (VID=0421 and PID=06fc) is a Nokia Lumia (RM-975).

I've tried to redo what I did before to get it to work but for the life of me, it doesn't go as it did before(same kernel, DE, etc)

One such attempt was to unload the uhci_hcd module, load the ohci_hcd module and THEN the ohci_hcd module and create a file in /etc/modprobe.d to do this for you on boot.

The other was to make a udev rule containing the Vendor and Product IDs like so in /etc/udev/rules.d

SUBSYSTEM=="usb", ATTR{idVendor}=="0421", ATTR{idProduct}=="06fc", SYMLINK+="libmtp", MODE="660", ENV{ID_MTP_DEVICE}="1"
mtpfs sees but fails to enumerate the device:

[sachiko@dankpad: ~]$ mtpfs
Listing raw device(s)
device-enumerator: scan all dirs
  device-enumerator: scanning /sys/bus
  device-enumerator: scanning /sys/class
unable to receive message
Device 0 (VID=0421 and PID=06fc) is a Nokia Lumia (RM-975).
   Found 1 device(s):
   Nokia: Lumia (RM-975) (0421:06fc) @ bus 1, dev 9
Attempting to connect device
unable to receive message
PTP_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

This occurs no matter which USB cord or port I use.

Offline

#2 2016-08-23 11:01:07

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Lumia 640 was able to be mounted before but not any longer

mtpfs seems kind of broken (or just support broken parts of this mtp rubbish)
Use https://aur.archlinux.org/packages/simple-mtpfs/  (which probably should be the default in arch, no idea)

kio-mtp should work as well. I don't know whether gvfs-mtp works, but it will likely only work for gnome programs (as kio does for KDE ones)

Offline

Board footer

Powered by FluxBB