Tag Archives: RPizeBox

RPizeBox + Soundblaster Play!

I hated the fluttery background noises on the standard analogue audio jack on the RPi, so bought a Soubdblaster Play! for £20 from eBay.

http://elinux.org/RPi_VerifiedPeripherals#Class_compliant_USB_sound_cards said:

edit /etc/modprobe.d/alsa-base.conf and comment out the last line; options snd-usb-audio index=-2

I actually commented out all the extra lines that ended -2 and now I have excellent quality audio.  Really pleased.  The RPiBox is complete.  Wires for the GPIO and an improved larger screen have arrived.  I just need to find a container.

Moving RPizeBox to git


Now I have the proof of concept for the RPi, I wanted to improve the code and have long term plans to make it remember tracks we skip, as well as allowing a blacklist!  I wanted to keep some sort of version control, and this is where git comes in.  I have been aware of git for a while but don’t really know much about it.

I now have created my own git hub for RPizeBox at https://github.com/thomaswwp/RPizeBox. I also forked PyLMS (which appears to be abandoned) and will eventually include it in my build as a module, rather than simply importing the code.

I have reduced the code to two scripts, but this looks like it has increased the CPU overhead to about 6%, so I may revert to what I had before.

I have also made a Fritzing diagram of the setup for future reference.


I also found that the skip forward button was broken on the remote, so just remapped other buttons.



LIRC setup on RPi #2

After, much MUCH frustration in failing to get LIRC to recognise my remote on my spare RPi, I set it up fresh on the actual RPizeBox, just to see what happened.  The steps were something like those described on alexba.in but I am copying them here.  Spot the minor change.  Thanks alexba.in!

Add this to /etc/modules file:

Change /etc/lirc/hardware.conf file to:

Restart lircd so it picks up these changes:

It worked immediately.  Here are the remote codes appearing.

I set up pylirc the easy way this time!


I then downloaded the pylirc_test.py and its conf file as suggested in the Voice of Reason and optimistically ran it.  And nothing happened at all, which was very disappointing indeed.  But I am one step closer I guess.  Maddening that it didn’t work with the other RPi.

I then found this glorious page from 2009 by Will Miro.  It helped me make a config file that worked and finally I got the test page responding.  I think that is enough for now.

LIRC setup on RPi

Notes on getting pylirc installed on my RPi.

pylirc seems to be abandoned, but pylirc2 exists albeit on flaky server?   I manually downloaded setup.py and pylircmodule.c from


to folder /home/pi/pylirc2

But I couldn’t get pylirc working 🙁

RPizeBox Display code

Here is the code for now. It needs pylms downloaded and wiringpi2 to work.  I made some changes to pylms player.py to allow for accented letters in the titles so I just load the code rather than importing it.