PiMAME: Little F.A.Q

![Pimame](https://misapuntesde.com/images/PiMAME.jpg)

We started the week resolving some questions you can find with this *Raspbian* loaded with emulators from *Shea Silverman*.

Here we go!


[Do not hear sound through HDMI]

Execute the following:


sudo amixer cset numid=3 2
sudo amixer cset numid=3 100%
sudo amixer cset numid=3 unmute

Edit the file *config.txt* as follows:


sudo nano /boot/config.txt 

and remove the # character from the line ***hdmi_drive=2***

[I can't see the ROMs in the emulators]

Runs under the command line as follows:


sudo chmod 644 roms/*.*
sudo chmod 755 roms

Remember that you can use files in *.zip* although beware with uppercase extensions.

[How to configure my Xbox 360 Pad]

Edit the file *advmenu.rc* as follows:


sudo nano .advance/advmenu.rc

and changes from none to auto in the line device_joystick

Now install the driver:


sudo apt-get install xboxdrv

Edit the file *rc.local* as follows:


sudo nano /etc/rc.local

and added after the lines with # characters the follow:


xboxdrv --trigger-as-button --id 0 --led 2 --deadzone 4000 --silent &
sleep 1
xboxdrv --trigger-as-button --id 1 --led 3 --deadzone 4000 --silent &

changing *--id * by *--wid * if your pad is wireless.

***NOTE:*** The pad will not work on menus, only in games.

[and my USB Pad]

OK. Install the driver:


sudo apt-get install joystick

With the pad connected, execute the following:


jscal -c /dev/input/js0

Where js0 is the pad 0, js1 is 1,...

In this calibration app, do not touch any buttons until prompted. First set the horizontal axis pressing ***back + button (0), center+button (128), front+button (255)***. For the vertical axis: ***up+button (0), center+button (128) and finally down+button (255)***.

[Why cant' load some ROMs in the MAME4ALL]

This version is a port of *MAME 0.37b5*:

  • [List of supported games](https://code.google.com/p/imame4all/wiki/GameList)

If it does not work the ROM you want, try the *AdvanceMAME*.

[Where can I get the ROMs]

Search on the internet, or the links below as the law of your country allows it (I am not responsible blah, blah, blah ...):

  • [Romhustler.net](http://romhustler.net/roms/mame)

  • [Romnation.net](http://www.romnation.net/srv/roms/mame103.html)

[End words]

The list of questions and answers will be updated with more questions. I recommend reading the [official forum](http://pimame.org/forum/) to answer your questions or below in the comments.

Thanks!

![pimame_case](https://misapuntesde.com/images/pimame_case.jpg)