Unable to import photos from Samsung Galaxy Note 3

Bug #1464969 reported by Michael Sharman
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I'm having trouble accessing photos or files on my Samsung Galaxy Note 3 phone.

Plugging in phone and using Shotwell, then clikcing on the SMASUNG_Android camera cause a "Could not claim USB device (-53)" error, which when dismissed just displays a "Starting import please wait" message indefinitely.

In an attempt to figure out what is going wrong I've been using the mtp-detect command as per https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1314556

So this is a log of what I've done:

(running kernel is 3.19.0-20-generic)

1. Unplug and plug in Samsung Galaxy Note 3 and get dmesg output:

[ 25.386168] usb 1-2: USB disconnect, device number 2
[ 28.245983] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[ 28.375245] usb 1-2: New USB device found, idVendor=04e8, idProduct=6860
[ 28.375247] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 28.375249] usb 1-2: Product: SAMSUNG_Android
[ 28.375250] usb 1-2: Manufacturer: SAMSUNG
[ 28.375251] usb 1-2: SerialNumber: 2410ba56

2. Kill any gvfs processes that might interfere with with mtp-detect

msharman@laptop-msharman:~$ killall gvfs-gphoto2-volume-monitor
msharman@laptop-msharman:~$ killall gvfs-mtp-volume-monitor

3. Make sure phone is unlocked and run mtp-detect:
msharman@laptop-msharman:~$ mtp-detect
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
libmtp version: 1.1.8

Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 4
Attempting to connect device(s)
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
OK.

4. Check dmesg output:
msharman@laptop-msharman:~$ dmesg | tail
[ 28.375250] usb 1-2: Manufacturer: SAMSUNG
[ 28.375251] usb 1-2: SerialNumber: 2410ba56
[ 88.552728] usb 1-2: reset high-speed USB device number 4 using xhci_hcd
[ 88.681995] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b8731348
[ 88.681999] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b8731300
[ 88.682000] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b8731390
[ 217.756010] usb 1-2: reset high-speed USB device number 4 using xhci_hcd
[ 217.885218] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b8731348
[ 217.885227] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b8731300
[ 217.885230] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800b8731390

It looks like there could be an xhci related kernel bug?

So I tried using a newer mainline kernel: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-image-4.0.0-040000-generic_4.0.0-040000.201504121935_amd64.deb

With this kernel I get different dmesg output but the mtp-detect still fails (following the exact same procedure as above but I'm just showing the differences here)

(running kernel 4.0.0)

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

Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 4
Attempting to connect device(s)
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
inep: usb_get_endpoint_status(): No such device
outep: usb_get_endpoint_status(): No such device
libusb_open() failed!: No such device
LIBMTP PANIC: Could not init USB on second attempt
Unable to open raw device 0
OK.

msharman@laptop-msharman:~$ dmesg | tail
[ 212.229605] usb 2-2: Product: SAMSUNG_Android
[ 212.229608] usb 2-2: Manufacturer: SAMSUNG
[ 212.229610] usb 2-2: SerialNumber: 2410ba56
[ 215.164011] usb 2-2: USB disconnect, device number 2
[ 215.503911] usb 1-2: new high-speed USB device number 5 using xhci_hcd
[ 215.634182] usb 1-2: New USB device found, idVendor=04e8, idProduct=6860
[ 215.634189] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 215.634193] usb 1-2: Product: SAMSUNG_Android
[ 215.634196] usb 1-2: Manufacturer: SAMSUNG
[ 215.634198] usb 1-2: SerialNumber: 2410ba56

So upgrading to kernel 4.0 hasdone something it's fixed the xhci_hcd related errors but the mtp-detect is still failing (I've tried gphoto2 -L as well and got similar results).

So I'm not which package the bug is in: could kernel, libmtp, libusb or somethings else ?

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: linux-image-3.19.0-20-generic 3.19.0-20.20
ProcVersionSignature: Ubuntu 3.19.0-20.20-generic 3.19.8
Uname: Linux 3.19.0-20-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC0D0p: msharman 1487 F...m pulseaudio
 /dev/snd/controlC0: msharman 1487 F.... pulseaudio
