Issue with screen distortion and P2B2 not working

Installing ARpiCADE for the first time? Having issues? Check here first for solutions and tips on installing.

Moderator: dee2eR

Macs
Community Member
Community Member
Posts: 24
Joined: Wed Nov 03, 2021 8:52 pm

Re: Issue with screen distortion and P2B2 not working

Post by Macs » Tue Nov 16, 2021 2:14 pm

dee2eR wrote:
Sat Nov 06, 2021 11:58 am
If you're happy to test some things with me I can post up some things to try sooner than the next full release (which has hit some new unexpected issues and become delayed while I work them out...).
yes please if you have a bit of time to spare with some changes ion the hdmi_timing I can test new values.
In the meanwhile I got a grasp on how it works and understood that if you change the value you have to change also in the launcher shell sacrips
or will not march the string test on the various IFs.

I can confirm that is an issue with the specific resolution, because switching to 480i does not produce the issue and I can see the various emulators and AM correctly, even if flickering due to interlace. Also the cut image on vertical games is not present, I imagine due the fact that more lines are avaiable.
I understood that retroarc avoid this issue setting a "viewpoint", but this is not available for normal mame.

Macs
Community Member
Community Member
Posts: 24
Joined: Wed Nov 03, 2021 8:52 pm

Re: Issue with screen distortion and P2B2 not working

Post by Macs » Wed Nov 17, 2021 9:50 pm

Macs wrote:
Sat Nov 06, 2021 3:54 pm
[...]
the screen is also cut on the lower part as you can see from psychic 5
Image

and does not matter if I play with the screen controls, the hidden part does not appear and the upper distortion does not disappear if I lower the image.
[...]
found the solution to this issue with mame172 ( that does not happen in mame230)

I modified the /boot/launchers/mame172.sh in the part for the 240p resolution to this and finally I have a full image:

Code: Select all

## rotated game
elif [ "$hdmitiming" == "hdmi_timings=1920 1 52 208 260 240 1 6 10 6 0 0 0 60 0 38400000 1" ] && [ $gameorientation == rotated ]; then
    aconfig="-keepaspect -unevenstretch -aspect 4:3 -waitvsync -throttle -uifont uismall.bdf" 
thanks to this old topic on the forum for the hints: viewtopic.php?t=465

Macs
Community Member
Community Member
Posts: 24
Joined: Wed Nov 03, 2021 8:52 pm

Re: Issue with screen distortion and P2B2 not working [SOLVED]

Post by Macs » Thu Nov 25, 2021 2:22 pm

Macs wrote:
Wed Nov 03, 2021 9:17 pm
[...]
Image
[...]
I solved also this issue finally!
I found a game where actually the resolution was correct without distortion and connected in ssh to the rpi4 while the game was running
I run this command to pick which hdmi_timings values was using:

Code: Select all

pi@raspberrypi:~ $ vcgencmd hdmi_cvt
hdmi_timings=1920 1 33 250 200 240 1 6 4 16 0 0 0 59 0 38120110 1
then with this timing I modified "/boot/config.txt" substituting the existing value for 240p@60 resolution with the new one found.
Then modified in the same way all the scripts in "/boot/launchers" that made reference to the old resolution.
Now works perfectly!

dee2eR
Inventor
Inventor
Posts: 1860
Joined: Tue Aug 22, 2017 2:07 pm

Re: Issue with screen distortion and P2B2 not working

Post by dee2eR » Mon Nov 29, 2021 5:02 am

Thanks for this @Macs, I should change it to the default 240p setting for the next release.

Post Reply