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

MTP problems with Sansa Clip+

Tags: None
(comma "," separated)
fpe
Registered Member
Posts
15
Karma
0
OS

MTP problems with Sansa Clip+

Sat Dec 26, 2009 12:32 am
I am trying to access my new Sansa Clip+ with Amarok 2.2-GIT (built today) via MTP.
After compiling latest libmtp from CVS and mtpfs from SVN, I was able to mount it to some folder and access MTP files from the player manually.

But still, Amarok does not recognize my Clip+ as "portable media player".
After plugging the device on, I get this log output:
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_7803F9027042B6A80000000000000000"
amarok:   [MediaDeviceCache] Device name is =  "SanDisk Sansa Clip+"  and was made by  "SanDisk Corp."
amarok:   [MediaDeviceCache] udi  "/org/freedesktop/Hal/devices/usb_device_781_74d0_7803F9027042B6A80000000000000000"  does not describe a portable media player or storage volume
amarok: END__: void MediaDeviceCache::slotAddSolidDevice(const QString&) - Took 0.066s
amarok: BEGIN: void MountPointManager::deviceAdded(const QString&)
amarok: END__: void MountPointManager::deviceAdded(const QString&) - Took 0.02s
amarok: BEGIN: void MediaDeviceCache::slotAddSolidDevice(const QString&)
amarok:   [MediaDeviceCache] Found new Solid device with udi =  "/org/freedesktop/Hal/devices/usb_device_781_74d0_7803F9027042B6A80000000000000000_if0"
amarok:   [MediaDeviceCache] Device name is =  "USB Vendor Specific Interface"  and was made by  ""
amarok:   [MediaDeviceCache] udi  "/org/freedesktop/Hal/devices/usb_device_781_74d0_7803F9027042B6A80000000000000000_if0"  does not describe a portable media player or storage volume
amarok: END__: void MediaDeviceCache::slotAddSolidDevice(const QString&) - Took 0.03s
amarok: BEGIN: void MountPointManager::deviceAdded(const QString&)
amarok: END__: void MountPointManager::deviceAdded(const QString&) - Took 0.0032s


Switching the Clip+ to Mass Storage mode does work, but I'd like to try MTP, if that is possible.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: MTP problems with Sansa Clip+

Sat Dec 26, 2009 6:09 am
Mine doesn't work either, with Amarok 2.2-Git, and LibMTP 1.0.1.

However, I'm on Kubuntu 9.10, and I have all sorts of issues with USB devices randomly not being found (HDDs, Sansa, Keyboard...), so I can't really tell what is to blame here.

