Asus Transformer Prime MTP

Hi all!

I bought a Asus Transformer Prime and I am really very happy with it!
Now I am trying to transfer files from Opensuse (Tumbleweed) to the Transformer and followed this guide:

Experiences - Asus Transformer Tablet with openSUSE - Blogs - openSUSE Forums

When I connect the Transformer, it gets recognized by the System:

usb 1-3: new high-speed USB device number 3 using ehci_hcd
usb 1-3: New USB device found, idVendor=0b05, idProduct=4d00
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: Transformer Prime TF201
usb 1-3: Manufacturer: asus
usb 1-3: SerialNumber: C4OKAS030795

I also created the file /etc/udev/rules.d/51-android.rules with this entry:

SUBSYSTEMS=="usb",ATTRS{idVendor}=="0b05",ATTRS{idProduct}=="4d00",MODE="0666",OWNER="rehcla" #Asus Transformer  

and when I mount the Transformer via mtpfs (what I got from Packman Repo) as root:

mtpfs -o allow_other /media/transformer

I get:

Listing raw device(s)
Device 0 (VID=0b05 and PID=4d00) is a Asus TF201 Transformer Prime (keyboard dock).
Found 1 device(s):
Asus: TF201 Transformer Prime (keyboard dock) (0b05:4d00) @ bus 1, dev 3
Attempting to connect device
Android device detected, assigning default bug flags
Listing File Information on Device with name: (NULL)

An** ls** of the mount point (as root):

ls /media/transformer/

gives me:

Interner Speicher  Playlists

what looks promising!
But when I try to go further and ls (as root) a directory where I know there is content:

ls -a /media/transformer/Interner\ Speicher/eBooks/
.  ..

There is nothing, but there should be plenty of files!

What I do wrong or what I am missing!

Thanks in advance…

Claus

Hi
I don’t have my notes available (away from home…) will look tomorrow,
but there is a change in the udev rule, was a call to libmtp from
memory. Then I could read all the files on my ASUS TF101.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 2 days 13:13, 3 users, load average: 0.09, 0.11, 0.08
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

That sound great!!!

Thank you…

I think there may be a bug here … I note here is a recent Ubuntu bug on this: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/972311

Comment #12 is interesting in that bug report.

Hi
Change your rule to;


SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4d00", SYMLINK+="libmtp-%k", MODE="0666"


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 0:44, 3 users, load average: 0.08, 0.07, 0.10
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi malcolmlewis!

I applied the new rule, but nothing changed!

vi /etc/udev/rules.d/51-android.rules
# udevadm control --reload-rules
# mkdir /media/transformer
# chmod 777 /media/transformer                                                                                                                             
# mtpfs -o allow_other /media/transformer
Listing raw device(s)
Device 0 (VID=0b05 and PID=4d00) is a Asus TF201 Transformer Prime (keyboard dock).
Found 1 device(s):
Asus: TF201 Transformer Prime (keyboard dock) (0b05:4d00) @ bus 1, dev 4
Attempting to connect device
Android device detected, assigning default bug flags
Listing File Information on Device with name: (NULL)

# ls -a /media/transformer/Interner\ Speicher/eBooks/
.  ..





On 05/20/2012 12:06 PM, rehcla wrote:
> I bought a Asus Transformer

i read somewhere (don’t remember where) the easiest way to connect to
the Transformer from a linux machine is via wi-fi…

maybe all of that has changed… but . . .

hmmmm…maybe Bluetooth??


dd

Hi
OK, the following works for my TF101, add this udev rule as ‘ROOT’
user ;


# ASUS Transformer - UDEV Rule

# For ASUS Transformer TF101
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4e0f", SYMLINK+="libmtp-%k", MODE="0666", GROUP="users"
RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"

You need to change your ID’s as required, then as your ‘USER’ not
root, you can mount the device, eg;


mtpfs /home/username/tf101

Change your mount point as required.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 11:58, 4 users, load average: 1.09, 0.99, 0.45
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi
Sure, I use sftp 99.9% of the time… :wink: with android 4.0.3 you can
mount either via mtp (media device) or ptp (camera) modes.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 12:03, 4 users, load average: 0.01, 0.39, 0.33
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi
Forgot to add, for unmounting use;


fusermount -u <your_mount_point>


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 12:51, 4 users, load average: 0.00, 0.03, 0.08
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi malcolmlewis.

How well does that work for you ?

I found it works only partially on my TF101.

I can copy files OFF of my TF101 Transformer to my PC with that. But I can not copy files to my TF101 Transformer with that. Which reads like a permission issue, but I do not obtain permission errors when I try. Instead I obtain software application errors. Did your testing of this include copying a file (say 20MBytes in size) to the Transformer ?

I think I’ll put an entry in my blog post pointing to this thread, as clearly the advice in my blog no longer works.

I’ve basically given up on using this copy method, as even when it worked in the past it was very slow. Instead I simply use the USB adapter and a USB stick, and copy files that way. Even though one is copying files twice (from PC => USB stick and from USB stick => TF101 Transformer) I find the USB stick method the fastest copy method. I have a USB-3.0 stick which allows a very fast file copy (even though TF101 is a USB-2.0).

Hi
I use sftp (Install SSHDroid for a server or FTP Cafe for client) or set
it to ptp mode rather than mtp via settings->storage->(top right three
little squares)USB computer connection. If a windows user requires
access then I would suggest using winscp…

Create a file /etc/fuse.conf and add


# Allow non-root users to specify the 'allow_other' or 'allow_root'
# mount options.
#
user_allow_other

Then connect via;


mtpfs -o allow_root <your_mount_point>

