Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 12 Nov 2019, 01:25
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Media Transfer Protocol MTP (SOLVED)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 17 [253 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, ..., 15, 16, 17 Next
Author Message
can8v

Joined: 15 Jul 2006
Posts: 584
Location: Yuba City, CA

PostPosted: Mon 27 Jan 2014, 18:42    Post subject:  

Back to the subject of go-mtpfs
This is the only usage instructions I can find for it.
Quote:

USAGE

mkdir xoom
go-mtpfs xoom &
cp -a ~/Music/Some-Album xoom/Music/
fusermount -u xoom

After a file is closed (eg. if "cp" completes), it is safe to unplug
the device; the filesystem then will continue to function, but
generates I/O errors when it reads from or writes to the device.

I found that here: https://github.com/hanwen/go-mtpfs
I have a couple questions.
1.)Does anyone have any links to any other usage instructions?
2.)I noticed that Tempestuous posted some options in this thread, does anybody know where those came from?
3.) Has anybody figured out if it is even possible to mount more than one device at a time?
Back to top
View user's profile Send private message Visit poster's website 
Sylvander

Joined: 15 Dec 2008
Posts: 4422
Location: West Lothian, Scotland, UK

PostPosted: Mon 27 Jan 2014, 18:52    Post subject:  

can8v wrote:
The device is not being mounted elsewhere. It simply isn't being mounted. I ran into a similar issue in developing my mount and unmount scripts. What is happening is that 01micko's script is seeing that dmesg is detecting the device and the script is able to pull the manufacturer and product information from the log, but go-mtpfs is not recognizing it as an MTP device and therefore generates the message you are seeing rather than mounting it using FUSE. Hope that makes sense. This will happen anytime somebody plugs in a nonMTP device or an MTP device that go-mtpfs doesn't recognize as an MTP device.

Understood.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8726
Location: qld

PostPosted: Tue 28 Jan 2014, 00:29    Post subject:  

New version.

If you are new to this thread please read right through it for valuable insight.

Updated the status icon with calls to filemanager in the right click menu(only tested on rox at this stage), the log and the GPL2 licence. Also added the device name to the unmount icon in that menu.

In the main program I have tried to trap every instance of where something should not get mounted and exit the program with an error message. I have also put a filter in for I-{pad,phone,pod} with an exit message. Also put that filter in the rules. There are probably still some bugs lurking, just report them.

If there are filesystem error bugs then report them to https://github.com/hanwen/go-mtpfs with an accurate description. Commandline output is best for this.. type go-mtpfs --help for options.

Known issues

    -sometimes rox doesn't refresh right, a bug in rox I think
    -if pupcamera pops up patch it manually from the info provided in previous pages
    -windows phones don't work (yet?)
    -blackberrys??? (the pad thingy doesn't work as of Billtoo's report earlier)
    -there shouldn't be any trouble with android devices from 4,0 onwards. If there is I want to know


The status icon is recommended.

EDIT: bugfix version fixes bad backward compatibility with Bash 3.
mtp_detect-0.11-exper-noarch.pet
Description  main pet, don't forget go-mtpfs from tempestuous, links on first page - REQUIRED
pet

 Download 
Filename  mtp_detect-0.11-exper-noarch.pet 
Filesize  20.05 KB 
Downloaded  629 Time(s) 
mtpstatus-0.3-i486.pet
Description  32 bit status icon for most puppies
pet

 Download 
