SliTaz SliTaz Forum

You are not logged in.

#1 2014-08-12 15:28:28

TraceE
Member
Registered: 2014-02-02
Posts: 112

File transfer to Nexus 7 (2012)

Is there a way to connect by MTP and transfer files to Nexus 7 (2012 version)?

I see there is an mtp-tools-1.1.5.tazpkg but I have no idea what to do with it.

Has anybody any idea how to connect to MTP devices?

Offline

#2 2014-08-12 15:30:53

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: File transfer to Nexus 7 (2012)

I am using Slitaz 4.0 live cd ... smile

Offline

#3 2014-08-12 18:05:56

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: File transfer to Nexus 7 (2012)

TraceE,

Maybe it helps you in question what to do with mtp-tools:

https://wiki.archlinux.org/index.php/MTP#Usage

We haven't gvfs-mpt on SliTaz 4.0 as well as in the latest SliTaz. So you can't connect to MTP device using PCManFM.

Offline

#4 2014-08-12 19:06:35

necrophcodr
Member
Registered: 2014-02-20
Posts: 101

Re: File transfer to Nexus 7 (2012)

Personally I just use SCP with a SCP client for android, but I'm sure it's possible with MTP-like tools.

Offline

#5 2014-08-12 22:14:07

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: File transfer to Nexus 7 (2012)

Hmmm, sounds like SCP might be easier but never heard of it before, any suggestions on easiest way to set it up?

Offline

#6 2014-08-12 23:31:22

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: File transfer to Nexus 7 (2012)

TraceE,

I never heard about mtp-tools. I only know my Android has three connection modes: Mass Storage Device, PTP, and MTP. All three works well at my work on Windows 7. Only thing I like in the MTP — non blocking mode.

And I never seeking info how to connect my Android to SliTaz in the MTP or PTP mode — as for me Mass Storage mode is enough.

Using of mtp-tools in the terminal is so boring. It sounds more interesting if we'll make gvfs-mtp module for using with PCManFM. I'll try to dig this problem...

Offline

#7 2014-08-13 02:41:26

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: File transfer to Nexus 7 (2012)

Wow ... that would be great .... at the moment I am working mainly on Slitaz but quite often want to transfer files to Nexus ... so have to reboot into Win 7 to do this ... sad

To be able to use pcmanfm would be a great time saver! ... smile

Surely it can't be too difficult with Slitaz and Android being Linux based?

Thanks for your interest.

Offline

#8 2014-08-13 02:45:58

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: File transfer to Nexus 7 (2012)

Or if it's possible to connect Nexus to Slitaz in mass Storage Mode then I would be happy with that, just not sure how to do it .... Nexus only has MTP & PTP in storage settings ... sad

Offline

#9 2014-08-14 18:05:17

Guest
Guest

Re: File transfer to Nexus 7 (2012)

I tried using MTP on a Creative Zen Touch but it didn't work, though it should have, I'm sorry to say that I just gave up on it. If scp will work, that would be the easier solution.

#10 2014-08-15 00:38:47

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: File transfer to Nexus 7 (2012)

fatmac,

What is SliTaz version are you using? Is it 4.0 or Rolling?

TraceE,

I've found solution. But... Please, understand, no new/updated packages for SliTaz 4.0 (except security updates), ever. Please check if SliTaz Rolling fullfills your needs.

So, solution.

I updated libmpt package to the latest version.

Prepared gmtp package (simple graphical interface to access your MTP device).

But it works, ouch, not well. It needs about two minutes to connect to my Android (in MTP mode).

Now I dropped Microsoft™ Zune™ support, and now libmtp has less depends, and gmtp (based on this libmtp) now needs only three seconds to connect!

It works but partially. I see all folders and files on device, can make new folders, and can upload files to device. But I can't download files from device to my desktop.

I have rooted cheap Chinese Android smartphone Lenovo A760. And if gmtp works not very well for me, maybe you'll luck more!

Offline

