Tag Archives: slax

Retroarch ALSA audio over HDMI … working!

First we need to know where the HDMI output is on our hardware. Let’s use the aplay command:

aplay -l

This will return something like the following lines:

card 0 ... device 0: ... Analog ...
card 0 ... device 1: ... Digital ...
card 0 ... device 3: ... HDMI ...

In my hardware configuration I found that my integrated onboard audio card “0” uses the “3”rd device as HDMI out.

In my “retroarch.cfg” file I wrote the following (notice the mysterious “audio_device” parameter):


I noticed that the out rate parameter at 44100 is mandatory. With another values (i.e. 22100) the audio was not working.

The only issue is that when the emulator runs at < 100% the audio is glitchy. I can try disabling rewind: it seems emulation runs faster this way.
Some user reported that this problem doesn’t exist using SDL (not yet tried).

Some reference:


Posted by on 2014/02/28 in sys


Tags: , ,

Slax 7 on HDD: how to fix the “failed to load com32 file /slax/boot/vesamenu.c32” boot error


I succesfully installed Slax 7 on my HDD using the ./ command then, on boot, the system was unable to boot from the HDD. I found that when this error occurs, it is needed to change the SYSLINUX bootloader with another version (don’t know why).
I tried the one suggested in the other post and it worked fine.
To install the bootloader we’ll use the extlinux utility (the synopsis says that it works on ext2 / ext3 filesystems, I was on an ext2 fs).

Download syslinux-4.06.tar.gz and bring it into a newly created folder of the hdd. Then

tar xvf syslinux-4.06.tar.gz
cd syslinux-4.06/extlinux
./extlinux --install /media/system/slax/boot/

Remember that my hdd was labelled “system” and (automatically) mounted on /media/system/


Posted by on 2013/09/11 in sys


Tags: , ,

Installing VirtualBox Guest Addition on SLAX

(edit: fixed the wrong command as “Frustrated Slax User” suggested)
It’s a pretty easy task but, every time, I made some mistake …
Here’s the full procedure.

Tip, before you begin:
if you are in a liveCD environment, you’ll need to configure two cdrom readers.

First you need the linux sources / headers, because the modules will be built into the kernel.

slax activate kernel-devel

Then, from your host, you have to mount the .iso Guest Additions file.
On Windows you can find the file in C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso.
On Linux it is in /usr/share/virtualbox/VBoxGuestAdditions.iso

Finally we can launch the installer within the guest VM. We have to mount the virtual cdrom

mkdir /mnt/cdrom
mount /dev/sr0 /mnt/cdrom
cd /mnt/cdrom



Done! =)

If something went wrong check the logs in /var/log/VBoxGuestAdditions.log
To verify if one module is currently running you can use the modinfo command: modinfo vboxvideo.
To start one module’s daemon there is the VBoxClient command. I.e. running VBoxCLient –display will starts the video driver daemon (that allows the guest automatic resize).

1 Comment

Posted by on 2013/05/02 in sys


Tags: , ,

Restoring the network into the guest VM

Sometimes into my VirtualBox guest (a Slax vm), it happens that I lost connectivity with the “outside” world. I do actually use a virtual NAT network adapter.

Edit: I found a better (see native) version to fix the connectivity! Be aware that, for an instant, eth0 will go DOWN (then up).

dhcpcd eth0 -n


Here’s the trick to restore it:

pkill dhcpcd
nohup dhcpcd eth0 &

This way I’ll kill and restore the DHCP client daemon.

I surely know this is the lazy way….I’ll should test one of these to kill the service (from man dhcpcd):

dhcpcd -k
kill -1 pid 

and one of these to restart it:

/etc/init.d/dhcpcd start

or maybe a renew:

dhclient -r
Leave a comment

Posted by on 2013/03/04 in sys


Tags: , ,