CurrentDesktop: GNOME
Date: Sun Jun 14 16:59:23 2015
InstallationDate: Installed on 2012-10-21 (966 days ago)
InstallationMedia: Ubuntu GNOME Remix 12.10 "Quantal Quetzal" - Beta amd64(20120926)
JournalErrors: Error: command ['journalctl', '-b', '--priority', 'warning'] failed with exit code 1: No journal files were found.
MachineType: ASUSTeK COMPUTER INC. N56VM
ProcFB:
 0 inteldrmfb
 1 nouveaufb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-20-generic root=UUID=74f18c4b-8b58-4e8b-9dfe-83f9b08086da ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.19.0-20-generic N/A
 linux-backports-modules-3.19.0-20-generic N/A
 linux-firmware 1.143.1
SourcePackage: linux
UpgradeStatus: Upgraded to vivid on 2015-06-11 (2 days ago)
WifiSyslog:

dmi.bios.date: 03/01/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: N56VM.204
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: N56VM
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrN56VM.204:bd03/01/2012:svnASUSTeKCOMPUTERINC.:pnN56VM:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnN56VM:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: N56VM
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Michael Sharman (msharman) wrote :
Revision history for this message
Michael Sharman (msharman) wrote :

sorry this is the same as https://bugs.launchpad.net/ubuntu/+source/libmtp/+bug/1464968 I just wantes to make sure the correct kernel related information was submitted since I think this is likely a kernel issue.

Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Sharman (msharman) wrote :

I just tried with the latest mainline kernel: 4.1.0-040100rc7-generic
Got the same result but different dmesg output:
[ 29.767220] usb 1-2: USB disconnect, device number 2
[ 32.307137] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[ 32.436267] usb 1-2: New USB device found, idVendor=04e8, idProduct=6860
[ 32.436272] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 32.436274] usb 1-2: Product: SAMSUNG_Android
[ 32.436276] usb 1-2: Manufacturer: SAMSUNG
[ 32.436278] usb 1-2: SerialNumber: 2410ba56
[ 52.986605] usb 1-2: usbfs: process 2070 (mtp-detect) did not claim interface 0 before use
[ 53.098907] usb 1-2: reset high-speed USB device number 4 using xhci_hcd
[ 53.227897] usb 1-2: usbfs: process 2070 (mtp-detect) did not claim interface 0 before use
[ 53.395019] usb 1-2: reset high-speed USB device number 4 using xhci_hcd
[ 53.525020] usb 1-2: usbfs: process 2070 (mtp-detect) did not claim interface 0 before use
[ 53.525248] usb 1-2: usbfs: process 2070 (mtp-detect) did not claim interface 0 before use
[ 133.385180] usb 1-2: usbfs: process 2147 (pool) did not claim interface 0 before use
[ 133.497291] usb 1-2: reset high-speed USB device number 4 using xhci_hcd
[ 133.627167] usb 1-2: usbfs: process 2147 (pool) did not claim interface 0 before use
[ 133.793254] usb 1-2: reset high-speed USB device number 4 using xhci_hcd
[ 133.922914] usb 1-2: usbfs: process 2147 (pool) did not claim interface 0 before use
[ 133.923082] usb 1-2: usbfs: process 2147 (pool) did not claim interface 0 before use

Revision history for this message
Michael Sharman (msharman) wrote :

Also tried kernel 3.12.43-031243-generic still failed, dmesg output now:
[ 18.855676] usb 3-2: USB disconnect, device number 2
[ 64.721133] usb 3-2: new high-speed USB device number 4 using xhci_hcd
[ 64.739469] usb 3-2: New USB device found, idVendor=04e8, idProduct=6860
[ 64.739474] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 64.739476] usb 3-2: Product: SAMSUNG_Android
[ 64.739477] usb 3-2: Manufacturer: SAMSUNG
[ 64.739479] usb 3-2: SerialNumber: 2410ba56
[ 132.665779] usb 3-2: usbfs: process 2073 (pool) did not claim interface 0 before use
[ 132.831567] usb 3-2: reset high-speed USB device number 4 using xhci_hcd
[ 132.848744] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800368ad1c0
[ 132.848749] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800368ad180
[ 132.848752] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800368ad200
[ 132.849369] usb 3-2: usbfs: process 2073 (pool) did not claim interface 0 before use
[ 133.015400] usb 3-2: reset high-speed USB device number 4 using xhci_hcd
[ 133.032709] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800368ad1c0
[ 133.032715] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800368ad180
[ 133.032717] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800368ad200
[ 133.033430] usb 3-2: usbfs: process 2073 (pool) did not claim interface 0 before use
[ 133.033564] usb 3-2: usbfs: process 2073 (pool) did not claim interface 0 before use

