Skip to content

Instantly share code, notes, and snippets.

@mackermedia
Forked from Fosome/gist:11298160
Last active August 29, 2015 14:00
Show Gist options
  • Save mackermedia/11304905 to your computer and use it in GitHub Desktop.
Save mackermedia/11304905 to your computer and use it in GitHub Desktop.
Setting up USB controllers & Audio on Raspberry Pi

For audio out of 3.5mm jack:

sudo amixer cset numid=3 1

If you want it back to auto:

sudo amixer cset numid=3 0

For snes controller Tomee thing working:

I use a cheap usb snes controller copy by a company called Tomee.

I just installed joystick sudo apt-get install joystick

Calibrated and tested it jscal /dev/input/js0 jstest /dev/input/js0

For advmame I had to change a setting in the advmame.rc to help mame recognize the y-axis device_joystick raw

Once set up the gamepad has worked with almost everything I have installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment