Bug 182831 - iPhone folders not supported
Summary: iPhone folders not supported
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Collections/iPod iPhone (show other bugs)
Version: 2.3-GIT
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 2.3.0
Assignee: Amarok Developers
URL:
Keywords:
: 219376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-02 08:38 UTC by Keith Gable
Modified: 2011-12-20 11:04 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Gable 2009-02-02 08:38:44 UTC
Version:           2.0 (using KDE 4.1.2)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Gentoo Packages

I'm attempting to add an iPod (an iPhone) at /media/iPhone/var/mobile/Media/. In Amarok 1.4, I would have gone into Settings > Media Devices and added it there (and I've had it working in this configuration before). In Amarok 2, it doesn't detect it (though it is showing up in Nautilus as a volume), and there is no way to add it manually through the GUI.

I'm hopefully not wasting your time with this request, because I'll feel pretty dumb if it's just under my nose and I never figured it out.

Thanks!
Comment 1 Mark Kretschmann 2009-02-02 08:47:50 UTC
I'm not sure if this is a bug or a usage problem, so I'm CC'ing our media devices expert Alejandro.

PS: Please upgrade to Amarok 2.0.1.1, it contains many bug fixes.
Comment 2 Keith Gable 2009-02-03 01:09:05 UTC
I'm upgrading to 2.0.1.1 right now - it wasn't compiling for me earlier, so I downgraded libgpod to 0.6.0 and I'll see what happens... :)

Thanks!
Comment 3 Keith Gable 2009-02-04 06:57:49 UTC
2.0.1.1 compiled (libgpod 0.7.0 problem) and it's installed. Same problem (and dragging and dropping doesn't seem to work either.. I can't drag the iPhone volume to the box and have it work).. Additionally it seems the sort order in the collection is messed up; it's sorting alphabetically rather than by track number (15 - Name is above 1 - Name).. This is a separate issue you surely already know about, but if not I'll file a bug for it
Comment 4 Keith Gable 2009-02-12 06:19:23 UTC
Updated to Solid 4.2.

Here's a real possibility. Solid doesn't detect the filesystem mounted by "sshfs root@iphone:/var/mobile/Media /media/iPhone" as a piece of hardware (neither does HAL). That's cause it's not, so that's fine with me.

But Amarok really ought to at least have an advanced setting (i.e. config file) for adding a mountpoint manually. Or a UI would be nice but aside from some sort of file server mounted via smbfs/sshfs/cifs/etc. I wouldn't see anyone ever using it.

If I knew where to start I might begin trying to come up with a patch :)
Comment 5 Keith Gable 2009-02-17 06:31:37 UTC
Okay, now, this is weird, and may indicate an issue with the Media Devices system in general... I just plugged in a flash drive and it didn't show up in Media Devices, though I see it in Nautilus. Currently upgrading Dolphin or else I'd check there. It's getting reported through HAL and currently has a UDI of /org/freedesktop/Hal/devices/volume_uuid_B830_E5AB
Comment 6 Jeff 2009-04-07 00:15:43 UTC
I am using Amarok 2.0.2 from Ubuntu repositories here. And the Media Devices config panel is missing here. I used to transfer podcasts to pendrive ou SD card in Amarok 1.4, but now it's impossible in 2.0.2...
Comment 7 Myriam Schweingruber 2009-04-24 21:28:27 UTC
This report stayed unconfirmed since it's report. Does this still happen in 2.1 beta1 or SVN?
@Alejandro, any comments?
Comment 8 Viridiana 2009-05-13 18:29:33 UTC
I have a similar problem with an Ipod Nano and Amarok 2.1 beta (kubuntu jaunty and amarok installed via kubuntu-experimental ppa).
The Ipod collection doesn't show up in amarok. The Ipod shows up in Media Device, but clicking any of the icons in the the applet does nothing at all.
Comment 9 Alejandro Wainzinger 2009-05-18 01:29:50 UTC
First, some clarification: Amarok 2 doesn't yet support iPhone or mass storage devices like a USB stick, so that not working is normal.  Mass storage devices are targeted for this summer, iPhone at some point there too hopefully.  There is no custom settings dialog because supported devices are going to work automagically by 2.2.  

