Re: [gentoo-user] Re: android and mtp

2012-12-24 Thread Daniel Frey
On 12/23/2012 03:22 PM, luis jure wrote:
> well, it seems i have been very lucky indeed. i just emerged jmtpfs as per
> mark's suggestion, and it just worked. i just created a /media/galaxy
> directory, and an entry in fstab (like yours, but with jmtpfs instead of
> mtpfs) and that was it. now i can simply mount /media/galaxy.
> 
> and the best, for those of you using xfce and thunar, in the "multimedia"
> tab of preferences -> advanced -> volume manager, i clicked the "portable
> music players" check box, and added the command "mount /media/galaxy/".
> now when i connect my phablet it is automatically mounted, and i can
> umount/eject it from thunar. couldn't be easier, a perfect solution for my
> needs!
> 
> 
> best,
> 
> 
> lj
> 

I just removed mtpfs and installed jmtpfs from the poly-c overlay, in
order to get access to my external SD card in my new Galaxy S3. It was
far easier to get to work than mtpfs - and so far jmtpfs hasn't
segfaulted yet. Apparently mtpfs only sees the internal SD and not the
external one.

Trying to get some music on there so I can bring my bluetooth speaker to
work so I have something to listen to while I work.

It's just me so I don't care too much about automounting, I just put an
entry in /etc/fstab and mount it manually when I need to update something.

Dan



Re: [gentoo-user] Re: android and mtp

2012-12-24 Thread Michael Mol
On Mon, Dec 24, 2012 at 1:17 PM, Grant Edwards
 wrote:
> On 2012-12-24, Nilesh Govindrajan  wrote:
>> On Monday 24 December 2012 09:24:16 AM IST, Grant Edwards wrote:
>>> I'm glad they chose MTP: I want my phone to continue to work while I'm
>>> transferring files.  In order to mount the filesystem via USB, the
>>> phone would have to unmount it (which means it's nothing but a flash
>>> drive).  In order to mount the filesystem via USB, it also means
>>> they'd be forced to use VFAT for the Linux root filesystem, and that
>>> sucks bad.
>>>
>>
>> They still use VFAT for the so called sdcard (my Xperia S has internal
>> storage, not extensible).
>
> That's understandable.  But for phones with only a single flash device
> (like my Nexus Galaxy), using MTP is the only sensical thing to do.
> If you want to access only the SD card, then VFAT and USB mass storage
> works (well, it works as well as VFAT allows).

To a very limited extent. If you have running programs on the phone,
they may very well depend on being able to write to the SD card, and
may crash if the SD card is removed. In Android, there is _no_
internal storage space for application data; only application code. If
an application is supposed to retain data, it needs to be able to put
it on the SD card.

Similarly, it's very common to move user-installed applications from
internal memory to the phone (for many apps, this doesn't require
rooting the phone). This is problematic if the filesystem is yanked
out from under them while they're running.

VFAT is not designed for concurrent access, and should not be used if
MTP can be made to work. MTP is there specifically to allow the
filesystem to be available to multiple consumers...that of the device
and that of the machine the device is plugged into.

--
:wq



[gentoo-user] Re: android and mtp

2012-12-24 Thread Grant Edwards
On 2012-12-24, Nilesh Govindrajan  wrote:
> On Monday 24 December 2012 09:24:16 AM IST, Grant Edwards wrote:
>> On 2012-12-23, luis jure  wrote:
>>> on 2012-12-22 at 17:13 Alan McKinnon wrote:
>>>
 Now, imagine you are the guy at Samsung deciding what features the S2
 will support. Which option you gonna pick?
>>>
>>> yeah, you're right, i guess. but for once i'd like the guys at the
>>> corporations to think like me, and not to be forced to think like
>>> them...
>>
>> I'm glad they chose MTP: I want my phone to continue to work while I'm
>> transferring files.  In order to mount the filesystem via USB, the
>> phone would have to unmount it (which means it's nothing but a flash
>> drive).  In order to mount the filesystem via USB, it also means
>> they'd be forced to use VFAT for the Linux root filesystem, and that
>> sucks bad.
>>
>
> They still use VFAT for the so called sdcard (my Xperia S has internal 
> storage, not extensible).

That's understandable.  But for phones with only a single flash device
(like my Nexus Galaxy), using MTP is the only sensical thing to do.
If you want to access only the SD card, then VFAT and USB mass storage
works (well, it works as well as VFAT allows).

-- 
Grant




Re: [gentoo-user] Re: android and mtp

2012-12-23 Thread Nilesh Govindrajan
On Monday 24 December 2012 09:24:16 AM IST, Grant Edwards wrote:
> On 2012-12-23, luis jure  wrote:
>> on 2012-12-22 at 17:13 Alan McKinnon wrote:
>>
>>> Now, imagine you are the guy at Samsung deciding what features the S2
>>> will support. Which option you gonna pick?
>>
>> yeah, you're right, i guess. but for once i'd like the guys at the
>> corporations to think like me, and not to be forced to think like
>> them...
>
> I'm glad they chose MTP: I want my phone to continue to work while I'm
> transferring files.  In order to mount the filesystem via USB, the
> phone would have to unmount it (which means it's nothing but a flash
> drive).  In order to mount the filesystem via USB, it also means
> they'd be forced to use VFAT for the Linux root filesystem, and that
> sucks bad.
>

