Pages

Thursday, November 17, 2011

MTP Devices on Linux

If you have a new MP3 player that needs to be used in MTP mode for advanced features like playlists and sync to work, then Windows Media Player does the job fine but there are problems with Linux. I found that the Sony MP3 players, the famous Walkman series never gets detected as an MTP device, and none of the common media players (Rhythmbox, Amarok, Banshee) can write playlists to the device in the required (*.pla) format. Luckily there is a solution to this problem...

UPDATE: (26 sep 2013)
There is now a nifty little program to do this for you. Install the "gmpt" application (version 1.3 on Debian Wheezy available from the standard repos as of 26-sep-2013).

Then follow the instructions given here to make sure that your device is recognised as an MTP device. In short, use lsusb to get the VID and PID of your device. The create a rule file (e.g./etc/udev/rules.d/51-walkman.rules) containing an entry like this: 
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666", OWNER="[username]"

 Make sure to reload (using udevadm control --reload) so that the new rules are in force, then re-plug-in your device.


Alternatively (this was the old proposed solution) you you could compile the latest available source of MTP Tools (1.1.0 or later should do). Then, with the player plugged in, run the command mtp-detect. To create a playlist use mtp-newplaylist. Note that this method may cause permanent data loss and/or cause damage to your player. Please read the full manual of MTP-Tools before you proceed...



No comments: