Package: libmtp-common
Version: 1.1.13-1

We got a bug report by one of our users not being able to open (mount) an 
Android phone via mtp on the Plasma desktop. Upon researching it does not 
happen on all MTP devices (Jolla Phone opens just fine via mtp) but some of 
them (basically many many Android devices).

The problem seems to be in connection with linux kernels newer than 4.13 and 
the 69-libmtp.rules which does not bind the device correctly and that causes 
Plasma not to be able to open the device. 

Upstream Bug Report: https://bugs.kde.org/show_bug.cgi?id=387454
Upper Upstream Bug Report: https://github.com/systemd/systemd/issues/8221

As this issue currently affects Debian Stable(with backports kernel), Testing 
and Unstable I suggest for now providing the workaround mentioned in the 
upstream bug report (KDE Bugtracker) which patches one line in the 69-
libmtp.rules file to fix the issue. 

I attached the patch that we now use in Neptune (Debian Stable based distro) 
and is working fine in Debian Stable aswell as current Debian Testing. 

Greetings
Leszek

-- 
ZevenOS / Neptune Team
http://www.zevenos.com / http://www.neptuneos.com
Leszek Lesner <les...@zevenos.com>
--- libmtp-1.1.13.orig/util/mtp-hotplug.c
+++ libmtp-1.1.13/util/mtp-hotplug.c
@@ -140,7 +140,7 @@ int main (int argc, char **argv)
     case style_udev:
       printf("# UDEV-style hotplug map for libmtp\n");
       printf("# Put this file in /etc/udev/rules.d\n\n");
-      printf("ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n");
+      printf("ACTION!=\"bind\", ACTION!=\"add\" GOTO=\"libmtp_rules_end\"\n");
       printf("ENV{MAJOR}!=\"?*\", GOTO=\"libmtp_rules_end\"\n");
       printf("SUBSYSTEM==\"usb\", GOTO=\"libmtp_usb_rules\"\n"
 	     "GOTO=\"libmtp_rules_end\"\n\n"

Reply via email to