Bug 339334

Summary: Device notifier shows multiple entries (four) for mtp device
Product: [Frameworks and Libraries] solid Reporter: Arnout Boelens <a.m.p.boelens>
Component: libsolid-udevAssignee: Lukáš Tinkl <lukas>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ereslibre, gekylafas, hamelg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: device notifier screenshot

Description Arnout Boelens 2014-09-23 15:43:57 UTC
When I plug in my phone I get 4 entries in the device notifier. 3 of which do not have a name. When trying to open the first entry with a file manager I get the following in .xsession-errors:

Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QString)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QString)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Object::connect: No such signal CachedDevice::expired()
kioclient(13712)/kio (KRun): KRun(0x17e6070) ERROR 111 "The file or folder udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb2/2-2/2-2:1.0/ does not exist." 
file:///usr/share/kde4/apps/plasma/plasmoids/notifier/contents/ui/DeviceItem.qml:67: TypeError: Result of expression 'notifierDialog.highlightItem' [null] is not an object.
plasma-desktop(12123)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Android device detected, assigning default bug flags

The second one gives:

Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Object::connect: No such signal CachedDevice::expired()
kioclient(13720)/kio (KRun): KRun(0x7460f0) ERROR 111 "The file or folder udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb2/2-2/2-2:1.2/ does not exist." 
file:///usr/share/kde4/apps/plasma/plasmoids/notifier/contents/ui/DeviceItem.qml:67: TypeError: Result of expression 'notifierDialog.highlightItem' [null] is not an object.
plasma-desktop(12123)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Android device detected, assigning default bug flags

The third one:

Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QString)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QString)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Object::connect: No such signal CachedDevice::expired()
kioclient(13754)/kio (KRun): KRun(0x1ef8100) ERROR 111 "The file or folder udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb2/2-2/2-2:1.1/ does not exist." 
file:///usr/share/kde4/apps/plasma/plasmoids/notifier/contents/ui/DeviceItem.qml:67: TypeError: Result of expression 'notifierDialog.highlightItem' [null] is not an object.
Android device detected, assigning default bug flags

And the 4th one is named d2lte and opens correctly using the mtp:/ kio slave.

My phone is a Samsung Galaxy S3 running Cyanogenmod 11 with mtp enabled.

Reproducible: Always

Steps to Reproduce:
1. plug in phone
2. 4 entries show up


Expected Results:  
only show one entry for the mtp:/ protocol
Comment 1 hamelg 2014-11-28 19:49:08 UTC
Created attachment 89759 [details]
device notifier screenshot
Comment 2 hamelg 2014-11-28 19:50:57 UTC
I have the same issue when I connect my amazon kindle (see the previous attachment).

"solid-hardware listen" catches 3 new devices when connecting it :
Device Added:
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2' 
Device Added:
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2/2-3.2:1.1'
Device Added:
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2/2-3.2:1.0'

here is the detail :

$ solid-hardware details ''/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2''
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QString)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QString)
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2'
  parent = '/org/kde/solid/udev'  (string)
  vendor = 'Amazon'  (string)
  product = 'Kindle'  (string)
  description = 'Kindle'  (string)
  Block.major = 189  (0xbd)  (int)
  Block.minor = 151  (0x97)  (int)
  Block.device = '/dev/bus/usb/002/024'  (string)
  Camera.supportedProtocols = {'ptp'}  (string list)
  Camera.supportedDrivers = {'gphoto'}  (string list)
  PortableMediaPlayer.supportedProtocols = {'mtp'}  (string list)
  PortableMediaPlayer.supportedDrivers = {'usb'}  (string list)

 $ solid-hardware details ''/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2/2-3.2:1.0''
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QString)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QString)
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2/2-3.2:1.0'
  parent = '/org/kde/solid/udev'  (string)
  vendor = ''  (string)
  product = ''  (string)
  description = ''  (string)
  Camera.supportedProtocols = {'ptp'}  (string list)
  Camera.supportedDrivers = {'gphoto'}  (string list)
  PortableMediaPlayer.supportedProtocols = {'mtp'}  (string list)
  PortableMediaPlayer.supportedDrivers = {'usb'}  (string list)

$ solid-hardware details '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2/2-3.2:1.1'
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QString)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QString)
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1a.7/usb2/2-3/2-3.2/2-3.2:1.1'
  parent = '/org/kde/solid/udev'  (string)
  vendor = ''  (string)
  product = ''  (string)
  description = ''  (string)
  Camera.supportedProtocols = {'ptp'}  (string list)
  Camera.supportedDrivers = {'gphoto'}  (string list)
  PortableMediaPlayer.supportedProtocols = {'mtp'}  (string list)
  PortableMediaPlayer.supportedDrivers = {'usb'}  (string list)

Is it a device notifier bug ?
Comment 3 hamelg 2014-12-28 19:37:39 UTC
this bug is a duplicate of https://bugs.kde.org/show_bug.cgi?id=336523
Comment 4 Jonathan Riddell 2015-03-11 19:11:17 UTC
This bug is reported on libsolid which is the kdelibs4 version of the solid library.  It is now in maintenance mode.  If you think it should still be fixed in the KDE Frameworks 5 version of solid please move it to or report a bug on frameworks-solid.
Comment 5 Lukáš Tinkl 2015-03-12 11:29:12 UTC

*** This bug has been marked as a duplicate of bug 336523 ***