On 04/26/2018 02:19 PM, deloptes wrote:
Dr. Nikolaus Klepp wrote:

Hi!

Am Donnerstag, 26. April 2018 schrieb deloptes:
Hi,
Is MTP well supported?
I have exotic Sailfish phone and when connected it is recognized as
Camera. When I try to write a file, it tells me it can not write to
Camera, as it is unsupported.

What do you think I should do?

thanks for your ideas in advance

regards
Can you persuade the phone to emulate some other kind of protocol? USB
mass storage would be a nobrainer, if the phone supports it.

If it is possible I don't know how, but my bet is it is something of those
new fashion things. There is no USB offered: developers mode (which is
networking over usb), I need to check if I disable it it would change
behaviour.

Anyway the question is , because I looked in  tdebase-tdeio-plugins-trinity
and I found nothing regarding MTP:

Description: core I/O slaves for TDE
 This package includes the base tdeioslaves. They include, amongst many
 others, file, http, ftp, smtp, pop and imap.
 .
 It also includes the media tdeioslave, which handles removable devices,
 and which works best with procfs, udev, and udisks2/udisks/pmount. Media
 also extends the functionality of many other tdeioslaves. To use this
 service, please make sure that your user is a member of the plugdev
 group.


Another option would be that the phone is incorrectly handled as camera
device and I need to change or add somewhere the vendor and product id, so
that it recognizes it as USB. Not even sure if the phone would support
this - I will try tomorrow with wi-n-do in the office.

So the question is if someone where has experience with MTP in TDE - would
help me rule out this part of the game.

thanks


"write a file" ? upload a photo to the phone?

Hope this is on topic.

 I use digikam to access my photos on my phone,or I did until I "upgraded" my phone and that feature is gone. Digikam depends on gphoto2, gphoto has some command line tools to communicate with devicesm

I have not tried adding my device to any file list of devices, ie usb.

$ gphoto2 -a
Abilities for camera             : Motorola Moto G (ID2)
Serial port support              : no
USB support                      : yes
Capture choices                  :
                                 : Capture not supported by the driver
Configuration support            : no
Delete selected files on camera  : yes
Delete all files on camera       : no
File preview (thumbnail) support : no
File upload support              : yes