Connect Xiaomi MI2 to Linux laptop

Discussion in 'Question & Answers' started by g0mib0y, Dec 5, 2012.

  1. g0mib0y

    g0mib0yMembers

    Feb 1, 2012
    45
    4
    18
    Hi!
    I just got my MI2 from China and have a small issue. When I connect it via USB to my laptop running Ubuntu 12.04 I can chose two modes, photo or file share. If I chose Photo I get access to all my pictures from DCIM and Picturs folder. If I chose File all I get is a 4MB share with install files for windows and Mac. Anyone know how to access the "user memory" on the device? I have no interest at the moment to install devel version of ROM but there must be some way or?
    Now I have to connect it using "Photo" mode and put my files there (like mp3) then use the built in filemanager to move it to Music folder.
     
  2. hadron

    hadronMembers

    Sep 23, 2012
    640
    169
    82
    Male
    Not sure about the Linux drivers. but I guess you can use the built in ftp server for most of the tasks.
    Open the mi file explore (default file browser on mi2) , at bottom you will see the option to start ftp server. Once you start it, it'll give you the ftp address and port. On windows I can put this address in file browser. I think it will work in Linux too. Laptop and your phone should be connected to same router. Now you can do the common file operations.
    In the meantime you can search for proper Linux drivers.


    Sent from my Xiaomi M2
     
  3. g0mib0y

    g0mib0yMembers

    Feb 1, 2012
    45
    4
    18
    Thank you!!! I didn't know about this function. Works great!
     
  4. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Search with Google : Ubuntu enable MTP.

    Ive connected my Nexus 7 with this as this device has also both USB modes: MTP and PTP.

    Sent from my MIUI Nexus S Jelly Bean.
     
  5. 5ulo

    5uloMembers

    May 25, 2012
    134
    15
    28
    Male
  6. iBotPeaches

    iBotPeachesScript Gatekeeper

    Oct 31, 2011
    3,811
    1,117
    335
    Kansas
    You can also go to ~/.android/adb_usb.ini
    Code:
    # ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
    # USE 'android update adb' TO GENERATE.
    # 1 USB VENDOR ID PER LINE.
    0x2717
    
    Should fix adb for Xiaomi MI2 on Ubuntu.
     
  7. spider623

    spider623Members

    Aug 20, 2011
    137
    14
    38
    Male
    Limassol
    As a Linux user I recommend airdroit as for USB google gomtpfs and you find instructions

    Sent from my Nexus S
     

Share Our Site