Can't run advmame on Pi4
-
-
@fadangalini said in Can't run advmame on Pi4:
I removed everything from the runcommand-onstart.sh and only have the line sudo cat /sys/kernel/debug/dri/1/state
here is the runcommand.log below
link textThere's no extra detail, unfortunately, in the new log - looks like the output is not saved in the runcommand. Replace the command with
sudo cat /sys/kernel/debug/dri/1/state >/dev/shm/modinfo.txt
and then post the
/dev/shm/modinfo.txt
log file. -
Ok, I've just tried that, this time the game has frozen rather than go back to EmulationStation.
But here is the mod info.txt file below:
link textI have to go to work now and won't finish till midnight, so I won't be back on again now until the morning.
Look forward to speaking again tomorrow and thanks for your time so far.
-
@fadangalini said in Can't run advmame on Pi4:
But here is the mod info.txt file below:
link textFrom the log output, there's no other program using the GPU at the time, so in that respect it's ok. Might want to try @dankcushions's suggestion and reserve a bit of GPU ram in
config.txt
, though on the Pi4 the VRAM for the GPU is dynamically allocated from the RAM and the following stanza shouldn't be necessary for emulators:gpu_mem=128
-
-
Not sure what happens with your setup.
I wrote a stock 4.7.1 image and installed justadvmame
, it works fine. Updated the image (RetroPie and the OS, from the Update menu in RetroPie-Setup), it still works fine. This is withadvmame
, not the olderadvmame
version (advmame-1.4
oradvmame-0.94
).Are you running EmulationStation from the desktop or you're just using the default setup (ES runs at boot) ? Did you update the image ? Any other configurations on the system ?
-
I have no idea...
I've just tried similar to you.
I got a fresh MicroSD card, installed the latest 4.7.1 from RetroPie.org.uk.
setup wifi and ssh. installed advmame and put some roms in /home/pi/retropie/roms/mame_advmameI updated everything I could.
This time they do not crash, but the video and audio are the same, very slow and choppy. Using the tab button in game it says 'advance mame 3.9'.
On my original setup on the other sd card it doesn't say 3.9 in the menu. and none of the folders are labelled with 1.4 or 0.94, just 'advmame'
Do you think it might be to do with the HDMI setup to the screen? Just clutching at straws as i'm clueless really, as mame2003 works fine, along with snes, mega drive, redream... and everything else.
Both setups are the default, ES runs from boot.
-
Maybe it's the roms? I got them from a couple different places, they say 0.106 non-merged sets...
here's a quick vid of one running...
No errors in the runcommand.log at the moment.
-
@fadangalini said in Can't run advmame on Pi4:
Maybe it's the roms? I got them from a couple different places, they say 0.106 non-merged sets...
Is this from the system where you have problems ? Usually a bad ROM will result in a different kind of error -
advmame
will list the missing ROMs and exit cleanly.On my original setup on the other sd card it doesn't say 3.9 in the menu. and none of the folders are labelled with 1.4 or 0.94, just 'advmame'
There are no folders labelled with the version and you can't install these older version on a Pi4 anyway, but I just mentioned the version to make sure we're on the same page.
-
This is on a fresh new install on the same pi.
Thought i'd see if that worked and if it did I was going to start from scratch.Ok, so at least the roms are probably ok... just to find the problem haha.
I think we are on the same page with regards to the advmame version.
I've just made a backup of the original sd card with the original problem before fiddling too much.
-
@fadangalini I suggest you continue on this new installation - if any ROMs are not working, check the
runcommand.log
and see ifadvmame
reports what's missing. -
I'm at a loss. I don't understand how I can do a fresh install like you, yours works, mine doesn't.....
I'm going to start from scratch again.
Is yours overclocked? Clutching at straws again.
Also, installing advmame from RetroPie, do you install from pre-compiled binary? or the other option?
-
@fadangalini said in Can't run advmame on Pi4:
Is yours overclocked? Clutching at straws again.
No, there's no overclock.
Also, installing advmame from RetroPie, do you install from pre-compiled binary? or the other option?
I installed from binary,
advmame
hasn't had any recent updates so it doesn't matter what installation method you choose - you get the same version. -
Thanks for your reply again.
I'll have another crack at it after work tomorrow. Had to spend all day doing uni work... Not enough hours in the day! -
So you know and anyone else that has the same problem and finds this thread, it is now working.
The problem turned out to be my TV.
I was reading the advmame website and it says that it automatically adjusts to suit the tv, and I thought that must be the problem.Currently I have everything setup in my living room as I wanted to get everything working before building the cab. I had it connected to my Sony Bravia 4K 55" tv, and this was where I was getting the problems. I just hooked the pi up to the monitor (Dell 1080p) I'll be using in the cab and it's working perfectly. Think a small amount of tweaking will be required in the settings but other than that, it's great!
Just a note, everything else was working fine on the Sony, just advmame giving me problems.
Just happy it is now working, after I don't know how many hours of fiddling!
Many thanks to you, dankcushions and stoney66 for your time and help.
-
@fadangalini said in Can't run advmame on Pi4:
I was reading the advmame website and it says that it automatically adjusts to suit the tv, and I thought that must be the problem.
I wonder if the problematic TV is running at 4k ? You may be able to force the Raspberry Pi to run at 1080p and maybe this would solve the issue.
-
@fadangalini poop I also had this issue but forgot about it. Didn't work on my front room TV (4k) but did fine on my cabinet TV which is only 1080, it was the same really choppy. Had to set the resolution down and that fixed it. I only used the front room TV when I was migrating from pi3b to pi4 to test.
-
Thanks, I won't bother adjusting that now, as I know it will work when I build it properly.
One step forward and one back. I can't get the audio to output through the usb device now. Admittedly, i have only just tried.
It just worked on my newly setup test microsd card when I followed a guide saying to create a file at /etc/modprobe.d/alsa-base.cong to reorder the devices. That worked fine.
Went back to my other card that has everything setup, all emulators,, custom configs, controls etc. Followed the guide again, and nothing haha.
I do always get a message saying "failed to find mixer elements", which I've been getting on that setup for some time, but the audio always worked through the HDMI on the 4k tv.
Problem with the actual monitor i will be using.... doesn't have speakers, hence trying to get the sound working through the usb dongle.
Currently googling.... again haha.
-
Strange, I guess it's not expecting a 4k tv on the end of it to run 30 year old games!
-
@fadangalini Just disable the onboard audio in
config.txt
and it should be enough.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.