Ubuntu 14.04 MTP error

I am trying to make my new phone (Oneplus One) work with Ubuntu 14.04, Dell Vostro 2520. Here is the output from /var/log/syslog..

 [  489.186871] usb 1-1.1: USB disconnect, device number 10
 [  498.708981] usb 2-1.2: new high-speed USB device number 4 using ehci-pci
 [  498.803568] usb 2-1.2: New USB device found, idVendor=05c6, idProduct=6764
 [  498.803575] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 [  498.803579] usb 2-1.2: Product: One
 [  498.803582] usb 2-1.2: Manufacturer: OnePlus
 [  498.803585] usb 2-1.2: SerialNumber: 482a54b2
 mtp-probe: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2"
 mtp-probe: bus: 2, device: 4 was not an MTP device

Solution 1:

Adding the following entries to /lib/udev/rules.d/69-libmtp.rules did the trick

ATTR{idVendor}=="05c6", ATTR{idProduct}=="6764", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1", TAG+="uaccess"
ATTR{idVendor}=="05c6", ATTR{idProduct}=="6765", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1", TAG+="uaccess"

I got this solution when I asked the same question in OnePlus forum

Solution 2:

A good howto is available at the Ubuntu Wiki

In short this worked for me:

Connect your device per USB.

sudo apt-get install mtpfs mtp-tools 
sudo mtp-detect 

Cancel the last Command with CTRL+C if you got something like this:

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

Listing raw device(s)
Device 0 (VID=1234 and PID=5678) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
   Found 1 device(s):
   1234:5678 @ bus 3, dev 10
Attempting to connect device(s)
Android device detected, assigning default bug flags

Look for the VID = idVendor and PID = idProduct and replace the numbers "1234" and "5678" in the following line:

sudo echo 'ATTR{idVendor}=="1234", ATTR{idProduct}=="5678", SYMLINK+="libmtp-%k", MODE="660", GROUP="disk", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"' >> /etc/udev/rules.d/69-libmtp.rules

Now disconnect and reconnect your device per USB and see if it works. Wish it would be easier.

Solution 3:

You might want to try to install the following

sudo apt-get install mtp-tools mtpfs

Also I have read that plugging it into a usb 3.0 (blue) port is better.