This should allow copying to the SD card… I tested with a 51MB iso
image.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 1 day 10:45, 4 users, load average: 0.03, 0.03, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

rehcla,

I wouldn’t lose too much sleep on this. I had the exact same thing happen with me and an Acer A500 running Honeycomb 3.2. I fiddled with it and fiddled with it and ended up doing the same as you with flash drives or I even ended up using Google Drive and Drop Box to share files between devices via cloud storage. Hopefully our amazing engineers will have the tablet interfacing issues resolved in the near future so they are more “plug and play” friendly.

I tried various variants of UDEV rules mentioned here, but it does not work :frowning:

svarog:~ # dmesg | tail
57.452375] EXT4-fs (dm-1): re-mounted. Opts: acl,user_xattr,commit=0
57.456917] EXT4-fs (sda1): re-mounted. Opts: acl,user_xattr,commit=0
58.770390] usb0: no IPv6 routers present
99.082977] fuse init (API version 7.17)
7245.771044] usb 2-1: new high speed USB device number 6 using ehci_hcd
7245.899215] usb 2-1: New USB device found, idVendor=0b05, idProduct=4c80
7245.899220] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
7245.899223] usb 2-1: Product: ASUS Transformer Pad TF300T
7245.899226] usb 2-1: Manufacturer: asus
7245.899228] usb 2-1: SerialNumber: ###########

When trying to connect I get
svarog:~ # mtpfs -o allow_root /media/transformer
Listing raw device(s)
Device 0 (VID=0b05 and PID=4c80) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Found 1 device(s):
0b05:4c80 @ bus 2, dev 6
Attempting to connect device
PTP_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
… and long, long waiting leading nowhere…

or
$ mtpfs /media/transformer
Listing raw device(s)
libusb couldn’t open USB device /dev/bus/usb/001/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/001/003: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/006/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/002/007: Permission denied.
libusb requires write access to USB device nodes.
No raw devices found.

regradles I use parametr “-o allow_root” or not. The result is same with all varinats od UDEV rules.
I have ASUS Transformer Pad TF300 with original Android 4.0.3 and openSUSE 12.1 with KDE 4.7.
Any idea how to get it to work, please?

Hi
Run as your user, not root. Did your configure the /etc/fuse.conf file?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.34-0.7-default
up 4 days 15:43, 3 users, load average: 0.35, 0.29, 0.33
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi

svarog:~ # cat /etc/fuse.conf

Allow non-root users to specify the ‘allow_other’ or ‘allow_root’

mount options.

user_allow_other

I tried to mount it as user as well as root. As user it looks like

$ mtpfs -o allow_root /media/transformer
Listing raw device(s)
libusb couldn’t open USB device /dev/bus/usb/001/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/001/003: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/006/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/002/011: Permission denied.
libusb requires write access to USB device nodes.
No raw devices found.

or

$ mtpfs /media/transformer
Listing raw device(s)
libusb couldn’t open USB device /dev/bus/usb/001/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/001/003: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/006/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/002/011: Permission denied.
libusb requires write access to USB device nodes.
No raw devices found.

To ensure I didn’t make any stupid typo:

svarog:~ # cat /etc/udev/rules.d/51-android.rules

ASUS Transformer - UDEV Rule for ASUS Transformer

SUBSYSTEM==“usb”, ATTRS{idVendor}==“0b05”, ATTRS{idProduct}==“4e0f”, SYMLINK+=“libmtp-%k”, MODE=“0666”, GROUP=“users”
RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}
#SUBSYSTEM==“usb”, ATTRS{idVendor}==“0b05”, ATTRS{idProduct}==“4d00”, SYMLINK+=“libmtp-%k”, MODE=“0666” #Asus Transformer
#SUBSYSTEMS==“usb”,ATTRS{idVendor}==“0b05”,ATTRS{idProduct}==“4d00”,MODE=“0666”,OWNER=“rehcla” #Asus Transformer

Thank You for Your help.

Hi
The rule should be;


# ASUS Transformer - UDEV Rule

# For ASUS Transformer TF300
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="4c80", SYMLINK+="libmtp-%k", MODE="0666", GROUP="users"
RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.34-0.7-default
up 4 days 17:40, 3 users, load average: 0.40, 0.44, 0.41
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi, thank You very much! No I get

$ mtpfs /mnt/transformer
Listing raw device(s)
libusb couldn’t open USB device /dev/bus/usb/001/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/001/003: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn’t open USB device /dev/bus/usb/006/002: Permission denied.
libusb requires write access to USB device nodes.
Device 0 (VID=0b05 and PID=4c80) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Found 1 device(s):
0b05:4c80 @ bus 2, dev 6
Attempting to connect device
Android device detected, assigning default bug flags
Listing File Information on Device with name: (NULL)

But in Dolphin I see only empty directories a nothing inside. When I copy something to tablet, only folder is copied, not its content. I have mountpoint /mne/transformer with rights 777. When navigating through the tablet’s FS, Dolphin often freezes for few seconds. And after while it is unmounted by itself…

Hi
Create a directory in your user home directory and mount there…


mkdir ~/transformer
mtpfs ~/transformer


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.34-0.7-default
up 5 days 17:06, 4 users, load average: 0.28, 0.33, 0.39
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi, thank, it helped, but still any operation in Dolphin takes sooo long, so it is practically unusable. MC works better, but far from “good”… So it more or less work, but nothing great. Anyway, thank You for Your patience. :slight_smile: If You have any idea how to make it faster, I’d be glad. One point I should probably tell earlier, I use encryption on my ASUS. Just in case it would matter. I don’t think so.