#11 2014-08-15 01:51:23

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: File transfer to Nexus 7 (2012)

That's great Aleksej! .... I will try it out tomorrow when I have time .... smile

Just to be clear .. all I have to do is install the gmtp package from your link or is there further steps to it?

Offline

#12 2014-08-15 02:53:25

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: File transfer to Nexus 7 (2012)

Error on trying to install:

Tracking dependencies for :  gmtp

Missing: GConf

Missing: libmtp

2 missing package(s) to install.

Mirrored packages diff

No new packages on the mirror.

Do I have to install latest rolling version of 4.0 or am I misunderstanding ?

Offline

#13 2014-08-15 08:47:43

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: File transfer to Nexus 7 (2012)

TraceE,

First of all, you need to use different Live CD.

As you described, now you use SliTaz 4.0 Live CD.

You'll find ISO files for SliTaz Rolling here: http://mirror.slitaz.org/iso/rolling/

(Rolling is latest version of SliTaz. It updated every day when packages it contains are updated).

I suggest you to use slitaz-rolling-core.iso

Why Rolling? It based on newer C libraries (and some other important changes), and it's not possible to not break compatibility — we should rebuild almost all. And our SliTaz team is tiny to continue development of two different SliTaz versions, so now we are working on Rolling.

So, make Rolling Live CD (if you use Live CD) and run it.

Connect to the internet (because you need to download packages).

Recharge packages list ([c]tazpkg recharge[/c] in terminal, or in TazPanel).

Now fork between "now" and "then".

"Then" (when my new packages are on packages repository mirror.slitaz.org) you need few simple steps (all as root user):

[*]recharge package lists: [c]tazpkg recharge[/c]

[*]install or upgrade (with [c]forced[/c] option) libmtp, mtp-tools and gmtp packages:

[c]tazpkg -gi libmtp --forced
tazpkg -gi mtp-tools --forced
tazpkg -gi gmtp --forced[/c]

"Now" (when these new packages are not on mirror.slitaz.org) you need to download them and install by hands, sorry.

These are links to packages, save them to some folder:

libmtp-1.1.6.tazpkg (~ 80 KB)

mtp-tools-1.1.6.tazpkg (~ 32 KB)

gmtp-1.3.7.tazpkg (~ 100 KB)

Now go to that folder, open terminal in it, became root user and install these packages:

[c]su
(here blind type root password)
tazpkg -i libmtp-1.1.6.tazpkg
tazpkg -i mtp-tools-1.1.6.tazpkg
tazpkg -i gmtp-1.3.7.tazpkg
(exit root session Ctrl+D and close terminal Ctrl+D)[/c]
Now you should find "gMTP" in your Applications menu under Multimedia → Audio. Run it.

Plug your device in MTP mode. Click connect button on gMTP. Wait few seconds. You should get list of folder and files…

And it is better (to debug purposes) if you run gMTP in the terminal. Just open terminal and type [c]gmpt[/c]

Now you can read errors and warnings on your terminal.

Please, share your experience. Good luck to you!

Offline

#14 2014-08-15 09:32:25

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: File transfer to Nexus 7 (2012)

Ok ... I will try the new rolling tonight when I have time and let you know .... I've been looking for an excuse to try out the new version .... smile

Offline

#15 2014-08-15 16:05:15

Guest
Guest

Re: File transfer to Nexus 7 (2012)

@Aleksej

Sorry, it was not on SliTaz, it was on another distro - just saying it did not work for me and my music player. It may have improved since then, but nothing I have tried will 'write' to my Creative Zen Touch.

Edit: I did try gMTP on another distro, but again, it would not 'write' to my Zen.

I am thinking it (my Zen) is not using the 'Industry Standard' MTP. sad

Edit2: I think I will try your version. smile

#16 2014-08-15 18:31:19

Guest
Guest

Re: File transfer to Nexus 7 (2012)

@Aleksej

GMTP does not run from the menu, and if I try running it from a terminal :-

