Bug 10571 - Dolphin can't access Galaxy S3
Summary: Dolphin can't access Galaxy S3
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: KDE maintainers
QA Contact:
URL:
Whiteboard: MGA4TOO
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2013-06-19 22:24 CEST by Christian Müller
Modified: 2016-12-30 22:54 CET (History)
6 users (show)

See Also:
Source RPM: dolphin-4.10.4-1.mga3
CVE:
Status comment:


Attachments
MTP working :) (432.81 KB, image/png)
2015-08-27 19:25 CEST, Julien Gouesse
Details

Description Christian Müller 2013-06-19 22:24:34 CEST
Description of problem:
Dolphin can't access a connected Galaxy S3 smartphone (Andriod 4.1.2 official), regardless if MTP, PTP or USB debugging is enabled. No error message, device is shown as mounted, but dolphin shows no files. In Mageia 2 it worked.

Version-Release number of selected component (if applicable):
Dolphin 2.2, KDE 4.10.4

How reproducible:
Attach smartphone with USB-cable, try to mount and open with dolphin

Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2013-07-12 18:33:50 CEST
you don't have an UMS mode ?
Comment 2 Christian Müller 2013-07-14 16:44:11 CEST
no, I can only switch between MTP and PTP, or enable debugging.
Comment 3 Christian Müller 2013-08-12 15:57:50 CEST
Just updatet to KDE 4.10.5 from updates_testing, no changes.

I noticed that even DigiKam can't access the PTP-Device. CPU-Load goes up to 100%, and nothing more.
Comment 4 Christian Müller 2013-08-15 16:38:45 CEST
Did some further testing: Dolphin and DigiKam even can't access my old Sony Cybershot when it's set to PTP-mode. Shotwell works fine, so it looks like a KDE-related problem with PTP devices.
Comment 5 Christian Müller 2013-08-18 16:54:29 CEST
Update: When launching Dolphin as root it works. Wrong permissions somewhere?
Comment 6 Christian Müller 2013-12-23 18:44:56 CET
This bug still persists in Mageia 4b2. Dolphin and DigiKam can't access PTP-devices, testet with Galaxy S3 smartphone and Sony Cybershot cam.
Comment 7 Damien Lallement 2013-12-24 05:32:05 CET
Can you try if it works on Mageia 4 beta 2 with GNOME ? To be sure that it's KDE related and not from libmtp. Thx.

CC: (none) => mageia

Comment 8 Frédéric "LpSolit" Buclin 2015-01-07 19:31:09 CET
I have the same problem with my Samsung Galaxy S5 mini and Mageia 4. When I plug my smartphone, Mageia offers me to open it with Dolphin, but Dolphin then displays this error:

"Le processus traitant le protocole mtp s'est arrêté de façon inattendue"

which means "the process which ran the mtp protocol stopped working in an unexpected way".

CC: (none) => LpSolit

Comment 9 Frédéric "LpSolit" Buclin 2015-01-07 19:31:52 CET
I use Dolphin 4.12.5.
Comment 10 Frédéric "LpSolit" Buclin 2015-01-07 20:24:40 CET
The full error message is:

$ mtpfs android
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 15
Attempting to connect device
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
Comment 11 David Walser 2015-01-07 20:49:06 CET
Yes, I don't know why the mtp stuff is still broken, when there's code out there (jmtpfs and go-mtpfs) that works.

