Mike Gerwitz web developer and administrator of GNU/Linux systems, focusing on the development of online communities (e.g. MyCustomBB). Mike is also a freelance web developer and can be found on RentACoder, and is a strong supporter of free software.
Through the Eyes of a Web & Software Developer
10 Mar
Well, I recently ordered a Sansa e280 from Amazon. I was looking for a good mp3 player that the open-source firmware RockBox supported. I noted that the v2 series was not supported, but Amazon did not state that it was such a model. You can imagine my disappointment once it arrived.
After debating whether or not to return it, I decided to keep it. v2s are out now, so v1 I assume will be discontinued - RockBox will eventually support it. And I’d like to provide aid to the RockBox team however I can. Unfortunately I have not looked into the firmware so I will not be much help in the actual development, however I will provide whatever information I can regarding the player, as the dev team does not own any v2s.
So, in deciding to keep it, I ran into a few problems. It was a bit frustrating, and in order to help save you guys some of the frustration, I’ll post some information on how to use it with GNU/Linux. Specifically, Ubuntu Gutsy.
Right when my Sansa arrived, I had a big problem - Ubuntu didn’t seem to recognize it. Depending on your firmware version, there’s a couple ways to solve this. I assume this applies to other distributions as well.
Before you begin, you need to load the necessary module. When it could not recognize my device, I checked dmesg and noticed the following message:
[38018.977087] usb 2-3: new high speed USB device using ehci_hcd and address 6
Entering the following command in the terminal should solve the problem of your device not being recognized:
sudo modprobe ehci_hcd
You probably don’t want to run that command every time you restart your computer, so open /etc/modules in your favorite editor (I recommend VIM, but gedit may be easier for some) as root and add “ehci_hcd” to the list. For example:
sudo gedit /etc/modules
Check your firmware version:
Firmware version 03.01.14A:
You must put the device into MSC mode:
Older v2 firmware versions (03.XX.XX)
You need to place the device into recovery mode:
If your device did not mount, please ensure you loaded the ehci_hcd module as discussed above. Run “dmesg” from a terminal to see any errors if it still does not work.
If you just pull out the USB cable from your device to disconnect from the computer after writing data, chances are you may lose something. If you have written data to the device, unmount the device before disconnecting the cable. Ubuntu users may use the following method:
You may also use the “umount” command from the terminal.
Above I mentioned two types of firmware. If you do not have the newest version, I recommend that you get it (so that the USB Mode menu is available). To upgrade:
I was rather annoyed and disappointed to see that SanDisk did not add OGG support in their v2 series. All my music I had converted to OGG format from mp3s and I had deleted the old mp3 files. So, I had to convert all of them back (I still keep them in OGG format on my computer) in order for the Sansa to play them. Once RockBox works, out with the mp3s again.
Once your music is in MP3 format, you may copy it to your device simply by placing it into the “MUSIC” folder. You may organize the music however you wish - feel free to place them in their own subfolders. As long as they are within the MUSIC directory, Sansa will recognize them.
Note that, for users who use MTP mode (Windows users or Linux users with MTP support), those files are not visible in MSC mode. Similarly, files in MSC mode are not visible in MTP mode.
In GNOME (I’m unsure with others), when you delete a file, it places it into a trash folder (unless you delete it with the “rm” command or use the Nautilus delete command rather than “Move to Trash). The files will not be removed from your device if you simply pull the USB cable, but the device will no longer list the music. So, it’ll be taking up space, but will be in a hidden folder (.trash). So, use the above method to properly disconnect from the computer. If you do so, it’ll prompt you to empty the trash on the device.
You may notice that some of your music isn’t properly displayed. The title, artist, etc may be displayed as “Unknown”, or the title may be the filename. This was something that had frustrated me for a while. So, I have a fix for you.
Download EasyTag (below step for Ubuntu users):
sudo apt-get install easytag
Once you have EasyTag installed, run it (for Ubuntu users it’ll be under “Applications - Sound & Video”). Don’t get too carried away yet. This is the part that frustrated me. If you try anything now, you may still have some problems. You’ll be able to save the track titles, artists, etc, however the track number will not properly save. So your tracks will be out of order. This is because the firmware does not support ID3v2.4, which is the default for EasyTag.
Now we can get to work. EasyTag will attempt to get as much information as it can from the filenames and other sources, so you should not have to enter much, if anything, by hand (I didn’t have to).
Tada! You should now have properly named songs and correct track listings.
This one also bugged me. Some other sites suggested using EasyTag to embed the album art in the MP3 file itself, but it never worked for me. So I figured out some alternate solutions. The Sansa was designed to work with Windows Media Player, so I looked at some old folders back from when I used Windows, before I ditched it for GNU/Linux. It would save the album art as “Folder.jpg”. So I copied Folder.jpg to the folder containing the album I wanted art for on the device, and sure enough, it worked!
Enjoy your album art
Yes, the v2 series supports M3U playlists! In EasyTag, you can generate a playlist by selecting files and clicking “Write Playlist…” in the toolbar. Save it anywhere in the MUSIC folder - you may also save them in sub-directories.
I’ll add more information on the Sansa if I can recall what else I had looked into. However, my true interest is in RockBox. Therefore, you can track the progress via the following links:
http://www.rockbox.org/twiki/bin/view/Main/SansaE200v2
http://forums.rockbox.org/index.php?topic=13961.0
http://forums.rockbox.org/index.php?topic=14064.0
Good luck!
Leave a reply