They still use VFAT for the so called sdcard (my Xperia S has internal 
storage, not extensible).

--
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Re: android and mtp

2012-12-23 Thread Grant Edwards
On 2012-12-23, luis jure  wrote:
> on 2012-12-22 at 17:13 Alan McKinnon wrote:
>
>>Now, imagine you are the guy at Samsung deciding what features the S2
>>will support. Which option you gonna pick?
>
> yeah, you're right, i guess. but for once i'd like the guys at the
> corporations to think like me, and not to be forced to think like
> them...

I'm glad they chose MTP: I want my phone to continue to work while I'm
transferring files.  In order to mount the filesystem via USB, the
phone would have to unmount it (which means it's nothing but a flash
drive).  In order to mount the filesystem via USB, it also means
they'd be forced to use VFAT for the Linux root filesystem, and that
sucks bad.

-- 
Grant






Re: [gentoo-user] Re: android and mtp

2012-12-23 Thread luis jure
on 2012-12-22 at 19:55 Daniel Frey wrote:

> I really struggled with my Nexus 7 and mtpfs. I did finally get it to
> work, 

well, it seems i have been very lucky indeed. i just emerged jmtpfs as per
mark's suggestion, and it just worked. i just created a /media/galaxy
directory, and an entry in fstab (like yours, but with jmtpfs instead of
mtpfs) and that was it. now i can simply mount /media/galaxy.

and the best, for those of you using xfce and thunar, in the "multimedia"
tab of preferences -> advanced -> volume manager, i clicked the "portable
music players" check box, and added the command "mount /media/galaxy/".
now when i connect my phablet it is automatically mounted, and i can
umount/eject it from thunar. couldn't be easier, a perfect solution for my
needs!


best,


lj



Re: [gentoo-user] Re: android and mtp

2012-12-22 Thread Daniel Frey
On 12/22/2012 03:32 PM, Grant Edwards wrote:
> On 2012-12-21, Neil Bothwick  wrote:
>> On Fri, 21 Dec 2012 16:19:10 -0600, Paul Hartman wrote:
>>
>>> I think you can use mtpfs and then browse it like any other disk.
> 
> 
>> I found that to be rather fragile, jmtpfs works far better for me, with a
>> Galaxy S3 and a Nexus 7.
> 
> I couldn't get mtpfs to work either, and I've seen a lot of reports
> that it's flakey.
> 
> I second the recommendation for jmtpfs (I'm using version 0.4).  I've
> had zero problems with my Nexus Galaxy and jmtpfs.
> 

I really struggled with my Nexus 7 and mtpfs. I did finally get it to
work, posted under the Nexus 7 thread on the forums:

http://forums.gentoo.org/viewtopic-p-7135656.html#7135656

I was getting a reliable connection and 8-9MB/sec transfer rate to my
device. I had to try all sorts of things to try to get the thing to
work. Miraculously, I got it to work after trying many things.

I specifically had:

* Searching for mtpfs ...
[IP-] [  ] sys-fs/mtpfs-1.0:0


installed.

I put an entry in /etc/fstab and manually mount it when needed:
mtpfs   /mnt/nexus7 fuse
user,noauto,allow_other 0 0

I remember trying for weeks to get this to work, I don't know if I just
lucked out.

Dan



Re: [gentoo-user] Re: android and mtp

2012-12-22 Thread Nilesh Govindrajan
On Sunday 23 December 2012 05:02:17 AM IST, Grant Edwards wrote:
> On 2012-12-21, Neil Bothwick  wrote:
>> On Fri, 21 Dec 2012 16:19:10 -0600, Paul Hartman wrote:
>>
>>> I think you can use mtpfs and then browse it like any other disk.
>
>
>> I found that to be rather fragile, jmtpfs works far better for me, with a
>> Galaxy S3 and a Nexus 7.
>
> I couldn't get mtpfs to work either, and I've seen a lot of reports
> that it's flakey.
>
> I second the recommendation for jmtpfs (I'm using version 0.4).  I've
> had zero problems with my Nexus Galaxy and jmtpfs.
>

MTP never worked for me.
I use the FTP server with ES File Explorer over USB Tethering.
The process is a bit clumsy, but works at USB transfer speeds.

Disable wifi, connect usb and enable usb tethering. Then start ES FTP 
server and connect to it using the address shown.
:D :D

--
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Re: android and mtp

2012-12-22 Thread Grant Edwards
On 2012-12-21, Neil Bothwick  wrote:
> On Fri, 21 Dec 2012 16:19:10 -0600, Paul Hartman wrote:
>
>> I think you can use mtpfs and then browse it like any other disk.


> I found that to be rather fragile, jmtpfs works far better for me, with a
> Galaxy S3 and a Nexus 7.

I couldn't get mtpfs to work either, and I've seen a lot of reports
that it's flakey.

I second the recommendation for jmtpfs (I'm using version 0.4).  I've
had zero problems with my Nexus Galaxy and jmtpfs.

-- 
Grant