Changed in linux (Ubuntu):
importance: Undecided → Medium
penalvch (penalvch)
tags: added: bios-outdated-214
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Michael Sharman (msharman) wrote :
Revision history for this message
Michael Sharman (msharman) wrote :
Download full text (3.8 KiB)

msharman@laptop-msharman:~$ sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
N56VM.214
08/28/2012

Thanks, for some reason it didn't occur to me to check for out dated BIOS. I've updated the BIOS to the 214 version which indeed has made a significant change. Ubuntu now attachs to the phone with the file manager when it is plugged in. Add if I eject the phone (to avoid the device can not be claimed error in Shotwell) then Shotwell is now able to read the previews of the photos and import the photos - which is much better.

However, it isn't stable, I gave the mtp-detect process above a go after a reboot and the result is better but there were some errors I've attached the output as the file "mtp-detect-out.txt" and also there are still errors in the dmesg I've attached the complete dmesg output as "dmesg-out.txt"

Interestingly after repeating the above mtp-detect hangs as it attempts to reset the device:

msharman@laptop-msharman:~$ killall gvfs-mtp-volume-monitor
msharman@laptop-msharman:~$ killall gvfs-gphoto2-volume-monitor
msharman@laptop-msharman:~$ mtp-detect

(output attached as mtp-detect-out.txt)

dmesg output:

[ 51.197549] usb 1-4: USB disconnect, device number 3
[ 54.520400] usb 1-4: new high-speed USB device number 4 using xhci_hcd
[ 54.649665] usb 1-4: New USB device found, idVendor=04e8, idProduct=6860
[ 54.649672] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 54.649676] usb 1-4: Product: SAMSUNG_Android
[ 54.649679] usb 1-4: Manufacturer: SAMSUNG
[ 54.649682] usb 1-4: SerialNumber: 2410ba56
[ 131.389969] usb 1-4: usbfs: process 2263 (pool) did not claim interface 0 before use
[ 131.501544] usb 1-4: reset high-speed USB device number 4 using xhci_hcd
[ 131.630174] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022409da48
[ 131.630180] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022409da00
[ 131.630184] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88022409da90
[ 131.630628] usb 1-4: usbfs: process 2263 (pool) did not claim interface 0 before use
[ 131.630712] usb 1-4: usbfs: process 2209 (mtp-detect) did not claim interface 0 before use
[ 131.630828] usb 1-4: usbfs: process 2209 (mtp-detect) did not claim interface 0 before use
[ 131.630841] usb 1-4: usbfs: process 2209 (mtp-detect) did not claim interface 0 before use
[ 131.630856] usb 1-4: usbfs: process 2209 (mtp-detect) did not claim interface 0 before use
[ 131.630872] usb 1-4: usbfs: process 2209 (mtp-detect) did not claim interface 0 before use
[ 131.630900] usb 1-4: usbfs: process 2209 (mtp-detect) did not claim interface 0 before use
[ 131.631012] usb 1-4: usbfs: process 2263 (pool) did not claim interface 0 before use

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

Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 10
Attempting to connect device(s)

Seems to hang here.

For reference my list of steps is now:

1. Plug in de...

Read more...

Revision history for this message
Michael Sharman (msharman) wrote :
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Michael Sharman, to see if this is already resolved in Ubuntu, could you please test with http://cdimage.ubuntu.com/daily-live/current/ and advise to the results?

tags: added: latest-bios-214
removed: bios-outdated-214
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.