在UBUNTU系统下,红米手机与电脑连接后无法显示,用syhost提供的方法可以正常连接了:
原帖地址:http://bbs.anzhi.com/thread-9058321-1-1.html
1.检查安装依赖库
- sudo apt-get udpate
- sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9
- sudo dist-upgrade
- sudo vim /etc/fuse.conf
- #/etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)
- #Set the maximum number of FUSE mounts allowed to non-root users.
- #The default is 1000.
- #mount_max = 1000
- # Allow non-root users to specify the allow_other or allow_root mount options.
- user_allow_other
Bus 002 Device 007: ID 2717:1268
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 17ef:480d Lenovo Integrated Webcam [R5U877]
Bus 001 Device 005: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 004: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 003: ID 17ef:6050 Lenovo
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ian@ian-ThinkPad-T410s:~$
- sudo vim /lib/udev/rules.d/69-mtp.rules
- # HM1S
- ATTR{idVendor}=="2717", ATTR{idProduct}=="1268", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
- sudo vim /etc/udev/rules.d/51-android.rules
- ATTR{idVendor}=="2717", ATTR{idProduct}=="1268", MODE=”0666"
- sudo service udev restar
- sudo reboot