Filename  mtpstatus-0.3-i486.pet 
Filesize  4.08 KB 
Downloaded  565 Time(s) 
mtpstatus-0.3-x86_64.pet
Description  64 bit status icon for Fatdog64, LHP, slacko64 ONLY
(xz compressed so shouldn't install in normal pups)
pet

 Download 
Filename  mtpstatus-0.3-x86_64.pet 
Filesize  3.5 KB 
Downloaded  335 Time(s) 
mtpstatus-0.3-src.tar.bz2
Description  Status icon source code
bz2

 Download 
Filename  mtpstatus-0.3-src.tar.bz2 
Filesize  1.88 KB 
Downloaded  294 Time(s) 

_________________
Puppy Linux Blog - contact me for access

Last edited by 01micko on Tue 28 Jan 2014, 06:30; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 8726
Location: qld

PostPosted: Tue 28 Jan 2014, 01:00    Post subject:  

Geoffrey wrote:
mtp_detect-0.9-exper-noarch.pet, script mtpdevice, Line 169 as an error, needs a space after the first ampersand
Code:
go-mtpfs /mnt/MTPdevice &>>/tmp/MTP.log & # added log
I missed that Geoffrey. I wonder why? a bash 3 thing? If I take it out then it fails for me. Might have to add a test for bash version.
_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
Sylvander

Joined: 15 Dec 2008
Posts: 4422
Location: West Lothian, Scotland, UK

PostPosted: Tue 28 Jan 2014, 04:39    Post subject:  

1.
headfound wrote:
I have accessed my Nokia Lumia 510 using pupcamera successfully.

a. Tried pupcamera, and it worked 1st time, BUT...
Something began to misbehave as follows:
I was successfully viewing/displaying photos held on the martphone...
Then round about the 5th photo, suddenly all began to report failure to display.
Tried various things [like rebooting] to get it to work, but without success.
Upon reboot, the file content could no longer be seen [the folder was empty; had no sub-folders].
PLUS...

b. Only photo files could be seen at the successful 1st attempt.
I'd like to see [and manipulate] ALL of the content.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 4422
Location: West Lothian, Scotland, UK

PostPosted: Tue 28 Jan 2014, 05:59    Post subject:  

01micko wrote:
-if pupcamera pops up patch it manually from the info provided in previous pages

a. To eliminate the old in preparation for the new...
I deleted my pupsave file, and restored the copy taken prior to installation.
Then...

b. Installed the latest:
go-mtpfs-20130628.pet
mtp_detect-0.10-exper-noarch.pet
mtpstatus-0.3-i486.pet

/usr/sbin/pupcamera [swapped in this which has suggested code addition]

c. How do I "patch it manually"?
When I connected the "Samsung Galaxy tab-2", pupcamera auto-ran rather than MTP.
So...
Used this code:
Code:
# cd /mnt
# go-mtpfs MTPdevice
2014/01/28 09:52:55 starting FUSE 70ad1f3 (2013-02-24 20:42:03 +0100)
_

...And got a display of the folder/file content of the tab-2.
But there is no command prompt at the bottom...
Only a flashing red underscore/cursor...
As though something is in progress but not completing.
So how should I use the unmount command as follows?
Code:
fusermount -u MTPdevice

So I shutdown Puppy and disconnected the tablet.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8726
Location: qld

PostPosted: Tue 28 Jan 2014, 06:32    Post subject:  

01micko wrote:

Like so:
Code:
PIDOFMTP=`pidof mtpdevice`
[ "$PIDOFMTP" ] && exit # exits if mtpdevice process starts to tame udev rule 88-puppy-autodetect.rules

export TEXTDOMAIN=pupcamera


Sylander, just above where it says export TEXTDOMAIN= .. put the 2 new lines.. (in /usr/sbin/pupcamera)
Code:
PIDOFMTP=`pidof mtpdevice`
[ "$PIDOFMTP" ] && exit # exits if mtpdevice process starts to tame udev rule 88-puppy-autodetect.rules


-------------------------------------------------------------------------------------------------

Geoffrey -et al

I have fixed the bash 3 bug. It was just my poor backward compatible code. It should log now too. See my post a few above.

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
Billtoo


Joined: 07 Apr 2009
Posts: 3680
Location: Ontario Canada

PostPosted: Tue 28 Jan 2014, 07:10    Post subject: Media Transfer Protocol MTP  

I tried the new 0.11 pet in peebee's lxpup and it worked without error, transferred an album to the nexus7 without problem.

EDIT:
It also works fine in Slacko565.
screenshot5.png
 Description   
 Filesize   75.01 KB
 Viewed   1505 Time(s)

screenshot5.png


Last edited by Billtoo on Tue 28 Jan 2014, 08:03; edited 1 time in total
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 4422
Location: West Lothian, Scotland, UK

PostPosted: Tue 28 Jan 2014, 07:40    Post subject:  

01micko wrote:
Sylander, just above where it says export TEXTDOMAIN= .. put the 2 new lines.. (in /usr/sbin/pupcamera)
Code:
PIDOFMTP=`pidof mtpdevice`
[ "$PIDOFMTP" ] && exit # exits if mtpdevice process starts to tame udev rule 88-puppy-autodetect.rules

That code is already there [I believe].
Here it is as already existing within /usr/sbin/pupcamera.
I copied it from the file and pasted it here.
Code:
PIDOFMTP=`pidof mtpdevice`
[ "$PIDOFMTP" ] && exit # exits if mtpdevice process starts to tame udev rule 88-puppy-autodetect.rules

export TEXTDOMAIN=pupcamera
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5472
Location: Australia

PostPosted: Tue 28 Jan 2014, 10:20    Post subject:  

Sylvander wrote:
Code:
# go-mtpfs MTPdevice
2014/01/27 15:57:43 detect failed: no MTP devices found

OK, so go-mtpfs doesn't work with Windows Phones. I did some more Googling, and I see that gphotofs (not gphoto) is reported to work in some cases with Windows phones. So we might as well explore that avenue ...
Now attached is gphotofs-0.5, which includes the latest libgphoto2-2.5.3.1 library, plus full FUSE libraries.
This is of particular interest to owners of Windows Phones, but anyone with an MTP device can try it ... and it might even work with Billtoo's Blackberry PlayBook?

Instructions:
Download and install this dotpet -
http://www.smokey01.com/tempestuous/gphotofs-0.5.pet
Connect your phone to the USB port of your Puppy computer. Wait a few seconds.
Open a console and run these 2 commands -
Code:
cd /mnt
gphotofs MTPdevice

Hopefully you will see a successful connection reported.
Navigate to /mnt/MTPdevice with ROX.

As before, it's important to unmount the phone before disconnecting it, with this command -
Code:
fusermount -u MTPdevice
Back to top
View user's profile Send private message 
Billtoo


Joined: 07 Apr 2009
Posts: 3680
Location: Ontario Canada

PostPosted: Tue 28 Jan 2014, 10:58    Post subject:  

tempestuous wrote:


Instructions:
Download and install this dotpet -
http://www.smokey01.com/tempestuous/gphotofs-0.5.pet
Connect your phone to the USB port of your Puppy computer. Wait a few seconds.
Open a console and run these 2 commands -
Code:
cd /mnt
gphotofs MTPdevice

Hopefully you will see a successful connection reported.
Navigate to /mnt/MTPdevice with ROX.



I get an error when I try to run the program;
Screenshot_2014-01-28_101152.jpg
 Description   
 Filesize   20.13 KB
 Viewed   1453 Time(s)

Screenshot_2014-01-28_101152.jpg

Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 4422
Location: West Lothian, Scotland, UK

PostPosted: Tue 28 Jan 2014, 11:55    Post subject:  

tempestuous wrote:
Open a console and run these 2 commands -
Code:
cd /mnt
gphotofs MTPdevice

Hopefully you will see a successful connection reported.
Navigate to /mnt/MTPdevice with ROX.

As before, it's important to unmount the phone before disconnecting it, with this command -
Code:
fusermount -u MTPdevice

a. There was no need for me to install the pet you supplied for gphotofs, because my Puppy already had it installed.
So...

b. I just ran the commands you supplied, and they worked.
I was able to see folders [under /mnt/MTPdevice] holding photo files, and display various photos.
As I said before, though: I'd like to display ALL of the folder/file system, not only the photos.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8726
Location: qld

PostPosted: Tue 28 Jan 2014, 15:43    Post subject:  

@Billtoo,

Only yesterday I uploaded to $your-preferred-repo/pet_packages-slacko6414 the latest libgphoto, gphoto2 and gphotofs. for Slacko64 (only). You could give those a shot.

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
Billtoo


Joined: 07 Apr 2009
Posts: 3680
Location: Ontario Canada

PostPosted: Tue 28 Jan 2014, 16:31    Post subject:  

01micko wrote:
@Billtoo,

Only yesterday I uploaded to $your-preferred-repo/pet_packages-slacko6414 the latest libgphoto, gphoto2 and gphotofs. for Slacko64 (only). You could give those a shot.


I downloaded and installed the pets from ibiblio, then entered the
commands in the terminal.
I had the BlackBerry PlayBook tablet plugged it.
slacko64screen.jpg
 Description   
 Filesize   14.23 KB
 Viewed   1408 Time(s)

slacko64screen.jpg

Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5472
Location: Australia

PostPosted: Tue 28 Jan 2014, 20:10    Post subject:  

Billtoo, the mountpoint, /mnt/MTPdevice, is missing.
This mountpoint is created by my dotpet(s) but obviously if you don't install my dotpet(s) you must create the mountpoint, yourself, as such -
Code:
mkdir /mnt/MTPdevice

then proceed with the instructions -
Code:
cd /mnt
gphotofs MTPdevice
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 8 of 17 [253 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, ..., 15, 16, 17 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0919s ][ Queries: 12 (0.0305s) ][ GZIP on ]