Needs libusb-1.0.so.0 which can be downloaded/installed, and then requires libgconf-2.so.4 which is not downloadable

Any ideas?

P.S. This is a new rolling install tonight and your packages.

#17 2014-08-15 18:44:16

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: File transfer to Nexus 7 (2012)

http://pkgs.slitaz.org/search.sh?file=libgconf-2.so.4

Online

#18 2014-08-15 18:55:45

Guest
Guest

Re: File transfer to Nexus 7 (2012)

Figured it out - need to install GConf, libusb, and libid3tag as well.

GUI now starts up - next job  - try to connect my Zen. smile

#19 2014-08-15 23:13:02

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: File transfer to Nexus 7 (2012)

Fatmac,

Strange your words... That packages should install automatically. Did you install "my" gMTP not on SliTaz?

And now I want to share my happiness smile

gMTP now works in both sides for me: I can upload as well as download files.

Read tip here: http://www.maketecheasier.com/connect-galaxy-nexus-to-ubuntu/

Offline

#20 2014-08-16 08:14:26

Guest
Guest

Re: File transfer to Nexus 7 (2012)

Hi Aleksej, I downloaded and installed a fresh rolling, then copied your files and installed them, that was when I got told the other packages were needed. I worked out what gMTP dependencies were required and installed them, thats how I got it up and running. I have yet to test it, I need to find my power supply and cable for my Zen first.

#21 2014-08-16 09:38:38

Guest
Guest

Re: File transfer to Nexus 7 (2012)

Unfortunately for me -> No Raw Devices Found.

My Zen only seems to work on a Microsoft Windows machine using Creative software, which is 32 bit only!

(It is, supposedly, using MTP to transfer the files.)

Anyway, it gave me an excuse to re install SliTaz on an 8gb sdhc card to use on my netbook. smile

#22 2014-08-16 12:42:44

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: File transfer to Nexus 7 (2012)

fatmac,

Don't give up! wink

http://support.creative.com/kb/ShowArticle.aspx?sid=19287

For a ZEN Micro, ZEN Sleek, ZEN Touch and ZEN Xtra, the firmware version will show 2.XX.XX if the player has been upgraded into its MTP/PlaysForSure firmware. To check your player's firmware version number:

[*]Turn on your player.

[*]From the main menu, select System and Information.

So, what is your ZEN Touch version?

http://en.wikipedia.org/wiki/Creative_Zen

Current Players — ZEN Touch 2

The first ZEN with Android 2.1 on board. (Upgradeable to 2.2) Has a microSD card slot, Bluetooth, wifi, and is available in 8 GB with GPS, or 8 GB or 16 GB without GPS.[4] The player comes bundled with the popular EP-630 in-ear earphones from Creative. A GPS version is also available in the 8 GB capacity.

A firmware to update the player to Android 2.2 was released by Creative on the 26 of April. With the update, the ZEN Touch 2 now support Flash and also Audible content for certain region.

Discontinued players — Zen Touch

The redesigned 40 GB Zen Touch was released on June 7, 2004.[13] The model incorporated major changes in design, functionality and technology.

The Zen Touch has a smaller form factor and larger backlit blue display in a curved industrial design. In addition, the device uses a touch-sensitive vertical strip on the front of the unit for easier file navigation. These changes were enabled by the use of Hitachi's smaller 1.8-inch hard drives. The Touch is available in capacities of 20 and 40 GB. Unlike the previous two generations, the Zen Touch does not have a removable battery, and plays audio for approximately 24 hours. Even though the battery is not removable, it can be replaced rather easily since the case is closed with screws only and the battery attaches with a connector.

The Zen Touch has a brief uncredited appearance in Pepsi's new commercial which aired during Super Bowl XL.[14]

So, seems like Zen Touch not supports MTP, while Zen Touch 2 supports it.

http://askubuntu.com/questions/25571/how-can-i-get-the-creative-zen-touch-to-work

[c]$ lsusb
Bus 002 Device 004: ID 041e:4131 Creative Technology, Ltd Zen Touch (mtp)[/c]

