maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   amarok on linux desktop with N900's internal storage (https://talk.maemo.org/showthread.php?t=74849)

xopher_mc 2011-07-11 21:14

amarok on linux desktop with N900's internal storage
 
Has anyone else managed to get the N900 to work properly with amarok with the N900 (it works fine with Banshee ughhh:rolleyes:). I have the problem on both kubuntu and opensuse

The SD card shows up in the local media on amarok but the internal storage of the device dosn't. Having looked at the output of amarok I think the problem is that the internal storage doesn't have a partition table so it confuses amarok. However, if anyone has it working and fdisk dosn't show a a partition table too that would be helpful to know that isn't my problem. I can then bug the amarok devs.


xopher_mc

michaaa62 2011-07-11 22:17

Re: amarok on linux desktop with N900's internal storage
 
No problems here on Fedora with Amarok 2.4.1. I can locally browse the MyDocs partition and importing to the library also works just fine. Right now i do not know what package might provide the necessary functionality. A wild guess: is there anything like amarok-tools available?

BTW. Alter, was für ein geiles Avatar?!!!

xopher_mc 2011-07-11 22:56

Re: amarok on linux desktop with N900's internal storage
 
Lieber Michaaa62

I tried an update to 2.4.1. , still not there!

I can mount the drive and access it (bash, dolpin ect) but amarok dosn't see it.

What is your fdisk output for the internal disk (on you fedora machine)?
--
Das Avatar photo ist von Karl Barth

michaaa62 2011-07-11 23:06

Re: amarok on linux desktop with N900's internal storage
 
Here is the output of fdisk -l in german localisation
Code:

Festplatte /dev/mapper/udisks-luks-uuid-268a79e6-286a-44a0-b39c-5370e6754da3-uid500 enthält keine gültige Partitionstabelle

Disk /dev/sdc: 22.2 GB, 22230827008 bytes
64 Köpfe, 32 Sektoren/Spur, 21200 Zylinder, zusammen 43419584 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Still
Code:

df /dev/sdc
Dateisystem          1K‐Blöcke  Benutzt Verfügbar Ben% Eingehängt auf
/dev/sdc              21699152  9860240  11838912  46% /media/MyDocs

So it is picked up just fine. Silly question did you mount it as user or as root?

Avatar:
Mist, das kleine Bildchen sah aus wie der gute alte Karl-Eduard Richard Arthur von Schnitzler. Dann lese ich mal besser etwas über Karl Barth

xopher_mc 2011-07-11 23:53

Re: amarok on linux desktop with N900's internal storage
 
its mounted automagically as user by kde desktop mounter plasmoid!

Tried changing the lable of the partion to mydocs like yours but didn't help.

maybe its a kernel issue? I have attached at the bottom the important part from 'amarok -d'. And would be intrested what your output was.


Avatar:
Ich habe niemals von Schnitzler gehört, bis jetzt! Ich bin aber Engländer

--------------

1126 amarok: vendor: "Nokia" , product: "N900"
1127 amarok: ^[[00;35mBEGIN:^[[00;39m const QString MediaDeviceCache::volumeMountPoint(const QString&) const
1128 amarok: [MediaDeviceCache] Not able to convert to StorageAccess or not accessible, returning empty
1129 amarok: ^[[00;35mEND__:^[[00;39m const QString MediaDeviceCache::volumeMountPoint(const QString&) const ^[[00;35m[Took: 0s]^[[00;39m
1130 amarok: ^[[00;32mEND__:^[[00;39m virtual bool UmsConnectionAssistant::identify(const QString&) ^[[00;32m[Took: 0s]^[[00;39m
1131 amarok: ^[[00;36mBEGIN:^[[00;39m virtual bool UmsConnectionAssistant::identify(const QString&)
1132 amarok: Device udi: "/org/freedesktop/UDisks/devices/sdc1"
1133 amarok: Device name: "/media/N900SDCARD"
1134 amarok: ^[[00;31mBEGIN:^[[00;39m const QString MediaDeviceCache::volumeMountPoint(const QString&) const
1135 amarok: ^[[00;31mEND__:^[[00;39m const QString MediaDeviceCache::volumeMountPoint(const QString&) const ^[[00;31m[Took: 0s]^[[00;39m
1136 amarok: Mount point: "/media/N900SDCARD"
1137 amarok: vendor: "Nokia" , product: "N900SDCARD"
1138 amarok: ^[[00;32mBEGIN:^[[00;39m const QString MediaDeviceCache::volumeMountPoint(const QString&) const
1139 amarok: ^[[00;32mEND__:^[[00;39m const QString MediaDeviceCache::volumeMountPoint(const QString&) const ^[[00;32m[Took: 0s]^[[00;39m
1140 amarok: ^[[00;36mEND__:^[[00;39m virtual bool UmsConnectionAssistant::identify(const QString&) ^[[00;36m[Took: 0s]^[[00;39m
1141 amarok: [MediaDeviceMonitor] Device identified with udi: "/org/freedesktop/UDisks/devices/sdc1"
1142 amarok: ^[[00;34mBEGIN:^[[00;39m virtual void ConnectionAssistant::tellIdentified(const QString&)
1143 amarok: ^[[00;35mBEGIN:^[[00;39m const QString MediaDeviceCache::volumeMountPoint(const QString&) const
1144 amarok: ^[[00;35mEND__:^[[00;39m const QString MediaDeviceCache::volumeMountPoint(const QString&) const ^[[00;35m[Took: 0s]^[[00;39m
1145 amarok: ^[[00;36mBEGIN:^[[00;39m Collections::UmsCollection::UmsCollection(MediaDev iceInfo*)
1146 amarok: [UmsCollection] Mounted at: "/media/N900SDCARD"
1147 amarok: ^[[00;31mBEGIN:^[[00;39m Meta::MediaDeviceHandler::MediaDeviceHandler(QObje ct*)
1148 amarok: ^[[00;31mEND__:^[[00;39m Meta::MediaDeviceHandler::MediaDeviceHandler(QObje ct*) ^[[00;31m[Took: 0s]^[[00;39m
1149 amarok: ^[[00;32mBEGIN:^[[00;39m Meta::UmsHandler::UmsHandler(Collections::UmsColle ction*, const QString&)
1150 amarok: ^[[00;32mEND__:^[[00;39m Meta::UmsHandler::UmsHandler(Collections::UmsColle ction*, const QString&) ^[[00;32m[Took: 0s]^[[00;39m
1151 amarok: ^[[00;36mEND__:^[[00;39m Collections::UmsCollection::UmsCollection(MediaDev iceInfo*) ^[[00;36m[Took: 0.067s]^[[00;39m
1152 amarok: ^[[00;34mBEGIN:^[[00;39m virtual void Meta::UmsHandler::init()
1153 amarok: [UmsHandler] "Got .is_audio_player file"
1154 amarok: [UmsHandler] "Found audio_folder"
1155 amarok: [UmsHandler] "audio_folder=./Music/"
1156 amarok: [UmsHandler] Scan for music in "/media/N900SDCARD/Music/"
1157 amarok: [UmsHandler] Use automatically: "true"
1158 amarok: [UmsHandler] Succeeded: true
1159 amarok: ^[[00;35mBEGIN:^[[00;39m void CollectionManager::slotNewCollection(Collections:: Collection*)
1160 amarok: ^[[00;35mEND__:^[[00;39m void CollectionManager::slotNewCollection(Collections:: Collection*) ^[[00;35m[Took: 0s]^[[00;39m

michaaa62 2011-07-12 08:02

Re: amarok on linux desktop with N900's internal storage
 
1 Attachment(s)
Hm, this output looks okay, UmsHandler on my install is not as verbose as yours, it just reports 'Succeeded: "true"
Did you go through 'Settings' > 'Collection' Browse to your mounted folder and let it add it to your collection? I right now had the problem that one application on the N900 itself had access to the card and prvented proper access from amarok to the files it added to the library :confused:

xopher_mc 2011-07-12 15:54

Re: amarok on linux desktop with N900's internal storage
 
1 Attachment(s)
Would that not mix my N900 collection and my desktop connection? Rather than let my sync between them.

I would like it to be displayed like the SD card does in this image.:)

michaaa62 2011-07-12 16:09

Re: amarok on linux desktop with N900's internal storage
 
Hm, i am bad!
Okay, now i see my error in assuming the N900SDCARD would be the built in card! So the output of post #5 is just for the external card. Do you have the full output from all devices: Local and USB? Please put it in code-tags or quote-tags for better readability.

xopher_mc 2011-07-13 21:35

Re: amarok on linux desktop with N900's internal storage
 
Hey have attached the out put in code format
Code:

EGIN: virtual bool UmsConnectionAssistant::identify(const QString&)
amarok:    Device udi:  "/org/freedesktop/UDisks/devices/sdc"
amarok:    Device name:  "Nokia - N900"
amarok:    BEGIN: const QString MediaDeviceCache::volumeMountPoint(const QString&) const
amarok:    END__: const QString MediaDeviceCache::volumeMountPoint(const QString&) const [Took: 0s]
amarok:    Mount point:  "/media/MY_DOCS"
amarok:    vendor:  "Nokia" , product:  "N900"
amarok:    BEGIN: const QString MediaDeviceCache::volumeMountPoint(const QString&) const
amarok:    END__: const QString MediaDeviceCache::volumeMountPoint(const QString&) const [Took: 0s]
amarok:  END__: virtual bool UmsConnectionAssistant::identify(const QString&) [Took: 0s]
amarok:  BEGIN: virtual bool UmsConnectionAssistant::identify(const QString&)
amarok:    Device udi:  "/org/freedesktop/UDisks/devices/sdd"
amarok:    Device name:  "Nokia - N900"
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: 0s]
amarok:    Mount point:  ""
amarok:    vendor:  "Nokia" , product:  "N900"
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: 0s]
amarok:  END__: virtual bool UmsConnectionAssistant::identify(const QString&) [Took: 0s]
amarok:  BEGIN: virtual bool UmsConnectionAssistant::identify(const QString&)
amarok:    Device udi:  "/org/freedesktop/UDisks/devices/sdd1"
amarok:    Device name:  "/media/N900SDCARD"
amarok:    BEGIN: const QString MediaDeviceCache::volumeMountPoint(const QString&) const
amarok:    END__: const QString MediaDeviceCache::volumeMountPoint(const QString&) const [Took: 0s]
amarok:    Mount point:  "/media/N900SDCARD"
amarok:    vendor:  "Nokia" , product:  "N900SDCARD"
amarok:    BEGIN: const QString MediaDeviceCache::volumeMountPoint(const QString&) const
amarok:    END__: const QString MediaDeviceCache::volumeMountPoint(const QString&) const [Took: 0s]
amarok:  END__: virtual bool UmsConnectionAssistant::identify(const QString&) [Took: 0s]
amarok:  [MediaDeviceMonitor] Device identified with udi:  "/org/freedesktop/UDisks/devices/sdd1"
amarok:  BEGIN: virtual void ConnectionAssistant::tellIdentified(const QString&)
amarok:    BEGIN: const QString MediaDeviceCache::volumeMountPoint(const QString&) const
amarok:    END__: const QString MediaDeviceCache::volumeMountPoint(const QString&) const [Took: 0s]
amarok:    BEGIN: Collections::UmsCollection::UmsCollection(MediaDeviceInfo*)
amarok:      [UmsCollection] Mounted at:  "/media/N900SDCARD"
amarok:      BEGIN: Meta::MediaDeviceHandler::MediaDeviceHandler(QObject*)
amarok:      END__: Meta::MediaDeviceHandler::MediaDeviceHandler(QObject*) [Took: 0s]
amarok:      BEGIN: Meta::UmsHandler::UmsHandler(Collections::UmsCollection*, const QString&)
amarok:      END__: Meta::UmsHandler::UmsHandler(Collections::UmsCollection*, const QString&) [Took: 0s]
amarok:    END__: Collections::UmsCollection::UmsCollection(MediaDeviceInfo*) [Took: 0s]
amarok:    BEGIN: virtual void Meta::UmsHandler::init()
amarok:      [UmsHandler] "Got .is_audio_player file"
amarok:      [UmsHandler] "Found audio_folder"
amarok:      [UmsHandler] "audio_folder=./Music/"
amarok:      [UmsHandler] Scan for music in  "/media/N900SDCARD/Music/"
amarok:      [UmsHandler] Use automatically:  "true"
amarok:      [UmsHandler] Succeeded: true
amarok:      BEGIN: void CollectionManager::slotNewCollection(Collections::Collection*)
amarok:      END__: void CollectionManager::slotNewCollection(Collections::Collection*) [Took: 0s]
amarok:      [UmsHandler] Automatically start to parse for tracks
amarok:    END__: virtual void Meta::UmsHandler::init() [Took: 0s]
amarok:  END__: virtual void ConnectionAssistant::tellIdentified(const QString&) [Took: 0.001s]
amarok:  BEGIN: virtual bool UmsConnectionAssistant::identify(const QString&)
amarok:    BEGIN: bool Meta::MediaDeviceHandler::privateParseTracks()
amarok:      BEGIN: void Meta::MediaDeviceHandler::setupReadCapability()
amarok:        RCB does not exist
amarok:        Has read capability interface
amarok:        making custom read capability
amarok:        Created rc
amarok:      END__: void Meta::MediaDeviceHandler::setupReadCapability() [Took: 0s]
amarok:      BEGIN: virtual void Meta::UmsHandler::prepareToParseTracks()
amarok:        [UmsHandler] Scanning for music in  "/media/N900SDCARD/Music/"

I think the keypoint is that it says

Code:

amarok:      [MediaDeviceCache] Not able to convert to StorageAccess or not accessible, returning empty
I ran
Code:

amarok -d
to get the debug info. What does yours say?

michaaa62 2011-07-14 08:56

Re: amarok on linux desktop with N900's internal storage
 
You are right with the error.
Did you try with the automount enabled for each and every device connected via USB?
Is the MyDocs partition mounted at the moment you started amarok? Is the filesystem of the MyDocs partition clean or may it be corrupted? Did you try to see the partition in gparted for more error messages?

robthebold 2011-07-14 20:46

Re: amarok on linux desktop with N900's internal storage
 
Interesting discovery here!

I've got Kubuntu 11.04 and Amarok 2.4.0. My N900 has a 16GB SD card installed. Never could see the N900 as a mass storage device with Amarok. I just assumed that the two didn't play together.

But I fired up Amarok for grins and giggles the other day with my phone plugged in to USB and there it was! I figured I'd gotten an update that fixed a bug.

I finished what I was doing with the phone and first unmounted the SD card -- "Nokia N900" disappears from the Media Sources in Amarok. Except my music collection is in the internal storage, not the SD card! And the internal storage volume was still mounted.

Anyway, I found that I need to have the SD card mounted for Amarok to see the tracks on the phone, even they're in internal storage. I can mount the SD card (which appears in Device Notifier as "15.4 GiB Removable Media") first, or mount "N900" first. But either way, "Nokia N900" only appears in Media Sources after mounting the SD card. And the tracks only appear after both are mounted.

Other applications see the N900 internal storage USB mass storage when mounted: file managers, DigiKam, "ls" in a terminal, etc. I don't need to mount the SD card except for Amarok.

If anyone's interested I can grab the debug output sometime or play with the phone with and without the SD Card.

xopher_mc 2011-07-20 22:49

Re: amarok on linux desktop with N900's internal storage
 
thanks robthebold,

I tried updating everything on my ubuntu computer still no dice.

@michaaa62
I tried looking on gparted but it didn't give me any other information than "fdisk -l" as the drive has no partitions. What is your fdisk output.


I have found that Clementine can see the N900 properly so am using that now. I am interest in what robthebrave or michaaa62 fdisk -l says.

Xopher_mc

robthebold 2011-07-22 13:42

Re: amarok on linux desktop with N900's internal storage
 
Here's what I get when I fdisk first the N900 internal storage (sdd) and then the N900 SD card (sde1):

Code:

rob@hymie:~$ sudo fdisk -l /dev/sdd

Disk /dev/sdd: 29.0 GB, 28995223552 bytes
64 heads, 32 sectors/track, 27652 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

  Device Boot      Start        End      Blocks  Id  System
rob@hymie:~$ sudo fdisk -l /dev/sde1

Disk /dev/sde1: 16.6 GB, 16570646528 bytes
64 heads, 32 sectors/track, 15803 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

    Device Boot      Start        End      Blocks  Id  System
rob@hymie:~$

Everything seems OK with both volumes, but Amarok still only finds the internal storage after mounting the SD card. And as I mentioned in an earlier post, there are no media tracks on SD.

xopher_mc 2011-08-22 13:10

Re: amarok on linux desktop with N900's internal storage
 
problem fixed on amarok 2.4.3!!!!

:)


All times are GMT. The time now is 11:39.

vBulletin® Version 3.8.8