Jump to content

Amarok/Development/Media Device MTP

From KDE Community Wiki

Creative Zen Portable Media Center, Creative Zen MicroPhoto and other MTP devices use a 2.x MTP/PlaysForSure firmware, which is not supported by libnjb, but is supported by libmtp. Beginning with Amarok 1.4.2, these devices are now supported.

Libmtp relies on your user being able to do usb operations. If you have installed libmtp yourself, be sure to read the sections on Hotplugging and Udev in the INSTALL file. Amarok will not work with MTP if you do not have the correct permissions on the MTP device.

Most distributions should add the udev rules on installation of libmtp. It may require your user to be a member of a certain group. For example, in gentoo, the user should be a member of the plugdev group.

For older distributions add the following lines to a file under your udev rules directory, preferrable is to create a new file for it (eg /etc/udev/rules.d/libmtp.rules) or just to copy libmtp.rules file (the one you get when you compile libmtp) under that directory.


SUBSYSTEM!="usb_device", ACTION!="add", GOTO="libmtp_rules_end"

  #Creative Zen VisionSpecial:Recentchanges
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="411f", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Portable Media Center
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4123", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Zen Xtra (MTP mode)
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4128", SYMLINK+="libmtp-%k", MODE="666"
  #Second generation Dell DJ
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="412f", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Zen Micro (MTP mode)
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4130", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Zen Touch (MTP mode)
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4131", SYMLINK+="libmtp-%k", MODE="666"
  #Dell Pocket DJ (MTP mode)
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4132", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Zen Sleek (MTP mode)
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4137", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Zen MicroPhoto
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="413c", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Zen Sleek Photo
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="413d", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Zen Vision:M
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="413e", SYMLINK+="libmtp-%k", MODE="666"
  #Creative Zen V Plus
  SYSFS{idVendor}=="041e", SYSFS{idProduct}=="4152", SYMLINK+="libmtp-%k", MODE="666"
  #Samsung:YH-820
  SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="502e", SYMLINK+="libmtp-%k", MODE="666"
  #Samsung YH-925
  SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="502f", SYMLINK+="libmtp-%k", MODE="666"
  #Samsung YP-T7J
  SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="5047", SYMLINK+="libmtp-%k", MODE="666"
  #Samsung YH-999 Portable Media Center
  SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="5a0f", SYMLINK+="libmtp-%k", MODE="666"
  #Intel Bandon Portable Media Center
  SYSFS{idVendor}=="045e", SYSFS{idProduct}=="00c9", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver Portable Media Center
  SYSFS{idVendor}=="1006", SYSFS{idProduct}=="4002", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver Portable Media Center
  SYSFS{idVendor}=="1006", SYSFS{idProduct}=="4003", SYMLINK+="libmtp-%k", MODE="666"
  #JVC Alneo XA-HD500
  SYSFS{idVendor}=="04f1", SYSFS{idProduct}=="6105", SYMLINK+="libmtp-%k", MODE="666"
  #Philipps HDD6320
  SYSFS{idVendor}=="0471", SYSFS{idProduct}=="01eb", SYMLINK+="libmtp-%k", MODE="666"
  #Philipps HDD6320 2
  SYSFS{idVendor}=="0471", SYSFS{idProduct}=="014b", SYMLINK+="libmtp-%k", MODE="666"
  #Philipps HDD1630/17
  SYSFS{idVendor}=="0471", SYSFS{idProduct}=="014c", SYMLINK+="libmtp-%k", MODE="666"
  #SanDisk Sansa c150
  SYSFS{idVendor}=="0781", SYSFS{idProduct}=="7410", SYMLINK+="libmtp-%k", MODE="666"
  #SanDisk Sansa e200
  SYSFS{idVendor}=="0781", SYSFS{idProduct}=="7420", SYMLINK+="libmtp-%k", MODE="666"
  #SanDisk Sansa e260
  SYSFS{idVendor}=="0781", SYSFS{idProduct}=="7420", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver T10
  SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1113", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver T20 FM
  SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1114", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver U10
  SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1116", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver T10
  SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1117", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver T20
  SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1118", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver T30
  SYSFS{idVendor}=="4102", SYSFS{idProduct}=="1119", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver H10
  SYSFS{idVendor}=="4102", SYSFS{idProduct}=="2101", SYMLINK+="libmtp-%k", MODE="666"
  #iRiver H10
  SYSFS{idVendor}=="4102", SYSFS{idProduct}=="2102", SYMLINK+="libmtp-%k", MODE="666"
  #Dell DJ Itty
  SYSFS{idVendor}=="413c", SYSFS{idProduct}=="4500", SYMLINK+="libmtp-%k", MODE="666"
  #Toshiba Gigabeat MEGF-40
  SYSFS{idVendor}=="0930", SYSFS{idProduct}=="0009", SYMLINK+="libmtp-%k", MODE="666"
  #Toshiba Gigabeat
  SYSFS{idVendor}=="0930", SYSFS{idProduct}=="000c", SYMLINK+="libmtp-%k", MODE="666"
  LABEL="libmtp_rules_end"

If Amarok cannot find your MTP device, you should check that libmtp can access your device. Do this by running mtp-detect as the user that you run Amarok as. If it detects your device and prints out lots of interesting device information, then Amarok should be able to find it. If not, you need to verify your libmtp installation.

You may want to check your libusb version if you cannot access your MTP with Amarok: it has been reported that libusb 0.1.12 is the first version without a bug which is critical for that kind of purpose (kubuntu dapper).