This forum has been archived. All content is frozen. Please use KDE Discuss instead.

MTP device doesn't show up on amarok

Tags: mtp mtp mtp
(comma "," separated)
surdy
Registered Member
Posts
14
Karma
0
I have a Sansa Clip + , it works just fine in MSC mode. I wanted to give a try to the MTP mode. But it does not show up in Amarok. I have libmtp installed and mtp-detect does show up the device information. Even Gnomad2 shows the tracks and device information but not amarok. is
I am on Fedora 14,
libmtp-1.0.3-5
libusb-0.1.12-23
amarok-2.3.2-4

Can someone help me with this ?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
I have no problems using my Sansa Clip in both MSC and MTP mode in current Amarok 2.4-git on Kde 4.5.3 with Kubuntu 10.10. The only difference should be that mine is running on flash memory, yours has a hard disc IIRC.

Same libmtp version, libusb is slightly older, 0.1.12-15


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
surdy
Registered Member
Posts
14
Karma
0
Thanks for the response Mamarok.
Here is what I have done since my last post.
I got the product information via lsusb -vv and added my player information in the 60-libmtp.rules file ( which i copied from libmtp package to /etc/udev/rules.d ).
I tried manually selecting the USB mode in Clip+. I tried Default,MTP as well as MSC.

Gnomad2 works just fine with it so I guess it must me something going wrong in amarok.

@Mamarok .. mine is also a flash based player not hard disk based.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
No idea what is wrong in your case, the only problem I have encountered so far with the Sansa Clip is that the automatic mode doesn't work correctly. One has to select specifically the MTP or MSC mode.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
surdy
Registered Member
Posts
14
Karma
0
Alright now that it seems not its not any known issue and it should have worked under normal circumstances what I am looking for now is more troubleshooting steps. What all can I do to figure out whats going wrong with amarok not showing up the MTP dvice ?
surdy
Registered Member
Posts
14
Karma
0
Ok ..so I ran amarok on commandline to see whats going on. I get the following messages when I connect the player. Can somone look at it and help me ?
Code: Select all
amarok: BEGIN: void MediaDeviceCache::slotAddSolidDevice(const QString&)
amarok:   [MediaDeviceCache] Found new Solid device with udi =  "/org/freedesktop/Hal/devices/usb_device_781_74d0_CD13F40A9992B6A80000000000000000"
amarok:   [MediaDeviceCache] Device name is =  "Sansa Clip+ (mtp)"  and was made by  "SanDisk Corp."
amarok:   [MediaDeviceCache] udi  "/org/freedesktop/Hal/devices/usb_device_781_74d0_CD13F40A9992B6A80000000000000000"  does not describe a portable media player or storage volume
amarok: END__: void MediaDeviceCache::slotAddSolidDevice(const QString&) - Took 0.12s
amarok: BEGIN: void MediaDeviceCache::slotAddSolidDevice(const QString&)
amarok:   [MediaDeviceCache] Found new Solid device with udi =  "/org/freedesktop/Hal/devices/usb_device_781_74d0_CD13F40A9992B6A80000000000000000_if0"
amarok:   [MediaDeviceCache] Device name is =  "USB Vendor Specific Interface"  and was made by  ""
amarok:   [MediaDeviceCache] device is a PMP
amarok:   BEGIN: void MountPointManager::deviceAdded(const QString&)
amarok:     [MountPointManager] looking for udi  "/org/freedesktop/Hal/devices/usb_device_781_74d0_CD13F40A9992B6A80000000000000000_if0"
amarok:     [MountPointManager] Did not find device from Solid for udi  "/org/freedesktop/Hal/devices/usb_device_781_74d0_CD13F40A9992B6A80000000000000000_if0"
amarok:   END__: void MountPointManager::deviceAdded(const QString&) - Took 0.01s
amarok:   BEGIN: void MediaDeviceMonitor::deviceAdded(const QString&)
amarok:     BEGIN: void MediaDeviceMonitor::checkDevice(const QString&)
amarok:       BEGIN: virtual bool MtpConnectionAssistant::identify(const QString&)
amarok:          Supported Protocols:  ()
amarok:       END__: virtual bool MtpConnectionAssistant::identify(const QString&) - Took 9.1e-05s
amarok:       BEGIN: virtual bool AudioCdConnectionAssistant::identify(const QString&)
amarok:       END__: virtual bool AudioCdConnectionAssistant::identify(const QString&) - Took 5.2e-05s
amarok:       BEGIN: virtual bool IpodConnectionAssistant::identify(const QString&)
amarok:          Device udi:  "/org/freedesktop/Hal/devices/usb_device_781_74d0_CD13F40A9992B6A80000000000000000_if0"
amarok:          Device name:  " - USB Vendor Specific Interface"
amarok:         BEGIN: const QString MediaDeviceCache::volumeMountPoint(const QString&) const
amarok:           [MediaDeviceCache] Not able to convert to StorageAccess or not accessible, returning empty
amarok:         END__: const QString MediaDeviceCache::volumeMountPoint(const QString&) const - Took 8.1e-05s
amarok:          Mount point:  ""
amarok:          vendor:  "SanDisk Corp." , product:  "Sansa Clip+ (mtp)"
amarok:       END__: virtual bool IpodConnectionAssistant::identify(const QString&) - Took 0.0003s
amarok:       BEGIN: virtual bool UmsConnectionAssistant::identify(const QString&)
amarok:          Device udi:  "/org/freedesktop/Hal/devices/usb_device_781_74d0_CD13F40A9992B6A80000000000000000_if0"
amarok:          Device name:  " - USB Vendor Specific Interface"
amarok:         BEGIN: const QString MediaDeviceCache::volumeMountPoint(const QString&) const
amarok:           [MediaDeviceCache] Not able to convert to StorageAccess or not accessible, returning empty
amarok:         END__: const QString MediaDeviceCache::volumeMountPoint(const QString&) const - Took 9.3e-05s
amarok:          Mount point:  ""
amarok:          vendor:  "" , product:  "USB Vendor Specific Interface"
amarok:         BEGIN: const QString MediaDeviceCache::volumeMountPoint(const QString&) const
amarok:           [MediaDeviceCache] Not able to convert to StorageAccess or not accessible, returning empty
amarok:         END__: const QString MediaDeviceCache::volumeMountPoint(const QString&) const - Took 7.6e-05s
amarok:       END__: virtual bool UmsConnectionAssistant::identify(const QString&) - Took 0.00041s
amarok:     END__: void MediaDeviceMonitor::checkDevice(const QString&) - Took 0.0011s
amarok:   END__: void MediaDeviceMonitor::deviceAdded(const QString&) - Took 0.0011s
amarok: END__: void MediaDeviceCache::slotAddSolidDevice(const QString&) - Took 0.08s
surdy
Registered Member
Posts
14
Karma
0
Can somebody have a look at the error messages and help resolve this ?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
In my experience, plugging it in whilst Amarok is already running, and being patient for about 30 seconds is sufficient for the MTP device to show up.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
surdy
Registered Member
Posts
14
Karma
0
bcooksley wrote:In my experience, plugging it in whilst Amarok is already running, and being patient for about 30 seconds is sufficient for the MTP device to show up.


