2013-01-07 126 views
6

我試圖讓一個Samsung Galaxy Tab2 7.0「通過MTP連接到Debian Wheezy box。https://askubuntu.com/questions/186681/getting-mtp-to-work-with-a-galaxy-tab-2-7-0的askubuntu頁面詳細說明了我的問題,但沒有一個提示補救工作在Linux上安裝三星Galaxy Tab 2 7.0與MTP

要重申,我安裝MTP-工具和mtpfs MTP-檢測率這樣的:。

libmtp version: 1.1.3 

Listing raw device(s) 
Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y. 
    Found 1 device(s): 
    Samsung: GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y (04e8:6860) @ bus 1, dev 3 
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. 

我使用創建的/etc/udev/rules.d/51-android.rules文件價值04e8爲供應商ID和6860爲設備ID。我完成了前述的howto,並做到這一點:

mkdir foo 
mtpfs -o allow_other foo 

現在正在做「ls foo」攤位。檢查foo上方的目錄也會失速。我不能在沒有執行「killall -9 mtpfs」的情況下返回命令行(類似於處理過時的sshfs坐騎)。然後我看到:

ls: cannot access foo: Transport endpoint is not connected 

嘗試https://askubuntu.com/a/88630/27480並得到了相同的結果。

https://github.com/hanwen/go-mtpfs細末mtpfs也失敗:從https://github.com/kiorky/jmtpfs.git

mkdir foo 
./go-mtpfs foo 
2013/01/07 02:39:33 compiled against libmtp 1.1.3 
Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y. 
2013/01/07 02:39:33 found device Samsung: GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y (04e8:6860) @ bus 1, dev 3 
: 
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 
2013/01/07 02:41:33 rdev.open failed: open: open returned nil 

jmptfs也失敗:

Device 0 (VID=04e8 and PID=6860) is a Samsung GT P7310/P7510/N7000/I9070/I9100/I9300 Galaxy Tab 7.7/10.1/S2/S3/Nexus/Note/Y. 
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 
terminate called after throwing an instance of 'MtpErrorCantOpenDevice' 
    what(): Can't open device 
Aborted 
+4

我後來發現,升級到libmtp-1.1.5將使MTP安裝工作。但是,mtpfs包仍然存在嚴重錯誤。它似乎因質量差而聞名。 Jmtpfs出色地工作。如果mtpfs的作者正在觀看,請考慮刪除程序的內容並從jmtpfs中提取代碼。 – Frotz

+1

感謝您的更新。我遇到了同樣的問題。我曾以某種方式在12.04的32位版本上工作,但是當我重新安裝以更新到64位時,我遇到了和您一樣的問題。出於某種原因,我的舊版本有1.1.5,但是新版本的版本是1.1.3。我得到了1.1.5,現在起作用了。 –

回答

0

試試這個在終端:

killall gvfs-gphoto2-volume-monitor 
killall gvfs-mtp-volume-monitor 

之後,重新連接電話。並使用mtp-detect或其他基於libmtp的程序。它應該工作。

這是我在這個Ubuntu的錯誤提出了一個解決辦法: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1314556