As for the issue of showing up in devices applet but not connecting: someone with the same issue came into #amarok.  Turns out their .desktop or such files weren't getting updated since plugin version wasn't updating.  If installing from packages, I'm not sure how to help you as the files should be getting replaced on version update.

Anyone who has upgraded to the latest 2.1 beta still having these issues?
Comment 10 Keith Gable 2009-05-18 07:11:31 UTC
Well, compiling from source over here on Gentoo - so I can give it a try if you think it'll help (recently switched back to Amarok 1 just so I can sync my iPhone).

As far as this issue goes though, I don't think you can automagically detect every device in every case. libgpod and Amarok 1 both support my iPhone 3G just fine (over sshfs AND iFuse). It's most reliable over sshfs (slower though), and in this use case, there's no way without patching solid at least to determine that I've attached a device. I would be happy with a ~/.kde4/apps/amarok/devices.conf or equivalent which would allow me to force /media/iPhone to be an iPhone/iPod because this takes care of my weird case and then people with normal iPods (not iPod Touches) will get auto-detected. And when iFuse actually works consistently, HAL should be able to report the iPhone attached has a filesystem at /media/whatever and then Solid should tell Amarok 2 and then everything should work. But who knows when iFuse will be done...

But what about the case of a misdetected iPod? I know when I first got an iPod video (like the week it came out) and libgpod hadn't been updated, Amarok/libgpod guessed the type wrong. It worked if you said it was one kind of iPod (don't remember) but the one it picked was wrong. This should be something that you can control (hidden away in advancedland of course) just like you can now in Amarok 1.