Its not an issue of patience here. I have had it connected for fairly long. Also the error message above shows that there is a problem detecting it as MTP
surdy
Registered Member
Posts
14
Karma
0
Just to try new things to fix this ...I tried my player with Kubuntu 10.10.
It was a pleasant surprise to see that it worked and the device was detected.

So it was a ray of hope for me.

I bet the fix to my problem should be pretty simple.
I urge one of the developers to please have a look at the error report i submitted above. I do not have a good understanding of how these things work but i bet a developer if sees the error log should be able to point out the problem very easily.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Well, I suspect it to be a problem with the underlying system, as Solid is the part that detects Media Devices. Maybe there is a problem with the Fedora implementation of Solid, but it is likely not an Amarok bug, as Amarok doesn't do hardware detection..


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
surdy
Registered Member
Posts
14
Karma
0
thanks Mamarok. I will try to get hold of some fedora people.
balustre
Registered Member
Posts
10
Karma
0
OS
Hi ! i've got exactly the same error with Fedora 14 !
Could you please tell me if you've posted the error on a fedora related forum. I can try to open a bug in BugZilla, but I really don't know where the problem is.

Thanks for keeping in touch about this :)

PS : Do you happen to have both gnome and KDE installed ? It's my case, and maybe there's a kind of conflict when trying to recognize the player.
I've noticed in my KDE configuration that the Creative Zen is nowhere to be find...
surdy
Registered Member
Posts
14
Karma
0
Good to know that I am not alone. :D

I first posted this on General Support on fedora forum. I posted it just along with my post here, but I did not get any resolution.

Yesterday, I posted again in the Hardware Support section on fedoraforums and I summarised all the steps I have taken. The new thread is here

A bug report would be great.
balustre
Registered Member
Posts
10
Karma
0
OS
Well, on gnome i have:

My Zen vision is view and mounted by gphoto2 (i can see the player, the folders...) , and is recognized by gnomad2. So the device is clearly detected, but still, it is not shown in amarok.

i will fill a bug, but i would like to know a little more to be able to post it in a right section...


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar