通过USB挂接Nexus 5x


21

我正在尝试通过mtp在笔记本电脑上安装新的nexus 5x手机之一。当我将其插入时,nautilus会将其识别为5x关联,并在左侧显示一个选项。但是,当我单击它时,即使应该在那里有文件,文件通常会出现的区域还是空白的,并且我无法创建文件。有趣的是,lsusb返回:

Bus 004 Device 002: ID 8087:8000 Intel Corp. 
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:8008 Intel Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 5986:055c Acer, Inc 
Bus 001 Device 002: ID 0cf3:3004 Atheros Communications, Inc. 
Bus 001 Device 023: ID 18d1:4ee1 Google Inc. Nexus 4
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

奇怪的是,lsusb认为它是一个联系4,而鹦鹉螺正确地看到了5倍。也许它还不被支持?我在系统日志中找到以下内容:

Oct 27 20:26:25  kernel: [584014.476624] usb 1-3: new high-speed USB device number 23 using xhci_hcd
Oct 27 20:26:25  kernel: [584014.606208] usb 1-3: New USB device found, idVendor=18d1, idProduct=4ee1
Oct 27 20:26:25  kernel: [584014.606217] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 27 20:26:25  kernel: [584014.606221] usb 1-3: Product: Nexus 5X
Oct 27 20:26:25  kernel: [584014.606225] usb 1-3: Manufacturer: LGE
Oct 27 20:26:25  kernel: [584014.606228] usb 1-3: SerialNumber: 0067460eb26d49e8
Oct 27 20:26:25  systemd-udevd[13357]: failed to execute '/lib/udev/socket:@/org/freedesktop/hal/udev_event' 'socket:@/org/freedesktop/hal/udev_event': No such file or directory
Oct 27 20:26:25  org.gtk.vfs.Daemon[3123]: PTP: reading event an error 0x02ff occurredUnable to open ~/.mtpz-data for reading, MTPZ disabled.
Oct 27 20:26:25  org.gtk.vfs.Daemon[3123]: Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP).
Oct 27 20:26:25  org.gtk.vfs.Daemon[3123]: Error 1: Get Storage information failed.
Oct 27 20:22:10  gnome-session[3211]: (deja-dup-monitor:4213): GLib-CRITICAL **: Source ID 3199 was not found when attempting to remove it
Oct 27 20:26:26  gnome-session[3211]: (nautilus:13398): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Oct 27 20:26:26  gnome-session[3211]: (nautilus:13398): GLib-GObject-WARNING **: invalid (NULL) pointer instance
Oct 27 20:26:26  gnome-session[3211]: (nautilus:13398): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oct 27 20:26:26  dbus[2053]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Oct 27 20:26:26  systemd[1]: Starting Hostname Service...
Oct 27 20:26:26  systemd-udevd[13404]: failed to execute '/lib/udev/socket:@/org/freedesktop/hal/udev_event' 'socket:@/org/freedesktop/hal/udev_event': No such file or directory
Oct 27 20:26:26  org.gtk.Private.GPhoto2VolumeMonitor[3123]: (process:3493): GVFS-GPhoto2-WARNING **: device (null) has no BUSNUM property, ignoring
Oct 27 20:26:26  dbus[2053]: [system] Successfully activated service 'org.freedesktop.hostname1'
Oct 27 20:26:26  systemd[1]: Started Hostname Service.

我在Eurocom Electra 2上使用Ubuntu 15.04。

另外,可以给比我更有声誉的人创建nexus-5x标签吗? 谢谢@KGIII

编辑:我试图用mtpfs挂载;错误类似于我在日志中看到的错误,并且不会发生安装。

$ mtpfs nexus5x/
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Listing raw device(s)
Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP).
   Found 1 device(s):
   Google Inc (for LG Electronics/Samsung): Nexus 4/5/7/10 (MTP) (18d1:4ee1) @ bus 1, dev 25
Attempting to connect device
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: Error 02fe: PTP: Protocol error, data expected
Listing File Information on Device with name: (NULL)
LIBMTP_Get_Storage() failed:-1

我也曾尝试从源代码下载最新的libmtp,但它似乎仍然无法正常工作-我之所以这样说是因为我不太确定会发生什么。我尝试了mtp文件:

libmtp version: 1.1.10

Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP).
mtp-files: Successfully connected
Android device detected, assigning default bug flags
Listing File Information on Device with name: (NULL)
Error 1: Get Storage information failed.
OK.

添加了标签-编辑(可能)需要一点时间才能获得批准。
KGIII

您安装了gvfs-backends软件包吗?仅建议将其作为nautilus的依赖项,因此可能未安装。同样,显然,在同一“系列”中的许多电话可以使用Linux在USB上标识电话的方式使用相同的条目,因此我不必太担心它在任何地方都获得绝对正确的名称。您也可以安装mtp-tools和mtpfs并从命令行进行调查。
RobertL

罗伯特是对的,有些设备属于使用相同产品和供应商ID的设备系列,因为这些Nexus 4和5x是LG制造的,或者是相同的ID,或者是udev或mtp中的正则表达式检测到的。我建议您看一下我为此类案例撰写的问答。另一个选择是Android File Transfer For Linux
LiveWireBT

我在Ubuntu 14.04上遇到了同样的问题。空文件夹。我有gvfs后端,它与所有其他较旧的Nexus(例如
5、7、9

@RobertL我安装了gvfs-backends,mtp-tools和mtpfs。我曾尝试通过命令行进行挂载,但简单的操作却无法正常进行。还有更详细的建议吗?
瘦素生成

Answers:


33

实际上,它正在工作!

当您将N5X(屏幕解锁)连接到Linux机器时,N5X将默认为USB充电(我认为是安全功能)。N5X将出现在您的Linux文件管理器中,但不会显示内部存储。如果您在N5X上拉下通知栏,您会看到它显示USB充电。如果选择应该为您提供其他选项,包括用于文件传输的MTP,用于照片传输的PTP和MIDI。

感谢davharuk。

编辑 我绝对同意这些意见。完全令人困惑。我也是。


4
手机上没有弹出窗口,甚至没有任何图标,这有点令人困惑。您必须下拉菜单才能看到该选项!由于它以前无法像以前那样工作,因此它是IMO推出的功能很差的功能。
vinni_f 2015年

2
就是这样-我什至没有注意到菜单中的选项。这至少使我获得了文件列表以及与设备之间的传输能力。但是,它似乎仍然不稳定-值得注意的是,鹦鹉螺中缺少我在设备文件管理器上可以看到的许多文件。
leptogenesis
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.