DIY Pi2Jpac Jamma Adapter

mappy24

User
Credits
43CR
I've been watching this thread for a while now and since I managed to fry the PC motherboard inside my cab at the weekend I've started to build one of these as a replacement. I've got it all working without any sound, I have the USB sound adapter and the stereo amplifier on order.

I've been reading over this thread and I'm a bit confused about the whole stereo > mono thing, how do I downmix the audio from the pi to mono? One of the posts early on suggested that there was a config option in the setup menu to downmix the audio, but I can't find that anywhere.

mappy242020-10-06 21:30:01
 

Flinnster

The Dino King
vacBacker
Feedback
29 (100%)
Credits
2,566CR
Yeah you can set advancemame to output in mono if needed, you don't need to do a hardware downmix. I was only doing that because I wanted the option to plug in stereo headphones and also to connect stereo cab speakers if I fancied.

In advancemame it's in the audio menu when you are in a game.
 

chunksin

Active member
vacBacker
Feedback
21 (100%)
Credits
733CR
Here you go, replace the contents of /etc/asound.conf with this:

pcm.card0 {

type hw

card 0

}




ctl.card0 {

type hw

card 0

}




pcm.monocard {

slave.pcm card0

slave.channels 2

type route

ttable {

# Copy both input channels to ouput channel 0 (left)

0.0 0.5

1.0 0.5

# Send nothing to output channel 1 (right)

0.1 0

1.1 0

}

}




ctl.monocard {

type hw

card 0

}




pcm.!default monocard

You may need to change the card ID from 'card 0' to 'card 1' if you are using USB sound
 

mappy24

User
Credits
43CR
Thanks guys, I did stumble across that code last night when searching for a solution. I'll give it a go when the amp etc. turns up.

Great work by the way!
 

mappy24

User
Credits
43CR
I have the hardware sorted, but I'm confused about the software setup. I've used Attract Mode before on Groovy Arcade, so I'm happy to go with that.

Right now I have some roms copied to the mame-172 folder and a some roms copied to the mame-106 folder and I have two displays in attract mode, one for 'mame172' and one for 'advmame'. I assume that the Main Game List display should combine all the available games into one big list? The "Main Game List" is blank though, how do I populate that one?

Another thing I've noticed, when I try and configure the wi-fi on the pi, I just get a black screen? I have to press escape to get back to the service menu. This is a fresh install of the JammaPiThing image.

Cheers

Ian

mappy242020-10-08 23:38:19
 

Flinnster

The Dino King
vacBacker
Feedback
29 (100%)
Credits
2,566CR
If you press the start button, select the 'service menu', and then go down to 'arcade romscan'.. it should populate the game main list for you - if you are using one of Chunksin's excellent images.

You can also set it to romscan on bootup if you do a lot of chopping and changing of ROM images.

Generally you should find the vast majority of games are fine on MAME-106.

I think I have only a few in 172.. Street Fighter 3rd Strike, Demon Front on PGM as a couple of examples.
 

Flinnster

The Dino King
vacBacker
Feedback
29 (100%)
Credits
2,566CR
Even after a reboot?
smiley5.gif


As for wifi, I don't use that I'm afraid, so one for Chunksin to explain there.

Flinnster2020-10-09 00:11:52
 

mappy24

User
Credits
43CR
Yeah, even after a lucky white reboot
smiley36.gif
but that did fix the black screen when going into the wifi menu, can't get the wifi to work though, but that's less of an issue.

I'll flash the image again later, if I understand correctly, all I have to do is copy a few roms to the /media/usb0/roms/mame-106 and /media/usb0/roms/mame-172 folders then do a rom refresh from the service menu, then ALL the games from all versions of MAME should be combined in the Main Games List?

Just trying to get my head around how this all hangs together.
 

chunksin

Active member
vacBacker
Feedback
21 (100%)
Credits
733CR
You'll need to enable USB storage in the service menu too

The Wifi menu uses a bash shell menu and for some reason if you have already run a game in advancemame, those menus just display a black screen, something to do with the resolution switch, I never tracked down that bugette
 

mappy24

User
Credits
43CR
Chunksin said:
I've added a link to the readme file in my download links post in the MAME section, it's buried somewhere in this thread

Thanks, got the main games list working, but I'm not sure what I did differently this time.
smiley36.gif
 

mappy24

User
Credits
43CR
I'm having difficulty with Kung-Fu Master, the screen just rolls and no amount of tweaking the vertical frequency will fix it. I can slow it down but can't get it to stay still. Does anyone else have this issue?!

All other games I've tried so far are perfect!
 

sapporo46

User
Feedback
2 (100%)
Credits
69CR
Hi all, apologies if I come across as lazy but to save me reading through the entire thread: will this work with a Pi2Jamma-only setup, or does it need a JPAC? I tried the image and it won't get past the splash screen on my Pi 3B
 

Flinnster

The Dino King
vacBacker
Feedback
29 (100%)
Credits
2,566CR
There is a high res mode for outputting via HDMI alone to modern monitors.

But not sure how to enable it as 'default' as I always use this on a jamma cab 15khz screen, via a JPAC yeah.
 

sapporo46

User
Feedback
2 (100%)
Credits
69CR
Sorry, should have been more specific: my Pi is connected to the pi2jamma card which goes to the jamma harness in my cab (with 15khz CRT monitor).

ATM I can't recall if it stays on the splash screen, or clears the splash screen and then there's no other video output.

I'll try it again and look at the Pi's activity lights.

EDIT: It clears the splash screen then I get nothing on the monitor. Judging by the activity lights, the pi doesn't seem to be doing much.

sapporo462020-11-18 22:44:31
 
Top