码迷,mamicode.com
首页 > 系统相关 > 详细

魅蓝note2在ubuntu14.04下mtp模式无法自动mount的解决方法

时间:2015-09-26 13:18:24      阅读:384      评论:0      收藏:0      [点我收藏+]

标签:

是因为新机型没在列表里的原因。

处理方法如下:

As far as I know, MTP works fine in Trusty. You can try this:

Uncomment #user_allow_other in /etc/fuse.conf. 

Run lsusb and see your device‘s vendor ID. It will be something like 1d6b:0002. (执行lsusb命令,查找机器id,我的机器id是2a45:0c02)

Add the following line to /lib/udev/rules.d/69-libmtp.rules. (idVendor和idProduct的赋值记得改成你自己查到的结果)

ATTR{idVendor}=="1d6b", ATTR{idProduct}=="0002", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

Add the following line to /etc/udev/rules.d/51-android.rules. (同上)

ATTR{idVendor}=="1d6b", ATTR{idProduct}=="0002", MODE=”0666"

sudo service udev restart

sudo reboot

Replace the Vendor and Device IDs of course.

Like I said, MTP should work out of the box, but the above manually adds relevant entries to your devices list. (ubuntu14.04对MTP的支持是没问题的,只不过新机型没列出来)

 

魅蓝note2在ubuntu14.04下mtp模式无法自动mount的解决方法

标签:

原文地址:http://www.cnblogs.com/kkzxak47/p/4840608.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!