Bothgcmartin wrote:@01Micko: Did you test from Slacko64 or Slacko?
Not yet.gcmartin wrote:Another question for anyoneThanks in advance
- Has this advanced far enough along to be a PET?
Bothgcmartin wrote:@01Micko: Did you test from Slacko64 or Slacko?
Not yet.gcmartin wrote:Another question for anyoneThanks in advance
- Has this advanced far enough along to be a PET?
I tried the pets in Slacko64 and they work with my nexus 7.smokey01 wrote:Thanks for this.
It works great on Slacko64.
I tried it in FatDog-611, not so good although it did work. A rule had to be created each time. It did not automatically detect the device. It didn't identify my Samsung Galaxy S4 but allowed me to transfer, play and view files nevertheless.
A much needed piece of software.
Code: Select all
dmesg | tail -n6
gcmartin wrote:Would it help if everyone who has a MTP device forward their IDs somewhere so that mounting could occur by deviceID?
As I mentioned earlier, gnomad2 has a udev rule (69-libmtp.rules) which contains a comprehensive list of MTP devices -01micko wrote:Should be able to auto generate specific rules for a device as it is plugged. So no need of stats.
...
The program groks dmesg for your device info and translates that to a udev rule for automount. A unique rule is needed for each device.
Yes, as I reported in the gnomad2 forum thread, Samsung product ID 0x6860 is a generic identifier for smart-devices in "MTP" mode.01micko wrote:Note that the Note and the Tab mount under the same rule ...
... you can see the same device ID but different serial number for Note and Tab
This depends on how the device reports itself to the operating system, as found in -01micko wrote:Note that the Note and the Tab mount under the same rule.. sadly pupcamera pops up with those too
Sorry, but I laughed when I read this - MTP is Microsoft's proprietary protocol. There's no way Apple would use it!gcmartin wrote:This would be interesting to see if an iPhone or iPad would mount in any distro which uses this protocol.
do not have save as option on android firefox.smokey01 wrote:Have you tried right clicking and save file as.
Here they are: http://www.smokey01.com/software/system
As we all know Puppy is cut down, not that the file is overkill, its only 99k, and will probably be smaller once I figure out an algorithm to "puppyfy" .. that is, replace everything after the vendor and device ids with stuff puppy understands, I wont be doing that manually to 1000+ lines.tempestuous wrote:As I mentioned earlier, gnomad2 has a udev rule (69-libmtp.rules) which contains a comprehensive list of MTP devices -01micko wrote:Should be able to auto generate specific rules for a device as it is plugged. So no need of stats.
...
The program groks dmesg for your device info and translates that to a udev rule for automount. A unique rule is needed for each device.
http://www.murga-linux.com/puppy/viewto ... 645#752645
Would it help to use this instead of trying to auto-generate a udev rule?
Well it does rely on some user knowledge of their device, either they know its MTP or android. I have designed the program to be very maintainable so adding in support for a good set of udev rules is feasible and keeping the feature of being able to add your own makes it future proof.tempestuous wrote:The auto-generation process, as I understand it, is somewhat flawed because it seems to assume that whatever device the user plugs in is actually MTP-compatible? At least with a predefined set of device ID's, MTP-compatibility is absolute.
Well that's a positive thing, and it seems you understand the PupCamera stuff better than I, but let me point out (if you don't know it already) that udev rule is looking for an InterfaceClass value of "6" or an InterfaceSubClass value of "1".01micko wrote:that file, after some study has revealed to me some possibilities to consider for adjustments to the 88-puppy-autodetect.rules (pupcamera bug) which generally accepts anything that has some sort of filesystem as a camera!
Since the method of interfacing cameras is discussed here, I will pop in to explain what I was thinking about in that area.tempestuous wrote: When I plug in my Huawei Android phone, PupCamera does not auto-launch. So out of interest I looked at the InterfaceClass value - it's "08" and my InterfaceSubClass value is "06".
@TempestuousI see that people here seem to prefer the convention of using /mnt/MTPdevice instead of my original suggestion of /root/MTP
so I have repackaged my dotpets with this directory, and uploaded them to a different location -
www.smokey01.com/tempestuous/go-mtpfs-20130628.pet
http://www.smokey01.com/tempestuous/go- ... -64bit.pet
I have also updated my earlier instructions to include the /mnt/MTPdevice mountpoint.
Interesting. Since neither cameras nor mtp devices are mounted as block devices its probably a bit out of the scope of pmount. I like the desktop icon idea.Moose On The Loose wrote: From the user's point of view, a camera is a thing that has some files on it. In this case, they just happen to be photos. When the camera is plugged in, the situation should be the same as for when a USB memory stick is plugged in. An icon should appear on the desktop and an device should appear in pmount.
Code: Select all
sed -i 's|SYMLINK.*|ACTION=="add"\, RUN\+="\/usr\/sbin\/pupautodetect android\-device"|g' ./69-libmtp.rules
Yes. Unfortunately a lot of Samsung devices have the InterfaceClass value of "6" and InterfaceSubClass of "1".tempestuous wrote:Well that's a positive thing, and it seems you understand the PupCamera stuff better than I, but let me point out (if you don't know it already) that udev rule is looking for an InterfaceClass value of "6" or an InterfaceSubClass value of "1".
When I plug in my Huawei Android phone, PupCamera does not auto-launch. So out of interest I looked at the InterfaceClass value - it's "08" and my InterfaceSubClass value is "06".
Code: Select all
# lsusb -d 04e8:6860 -v | grep bInterface #Samsung Galaxy Tab 3
bInterfaceNumber 0
bInterfaceClass 6 Imaging ##################
bInterfaceSubClass 1 Still Image Capture ##############
bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
bInterfaceNumber 0
bInterfaceClass 6 Imaging
bInterfaceSubClass 1 Still Image Capture
bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
bInterfaceCount 2
bInterfaceNumber 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
bInterfaceNumber 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
Code: Select all
PIDOFMTP=`pidof mtpdevice`
[ "$PIDOFMTP" ] && exit # exits if mtpdevice process starts to tame udev rule 88-puppy-autodetect.rules