Very sucky situation :(


--
Mark Kretschmann - Amarok Developer
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: MTP problems with Sansa Clip+

Sat Dec 26, 2009 8:57 am
My Sansa Clip+ is recognized, I can copy to but not from. Using Amarok 2.2-git, KDE SC 4.4 beta 2 on Kubuntu 9.10, libmtp 1.0.1
Also playing from the device fails: "Too many errors encountered"

See also this bug report: https://bugs.kde.org/show_bug.cgi?id=219678


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 ...
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: MTP problems with Sansa Clip+

Sat Dec 26, 2009 9:13 am
Mamarok wrote:My Sansa Clip+ is recognized, I can copy to but not from. Using Amarok 2.2-git, KDE SC 4.4 beta 2 on Kubuntu 9.10, libmtp 1.0.1
Also playing from the device fails: "Too many errors encountered"

See also this bug report: https://bugs.kde.org/show_bug.cgi?id=219678

I will test this now. By pure luck I got my distro to recognize the Sansa. Will post results later.


PS: You don't have a "Clip+", Mamarok. You have the "Clip", which is slightly different.


--
Mark Kretschmann - Amarok Developer
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: MTP problems with Sansa Clip+

Sat Dec 26, 2009 9:19 am
markey wrote:
Mamarok wrote:My Sansa Clip+ is recognized, I can copy to but not from. Using Amarok 2.2-git, KDE SC 4.4 beta 2 on Kubuntu 9.10, libmtp 1.0.1
Also playing from the device fails: "Too many errors encountered"

See also this bug report: https://bugs.kde.org/show_bug.cgi?id=219678

I will test this now. By pure luck I got my distro to recognize the Sansa. Will post results later.


PS: You don't have a "Clip+", Mamarok. You have the "Clip", which is slightly different.

Yeah, same problem here. It is possible that my patch (using Smart Pointers) did break something. Or LibMTP is to blame, not sure yet.

Will try reverting/fixing my patch.


PS: The commit was this, you can also try to revert it locally:

acf150893523a4c1693abb2ccae32f91140cb01d


--
Mark Kretschmann - Amarok Developer
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: MTP problems with Sansa Clip+

Sat Dec 26, 2009 10:06 am
Ok, reverted:


commit de278a1c4a056b6ed19c4530fbb9b3702f1b56de
Author: Mark Kretschmann <kretschmann@kde.org>
Date: Sat Dec 26 11:03:10 2009 +0100

Remove smart pointer usage in MtpHandler.

Gah. Basically, all attempts of using smart pointers with this library
are doomed to fail, as the thing is written in pure C, using malloc/free.

There are many great libraries. LibMTP isn't one of them.


--
Mark Kretschmann - Amarok Developer
fpe
Registered Member
Posts
15
Karma
0
OS

Re: MTP problems with Sansa Clip+  Topic is solved

Sat Dec 26, 2009 12:10 pm
Last night I forgot to make install mtpfs, I just used the local executable from the compile directory.

Today I uninstalled Kubuntu's (9.10) mtpfs and installed the self compiled one (into /usr/bin/), and now Amarok recognizes my Clip+ and shows it above my Local Collection, and I can play tracks from it.

My only problem is now, how do I add Music to it in Amarok?
I can't drag&drop tracks into it.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: MTP problems with Sansa Clip+

Sat Dec 26, 2009 12:28 pm
Right click on the track you want to add and choose the Option "Copy to collection"


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 ...
fpe
Registered Member
Posts
15
Karma
0
OS

Re: MTP problems with Sansa Clip+

Sat Dec 26, 2009 2:03 pm
Thanks for the quick help! :-)
BiBaBenjo
Registered Member
Posts
4
Karma
0

Re: MTP problems with Sansa Clip+

Tue Mar 30, 2010 3:07 pm
Hello,

I am having the same issue with my Sansa Clip+, it is not recognized by the system.
Im running Kubuntu 9.10 with KDE 4.4 and Amarok 2.3.
I already installed the latest libmtp and mtp-tools(1.0.2-2). Do I need any other packages?
I tried mounting the device with mptfs without success.

What did you do fpe to get yours working?
Greetz Bibabenjo
fpe
Registered Member
Posts
15
Karma
0
OS

Re: MTP problems with Sansa Clip+

Tue Mar 30, 2010 3:47 pm
Try to use the latest CVS version of libmtp instead of the Ubuntu packages:
http://libmtp.sourceforge.net/download.php -> "CVS Checkout".

Also you might need a newer (SVN) version of mtpfs: http://code.google.com/p/mtpfs/source/checkout
With this newer versions, it worked for me back then.

I'm not using MTP anymore, instead I use the Mass Storage Decive mode of my Sansa Clip, which is much easier to handle.
BiBaBenjo
Registered Member
Posts
4
Karma
0

Re: MTP problems with Sansa Clip+

Tue Mar 30, 2010 4:26 pm
Thanks for your quick reply!
With this CVS Version mtpfs is working! Thank you very much!
Why aren't you using mtp now?
valoriez
KDE CWG
Posts
625
Karma
3
OS

Re: MTP problems with Sansa Clip+

Wed Mar 31, 2010 2:33 am
You might run Amarok from the console,

Code: Select all
amarok -d --nofork

and watch there what happens when you plug in your device. USB can be mighty touchy when it interacts with KDE. My own device only shows up about half the time, and sometimes I have to plug it in THREE times before it's detected.

Valorie


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]