What is your output of [c]lsusb[/c] command?

It is interesting for me, and I tried my Lenovo A760 in all existing modes, and here my outputs:

[c]Mass Storage (UMS)
Bus 001 Device 012: ID 17ef:7604 Lenovo

Mass Storage (UMS) + USB debug mode
Bus 001 Device 013: ID 17ef:7605 Lenovo

Media device (MTP)
Bus 001 Device 014: ID 17ef:760a Lenovo

Media device (MTP) + USB debug mode
Bus 001 Device 015: ID 17ef:760b Lenovo

Camera (PTP)
Bus 001 Device 016: ID 17ef:760c Lenovo

Camera (PTP) + USB debug mode
Bus 001 Device 017: ID 17ef:760d Lenovo[/c]
I unzipped /usr/share/misc/usb.ids.gz from usbids package. Seems like it knows about Vendor ID 17ef (Lenovo) but knows nothing about Device IDs 7604 and other. I added next lines to the end of Lenovo subsection:

[c]7604  A760 (Mass Storage mode)
    7605  A760 (Mass Storage mode, with debug)
    760a  A760 (MTP mode)
    760b  A760 (MTP mode, with debug)
    760c  A760 (PTP mode)
    760d  A760 (PTP mode, with debug)[/c]
After that I gzipped this file and tried again lsusb command. Now I get human readable names like this one:

[c]Bus 001 Device 028: ID 17ef:760a Lenovo A760 (MTP mode)[/c]
And I submitted all that numbers in the usb.ids authors web site here. Waiting for checking by administration (I know it may take a long long time).

Also I added my device in the /etc/udev/rules.d/69-libmtp.rules (shipped with libmtp package) to the end of Lenovo section:

[c]# Lenovo A760 (MTP mode)
ATTR{idVendor}=="17ef", ATTR{idProduct}=="760a", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
# Lenovo A760 (MTP mode + USB Debug Mode)
ATTR{idVendor}=="17ef", ATTR{idProduct}=="760b", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"[/c]
It works as before. And gMTP shows that my device is unknown as before too (but it works anyway). Seems like I should re-build libmtp with these changes.

PS. I think this article is partially useful too: https://bbs.archlinux.org/viewtopic.php?id=68587

It describes how to modify /etc/udev/rules.d/65-libmtp.rules (in our case it is 69-libmtp.rules).

But next part (with Amarok) is not so useful because we use gMTP instead.

Offline

#23 2014-08-16 14:04:57

Guest
Guest

Re: File transfer to Nexus 7 (2012)

The last time I got it configured, I was using gnomad2. I could only copy from it.

Creative Zen Touch 20gb - version: 1.01.03

idVendor=041e, idProduct=411b

Mfr=1, Product-2, SerialNumber=3

Product:Creative Zen Touch

Manufacturer:Creative Technology

SerialNumber:01012551a1038ffa

If I remember, the time before that, I had it configured, but could not do anything but list the music files from the command line.

I reckon it is just too old, the installation CD says 2004, so probably 10 years old, maybe I should bin it. smile

Edit: As I said above, there is a positive side, my netbook running on rolling again; I'll just use that as I don't walk around listening through earphones.

#24 2014-08-16 14:41:46

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: File transfer to Nexus 7 (2012)

fatmac,

Are you tried gnomad2 SliTaz package?

Also I can upgrade it from 2.9.4 to the latest 2.9.6 (released 2011-06-29) version with our updated libmtp.

Offline

#25 2014-08-16 17:10:29

TraceE
Member
Registered: 2014-02-02
Posts: 112

Re: File transfer to Nexus 7 (2012)

Thanks so much Aleksej ! ... Have just transferred a 650mb video file in both directions (upload and download) and deleted files from the device.

So it is working fine here on a rooted 2012 Nexus 7 ..... smile

Nice simple gui too.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.59 MiB (Peak: 1.77 MiB) ]