Bug 139247 - Amarok MTP discovery of Sansa e280 fails yet mtp-detect sees player
Summary: Amarok MTP discovery of Sansa e280 fails yet mtp-detect sees player
Status: RESOLVED NOT A BUG
Alias: None
Product: amarok
Classification: Applications
Component: Collections/MTP player (show other bugs)
Version: 1.4.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-26 19:40 UTC by Joey Stanford
Modified: 2011-12-20 11:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
full results of mtp-detect (7.16 KB, text/plain)
2006-12-27 18:30 UTC, Joey Stanford
Details
libmtp.rules (4.63 KB, text/plain)
2006-12-27 18:33 UTC, Joey Stanford
Details
amaraok status log (4.35 KB, text/plain)
2006-12-27 18:36 UTC, Joey Stanford
Details
dcop kded mediamanager fullList - missing mtp (714 bytes, text/plain)
2006-12-27 20:42 UTC, Joey Stanford
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joey Stanford 2006-12-26 19:40:55 UTC
Version:           1.4.3 (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

Greetings,

I'm running Ubuntu Edgy with Amarok and the associated KDE libraries installed (under GNOME). I'm trying to connect my (xmas gift) Sansa e280 player using MTP.  mtp-detect sees the device with lots and lots of details however Amarok is reporting it can't find the device: "No new media devices were found. If you feel this is an error, ensure that the DBUS and HAL daemons are running and KDE was built with support for them. You can test this by running "dcop kded mediamanager fullList" in a Konsole window."

Here is a snip from the top of the mtp-detect:

joey@atf:/etc/udev/rules.d$ mtp-detect
Autodetected device "SanDisk Sansa e200" (VID=0781,PID=7420) is known.
PTP: Opening session
Connected to MTP device.
USB low-level info:
   Using kernel interface "usbfs"
   bcdUSB: 512
   bDeviceClass: 0
   bDeviceSubClass: 0
   bDeviceProtocol: 0
   idVendor: 0781
   idProduct: 7420
   IN endpoint maxpacket: 512 bytes
   OUT endpoint maxpacket: 512 bytes
   Device flags: 0x00000000
Device info:
   Manufacturer: SanDisk
   Model: Sansa e280
   Device version: PP5022AF-05.51-S301-02.15-S301.02.15A-D, (Build 32.10)
   Serial number: 00000000-00000000-2098b387-c905fa14-00000000
   Vendor extension ID: 0x00000006
   Vendor extension description: microsoft.com/WMDRMPD: 10.1; portalplayer.com: 1.0; 

I don't have the full KDE installation so the DCOP command recommended in the Amarok error msg won't run. 

Ideas? I'm hoping the answer won't be "install KDE". :-)   As as side note, on a whim I decided to try Amarok since I haven't used it since I was a KDE user a long time ago. It's fantastic. I was amazed it has mtp support at all. Great job! Thanks!
Comment 1 Joey Stanford 2006-12-27 18:30:59 UTC
Created attachment 19045 [details]
full results of mtp-detect
Comment 2 Joey Stanford 2006-12-27 18:33:02 UTC
Created attachment 19046 [details]
libmtp.rules

Note that in the default libmtp.rules on the amarok wiki, it does not have the
Sansa e280. It is the same line as the Sansa e260 which is included so I
duplicated it. I did not test weather libmtp.rules would autodetect the e280
out of the box.
Comment 3 Joey Stanford 2006-12-27 18:36:20 UTC
Created attachment 19047 [details]
amaraok status log
Comment 4 Joey Stanford 2006-12-27 18:51:25 UTC
I've just run an strace on amarok and it was filled with errors relating to the fact that I have it installed under gnome and not under KDE. The strace reported a problem with sqllite along with KDE specific things (e.g. missing icons for example).  So, I'm installing Kubuntu now and I'll see if that fixes some of these. Interesting to note that Amarok does appear to work under Ubuntu despite these errors.
Comment 5 Joey Stanford 2006-12-27 20:42:16 UTC
I've installed KDE 3.5.5 and it seems the dcop full list does not recognize the Sansa player despite mtp-detect finding it as well as the ubuntu device manager. I've upload the dcop kded mediamanager fullList output.
Comment 6 Joey Stanford 2006-12-27 20:42:52 UTC
Created attachment 19049 [details]
dcop kded mediamanager fullList - missing mtp
Comment 7 Brandon Holtsclaw 2006-12-28 19:46:55 UTC
note : amarok in edgy was not compiled with MTP support because libmtp dident make it into main untill the feisty release schedule, thus this is not a bug its just not supported atm in edgy, I will backport this soon
Comment 8 Alexandre Oliveira 2006-12-28 21:30:04 UTC
Well, the report is invalid then, according to comment #7.
Comment 9 Martin Aumueller 2006-12-28 21:39:05 UTC
As far as my knowledge goes, this dcop command won't detect mtp devices, as they are not mass storage. Instead, you would have to go Amarok's config dialog and add a media device using the mtp plugin there.
Comment 10 Joey Stanford 2006-12-29 18:10:00 UTC
Thanks Brandon! Interesting to note that libmtp is in Universe but I guess it wasn't ready when you were compiling. Should I have filed this "bug" report in Malone against KDE or was it proper to file it on bugs.kde.org?  Sometimes it's not clear to me with upstream products. Thanks! 
Comment 11 Matti Moell 2006-12-30 23:37:22 UTC
Hi guys 
I have a little problem with that sansa player too
but while compiling I come along this:

first the options given on the way by the svn build script:

Used configuration
--------------------
(Use --help to get information on how to change it.)

SVN server:                                     svn://anonsvn.kde.org
Language for localization and documentation:    de
Extra configuration options:                    --with-libmtp --with-libgpod --with-mp4v2
Command for getting root privileges:            sudo
Build ID:                                       Off
Build directory:                                /home/matti/amarok-svn
Clean source tree:                              Off



after that the list of stuff included that comes after ./configure is run:


 ==========================
 ===  Amarok - PLUGINS  ========================================================
 ==========================
 =
 = The following extra functionality will NOT be included:
 =   - NMM-engine
 =   - Helix-engine
 =   - yauap-engine
 =   - libvisual Support
 =   - MySql Support
 =   - Postgresql Support
 =   - MusicBrainz Support
 =   - iRiver iFP Support
 =   - Creative Nomad Jukebox Support
 =   - MTP Device Support
 =   - Rio Karma Support
 =
 = The following extra functionality will be included:
 =   + xine-engine
 =   + Konqueror Sidebar
 =   + MP4/AAC Tag Write Support
 =   + iPod Support (with Artwork)
 =


mtp-detect gives the same stuff then Joeys

~matti~

As you can see mtp is not included even though I gave it the option 
libmtp-dev is installed with all dependencies
Comment 12 Marcin Kasperski 2008-06-03 18:56:13 UTC
I spotted this bug while googling for help. Well... I am using Ubuntu 8.04 and I have Samsung YP-U3 player (accessible via MTP). Rhythmbox (after enabling MTP plugin) finds this player and handles it without any problems. Amarok fails to find it - auto-detect does not find anything, after I added it manually, it still does not connect. The trick with adding mtp-detect as "before connect" command also do not help.