Packaging jmtpfs would be nice (someone has done the work in Bug 7638 already but it's not in the repos), but Dolphin wouldn't benefit from that.

Version: 3 => Cauldron
Whiteboard: (none) => MGA4TOO

Comment 12 Martin Volf 2015-08-01 08:45:38 CEST
Hi,

I would like to put my experiences here too. On MGA5, KDE4 needs to be installed:
# urpmi libmtp9 mtpfs kio-mtp

Then the user must be in the group uucp:
usermod -a -G uucp <USER>

Restart a computer.

After that, modify a file /usr/share/apps/solid/actions/solid_mtp.desktop, where the line:
Exec=kioclient exec mtp:udi=%i/

replace with:
Exec=dolphin "mtp:/"

Now Dolphin is able to open a device from notification window.


What is an issue?:
- if you keep Dolphin opened (as user)
- open Krusader (as user)
- no access to device anymore, from Dolphin, Krusader

How to "repair"?:
- close all file managers
- disconnect a device and connect again
- open only one file manager

I am not sure, if we can do a reset of udev, when the smartphone is still connected with PC.

More information:
https://wiki.mageia.org/en/User:Jharms/File_Transfer_with_Android_Devices
http://translate.google.cz/translate?hl=cs&sl=cs&tl=en&u=http%3A%2F%2Fwiki.mageia.cz%2Fsoftware%3Aostatni%3Aprenos_souboru_mezi_mageiou_a_multimedialnim_zarizenim&sandbox=1
- take care, Google Translate changes command lines. Original in Czech lang. an URL is: http://wiki.mageia.cz/software:ostatni:prenos_souboru_mezi_mageiou_a_multimedialnim_zarizenim

CC: (none) => yullaw

Comment 13 Pierre Jarillon 2015-08-26 09:49:42 CEST
I have found the problem with other android smartphones. The user has not the perms to read the device which is mounted.

A solution is to use MCC -> Scurity -> Configure... -> parameters -> permissions -> add a rule (example for user pierre) :

/usr/bin/mount  	root 	root 	755  (force)	pierre:acl

It can be easier to do: 
echo -e "/usr/bin/mount\troot\troot\t755\tforce\tpierre:acl" >> /etc/security/msec/perms.conf

I don't know if it is the best solution, but it works fine.

This kind of bug is enough to lose a great number of mageia users.

CC: (none) => jarillon

Comment 14 Pierre Jarillon 2015-08-26 10:01:21 CEST
This bug must not be linked to dolphin but related to installation of Mageia.

The workaround (Comment 13) has been tested with Mageia 5, 2 PC and 2 smartphones.
Comment 15 David Walser 2015-08-27 16:04:15 CEST
(In reply to Pierre Jarillon from comment #13)
> This kind of bug is enough to lose a great number of mageia users.

No, it's not specific to Mageia (although some distros have packaged jmtpfs), and it's not about permissions, it's just that mtpfs is broken.
Comment 16 Pierre Jarillon 2015-08-27 16:27:10 CEST
> No, it's not specific to Mageia (although some distros have packaged jmtpfs), and it's not about permissions, it's just that mtpfs is broken.

I am sure you are true but what mageia users need is a working solution. If not, they are disappointed, they return to Windows and say that Linux is only for geeks.
Comment 17 Pierre Jarillon 2015-08-27 16:28:20 CEST
It seems to be the same than
https://bugs.mageia.org/show_bug.cgi?id=7638 ?
Comment 18 Julien Gouesse 2015-08-27 17:28:20 CEST
(In reply to Pierre Jarillon from comment #16)
> I am sure you are true but what mageia users need is a working solution. If
> not, they are disappointed, they return to Windows and say that Linux is
> only for geeks.

The maintainers do their best, there is no need to use this kind of argument to obtain anything. I had this problem for several years, I just moved the content from the phone to the card and I used a 6 in 1 card reader as a workaround.

CC: (none) => gouessej

Comment 19 David Walser 2015-08-27 18:02:45 CEST
(In reply to Julien Gouesse from comment #18)
> (In reply to Pierre Jarillon from comment #16)
> > I am sure you are true but what mageia users need is a working solution. If
> > not, they are disappointed, they return to Windows and say that Linux is
> > only for geeks.
> 
> The maintainers do their best, there is no need to use this kind of argument
> to obtain anything. I had this problem for several years, I just moved the
> content from the phone to the card and I used a 6 in 1 card reader as a
> workaround.

Exactly, and honestly, even when you get it working (like with jmtpfs), MTP is still absolutely horrible.  It does not allow random access or seeking in files or transfer of metadata-only, so for instance, if you want to sync a directory through MTP, you have to retransfer everything every time.  It's a really slow, horrible, crappy, badly designed and implemented protocol.  So, because of this, people have found other solutions that work a lot better, like installing an SSH server on their phone and using scp or sftp, or using things like KDE connect that can transfer data over a LAN connection.
Comment 20 Pierre Jarillon 2015-08-27 19:10:32 CEST
d=10571

--- Comment #19 from David Walser <luigiwalser@yahoo.com> ---
(In reply to Julien Gouesse from comment #18)
> (In reply to Pierre Jarillon from comment #16)
> > I am sure you are true but what mageia users need is a working solution. If
> > not, they are disappointed, they return to Windows and say that Linux is
> > only for geeks.
> 
> The maintainers do their best, there is no need to use this kind of argument
> to obtain anything. I had this problem for several years, I just moved the
> content from the phone to the card and I used a 6 in 1 card reader as a
> workaround.

Exactly, and honestly, even when you get it working (like with jmtpfs), MTP is
still absolutely horrible.  It does not allow random access or seeking in files
or transfer of metadata-only, so for instance, if you want to sync a directory
through MTP, you have to retransfer everything every time.  It's a really slow,
horrible, crappy, badly designed and implemented protocol.  So, because of
this, people have found other solutions that work a lot better, like installing
an SSH server on their phone and using scp or sftp, or using things like KDE
connect that can transfer data over a LAN connection.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Comment 21 Pierre Jarillon 2015-08-27 19:11:23 CEST
Thanks very much for your reply. Now I can understand...
But when users want to see their photos, they must find a solution. It is not always possible to remove the card from the smartphone.

As we don't expect a quick good solution, we have to offer a set of workarounds to make the copy of pictures possible and the Mageia users will be happy.
Comment 22 Julien Gouesse 2015-08-27 19:24:40 CEST
If there is a slot to insert a microSD card, I don't see how it would be impossible to remove it from the device.

I don't see what you mean as it works for me. I'm going to upload a screen capture.
Comment 23 Julien Gouesse 2015-08-27 19:25:16 CEST
Created attachment 6976 [details]
MTP working :)
Comment 24 Julien Gouesse 2015-08-27 19:28:30 CEST
I can't see the files in the phone, I can only see those in the card and the transfers don't seem to work.
Comment 25 Samuel Verschelde 2016-10-15 23:12:15 CEST
Connecting to my phone seems to work (however crappy the MTP protocol is), but maybe it depends on the phone. What's the status of this bug in current cauldron?
Samuel Verschelde 2016-10-15 23:12:37 CEST

Keywords: (none) => NEEDINFO
Assignee: bugsquad => kde

Comment 26 Nicolas Lécureuil 2016-12-30 22:54:19 CET
Closing, please reopen if still valid.

Status: NEW => RESOLVED
CC: (none) => mageia
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.