|
From: Roger Q. <rog...@no...> - 2011-01-21 08:29:54
|
On 01/19/2011 06:57 PM, ext Linus Walleij wrote:
> 2011/1/18 Roger Quadros<rog...@no...>:
>
>> the mtp-probe utility works fine with Nokia Meego devices.
>> However the udev rule needs to be updated to include Communication Device
>> Class.
>>
>> Patch attached. Please integrate if it looks ok.
>
> Patch applied, thanks!
>
>> Any idea where I should change the device Icon shown in Nautils and
>> Rhythmbox. It shows a Ipod nano icon, by default i guess.
>
> In Fedora this comes from a HAL script named
> 80-udisks.rules
>
> Containing this line:
> ENV{ID_MEDIA_PLAYER}=="?*",
> ENV{UDISKS_PRESENTATION_ICON_NAME}="multimedia-player"
> ENV{ID_MEDIA_PLAYER}=="apple-ipod",
> ENV{UDISKS_PRESENTATION_ICON_NAME}="multimedia-player-ipod"
>
> This looks up an icon in
> /usr/share/icons/*
>
> So the icon is supposed to be a generic media player I think (unless
> Ubuntu is using something else...)
>
Yes ubuntu uses the same. Looks like the developer assumes that all
media players are apple ipods ;)
> I think it's possible to amend this file with something like this:
> ENV{ID_MEDIA_PLAYER}=="?*", ENV{ID_MTP_DEVICE},
> ENV{UDISKS_PRESENTATION_ICON_NAME}="multimedia-player-mtp"
>
> But then it needs contributing upstream to atleast (I think)
> each distributions udev and gnome-icon-theme package.
> Do you have some graphic artist that could fix this?
Not anyone that i know in person. I know that each of our devices will
have its own icon.
>
> Right now we only supply a "1" in the ENV{ID_MEDIA_PLAYER}
> but if you hack around a bit I guess we can supply a value
> like "meego" or "nokia" or whatever if you like if you want to provide
> the proper icons, just have fun with mtp-probe/mtp-hotplug...
AFAIR PTP/MTP spec allows device icon to be obtained as meta data. We
could use this to fetch the device icon from the device itself.
One more thing. the mtp-probe did not work on older ubuntu's than 10.10.
Further investigating showed that it fails at
LIBMTP_Check_Specific_Device () only because libusb does not populate
the correct dev->devnum (i.e. usb device number.
However if I manually run mtp-probe, later after a few seconds of device
plugged in, it works properly.
Looks like libusb takes a while to get the correct device number. Is
this a known libusb issue or something else?
--
regards,
-roger
|