Martin Cooper's Linux Blog

All things Linux …

Tag Archives: Squeeze

SanDisk Sana ClipZip

SanDisk_ClipZip

SanDisk Sansa ClipZip

My latest mp3 player is the SanDisk Sansa ClipZip 8GB version in black or as they can it stealth black, it’s bigger than the iPod Nano and does not have a touch screen but to me they are both advantages. It has a large clip which makes it very easy to clip to any clothing and has a very simple button push system to work your way through the menu system. I use it to play mp3 music, podcasts and audio books all of which have their own menu options. The Clip works well with Linux which provided you switch USB mode to MSC sees the files system in a File Manager. You can then copy music, podcasts and books into their own folders on the Clip. Here are a few of the options I have found to work for me please note all my music, podcasts and audio books are either in mp3 or ogg format.

Volume too low?

If you chose Europe as you Region during initial set-up, there’s an EU restriction in place where you don’t have a High volume setting and the volume is capped. Reset your Factory Default Settings and choose ‘Rest of World’ to get the High and Low option on volume.

Album Art

I found some of my album art failed to show because although the file size was correct 96×96 pixels the resolution was very high making the file size large. I now make my images 72×72 ppi resolution 96×96 pixels in size which make the file size about 10kb. I name the file folder.jpg and store it in the same folder as song(s). I don’t embed the album art and remove any that is already there.

Playlists

After I updated the firmware to v20 I finally got my Sansa ClipZip to recognize playlists in m3u format created in EasyTag on Debian.

  • Connect the Clip to the PC in MSC mode.
  • Browse to the music folder of the ClipZip and your music should show in the middle pane of EasyTag.
  • Highlight the Files you want to add to a playlist in the middle pane of EasyTAG.
  • Click on the [Write Playlist] icon in the toolbar.
  • The [Generate A Playlist] window should now open.
  • [M3U Playlist Name], select [Use mask]¬† and name it.
  • [Playlist Options] select [Include only the selected files].
  • ¬†Then select [Use relative path for files in playlist].
  • and [Create Playlist in the parent directory].
  • and [Use DOS directory selector].
  • In [Playlist Content] select [Write info using filename].
  • Save the result which should save a playlist.m3u file in the root of your music folder on the ZipClip. Unmout the ClipZip and test.

You may need to experiment with these instructions if you have set-up your music in separate folders.

Advertisements

mp3gain

I normally use the GUI version of this program to level the gain on mp3 music files but I wanted to do the same job automatically in a small script to level out all my podcasts in their seperate folders prior to loading them onto my mp3 player.

The values I use are;

-c : ignore clipping
-p : preserve file modification time
-r : apply Track gain
-d 6.0: makes it 95.0 dB (defaults to 89.0)

The script I use moves to the main Podcast folder then line of script finds all mp3’s in the sub-folders with it.

$ cd /home/martin/Podcasts

$ find . -name *.mp3 -exec mp3gain -c -p -r -d 6.0 ‘{}’ \;

This then levels out the gain on all podcasts to 95db.

GRUB2, change the background image

I’ve just install Debian Wheezy and don’t particularly like the space themed background so decided to replace it

I just want a black background so produced a black image in GIMP 640×480 pixels called grub.png then copied it from my home to /usr/share/images with

$ sudo cp ~/martin /usr/share/images/grub.png

then I edit grub with;

$ sudo leafpad /etc/default/grub

and add

GRUB_BACKGROUND=/usr/share/images/grub.png

under this section:

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
GRUB_CMDLINE_LINUX=””
GRUB_BACKGROUND=/usr/share/images/grub.png

and uncomment
GRUB_GFXMODE=640×480

then update it with;

$ sudo update-grub

on reboot I now get GRUB with a all black background, changing the GRUB_TIMEOUT=5 number will also change the time GRUB shows on the screen, GRUB_TIMEOUT=0 with prevent it showing at all if you wish.

GTK Apps i.e. VLC look ugly in Debian Wheezy

VLC looks very ugly on my Debian XFCE desktop but you can control the look of Qt apps with a program called qt4-qtconfig you can find it in the Software Manager or use the command line:

$ sudo apt-get install qt4-qtconfig

Then you’ll find it in: [Menu], [Settings], Qt 4 Settings on XFCE

If you want qt apps to use the same theme as your other apps open Qt 4 Settings
Then Select [GUI Style:] as GTK+
Then use [File], [ Save] and exit.