If I knew where to start with this (I'm thinking if I knew Solid enough I could patch in a permanent /media/iPhone entry), I would definitely help by submitting patches...
Comment 11 Myriam Schweingruber 2009-07-10 17:59:03 UTC
Could somebody with Amarok 2.1.1 confirm this bug?
Comment 12 Keith Gable 2009-07-14 05:22:47 UTC
Still not working on Amarok 2.1.1.

Granted, GtkPod now doesn't support the new iTunesDB (which is built with SQLite). If Amarok let me specify a mount point (/media/iPhone) for this iPhone, we'd be in good shape, but it does not.

I think it has something to do with Solid not recognizing the iPhone's mount point. Plugged in using iFuse or with SSHFS, this thing isn't working.

I can hardcode a mount point I think, but that wouldn't solve this issue... 


Here's the output from solid-hardware list details (well, the important part):

udi = '/org/freedesktop/Hal/devices/usb_device_5ac_1292_1ac0984a343b137764c20959e2a4b7cabb1a251b_if0'
  parent = '/org/freedesktop/Hal/devices/usb_device_5ac_1292_1ac0984a343b137764c20959e2a4b7cabb1a251b'  (string)
  vendor = ''  (string)
  product = 'USB Imaging Interface'  (string)
  Camera.supportedProtocols = {'ptp'}  (string list)
  Camera.supportedDrivers = {'gphoto'}  (string list)

udi = '/org/freedesktop/Hal/devices/usb_device_5ac_1292_1ac0984a343b137764c20959e2a4b7cabb1a251b_if1'
  parent = '/org/freedesktop/Hal/devices/usb_device_5ac_1292_1ac0984a343b137764c20959e2a4b7cabb1a251b'  (string)
  vendor = ''  (string)
  product = 'USB Vendor Specific Interface'  (string)
  Block.major = 0  (0x0)  (int)
  Block.minor = 0  (0x0)  (int)
  Block.device = '/dev/bus/usb/002/005'  (string)
  StorageAccess.accessible = false  (bool)
  StorageAccess.filePath = ''  (string)
  StorageVolume.ignored = false  (bool)
  StorageVolume.usage = 'FileSystem'  (0x2)  (enum)
  StorageVolume.fsType = 'fuse.ifuse'  (string)
  StorageVolume.label = 'iPhone'  (string)
  StorageVolume.uuid = '1ac0984a343b137764c20959e2a4b7cabb1a251b'  (string)
  StorageVolume.size = '0'  (string)
  Camera.supportedProtocols = {'ptp'}  (string list)
  Camera.supportedDrivers = {'gphoto'}  (string list)

udi = '/org/freedesktop/Hal/devices/usb_device_5ac_1292_1ac0984a343b137764c20959e2a4b7cabb1a251b_usbraw'
  parent = '/org/freedesktop/Hal/devices/usb_device_5ac_1292_1ac0984a343b137764c20959e2a4b7cabb1a251b'  (string)
  vendor = ''  (string)
  product = 'USB Raw Device Access'  (string)

udi = '/org/freedesktop/Hal/devices/usb_device_5ac_1292_1ac0984a343b137764c20959e2a4b7cabb1a251b'
  parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_1d_7'  (string)
  vendor = 'Apple Computer, Inc.'  (string)
  product = 'iPhone'  (string)
  Block.major = 0  (0x0)  (int)
  Block.minor = 0  (0x0)  (int)
  Block.device = '/dev/bus/usb/002/005'  (string)
  StorageDrive.bus = 'Usb|Sata|Platform'  (0x5)  (enum)
  StorageDrive.driveType = 'HardDisk'  (0x0)  (enum)
  StorageDrive.removable = true  (bool)
  StorageDrive.hotpluggable = false  (bool)

FYI - it works fine in Nautilus.
Comment 13 Myriam Schweingruber 2009-08-02 14:40:01 UTC
Set target.
Comment 14 Mikko C. 2009-09-08 10:15:27 UTC
Changing the title, since the media device applet is no more.
Comment 15 Beat Wolf 2009-11-03 13:21:53 UTC
hi there. I use amarok 2.2 and a iphone 3Gs that i mount manualy with ifuse. There is still no way to tell amarok to use a certain directory as a iphone.
Comment 16 Myriam Schweingruber 2009-11-04 00:31:15 UTC
Changing version.
Comment 17 Myriam Schweingruber 2009-12-16 19:53:35 UTC
And adapting title to the real bug description, this has considerably changed over time, taking comment #15 as reference
Comment 18 manu.wagner 2009-12-18 09:47:03 UTC
Hi,

Thanx to the HUGE efforts of the community, libgpod is now starting to handle properly the iphone & ipod touch 3G without jailbreaking, through fuse.
gnome's rhythmbox is seeing the ipod, thanx to gvfs 1.5 enhancements (gvfs afc backend).
I believe solid should enable to do the same thing for kde & amarok.
Has anyone a clue on how to do it (even through an amarok script) or who could be of any help on the subject ?
Comment 19 Myriam Schweingruber 2009-12-18 10:09:22 UTC
(In reply to comment #18)

> Thanx to the HUGE efforts of the community, libgpod is now starting to handle
> properly the iphone & ipod touch 3G without jailbreaking, through fuse.
> gnome's rhythmbox is seeing the ipod, thanx to gvfs 1.5 enhancements (gvfs afc
> backend).
> I believe solid should enable to do the same thing for kde & amarok.
> Has anyone a clue on how to do it (even through an amarok script) or who could
> be of any help on the subject ?

Well, Amarok uses libgpod, it just depends on the version of libgpod that is in use.
For Solid to support iPods and the like you better file a wish against it, since Amarok just uses what is provided. For discussions a bug report is not the correct media, check out http://solid.kde.org and the mailing lists. Please CC amarok@kde.org in any case :)
Comment 20 Mikko C. 2009-12-20 12:16:00 UTC
*** Bug 219376 has been marked as a duplicate of this bug. ***
Comment 21 Martin Aumueller 2010-03-18 00:20:00 UTC
Amarok 2.3.0 should support iPhones/iPod Touch mounted via ifuse - if all components are configured correctly (libgpod, libimobiledevice, usbmuxd, ifuse, hal, ...)