• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

How to center image of retroarch with PI outputing 240p rgb via hat board/gert 666 to pvm?

Scheduled Pinned Locked Moved Help and Support
240p rgb gert66video centeringpvm
36 Posts 7 Posters 14.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Molhoy
    last edited by 12 Mar 2017, 21:12

    Hey there,

    I'm experiencing exactly the same issue, the only difference being that I'm using the pi2scart from arcadeforge (http://arcadeforge.net/PiJamma/PI2SCART::264.html).

    My PVM is a 20M2MDE and, like you, I have my geometry settings perfectly balanced for all my original hardware - no two consoles are identical in their RGB screen position, but they are close enough that I can find a happy balance. However, with the Pi outputting 240p the image is WAY off centre.

    My timings (as recommended by arcadeforge): -

    hdmi_timings=320 1 16 30 34 240 1 2 3 22 0 0 0 60 0 6400000 1

    This produces an image that is too far to the left and too low, cutting off the left and bottom of the screen and resulting in a black border on the right and top of the image.

    I also tried the timings suggested by maxriptide. Interestingly this had the opposite effect on the vertical axis - resulting in the image being too high. However, it was even further to the left!

    This obviously suggests that with the correct timings we could produce an image that was in the correct position. Unfortunately, I have zero understanding of how to calculate the appropriate timing values and I'm afraid that by randomly experimenting I could send a signal to my PVM that could damage it.

    Hopefully somebody with superior knowledge can help us figure this out!

    R 1 Reply Last reply 14 Mar 2017, 01:32 Reply Quote 0
    • R
      rig @Molhoy
      last edited by 14 Mar 2017, 01:32

      @Molhoy hey buddy. I got some info for you. I was able to center my image perfect on the 20mumdu by adjusting the geometry on the pvm. After using it for a while my pvm started having problems. The image would flicker (it looked kind of like someone was hitting overscan on and off continuously). I then adjusted the pvm geometry back to how it was and the flicker went away. I don't know if adjusting the geometry did this or if I have another problem but I am not going to chance it. I have heard that if you adjust your geometry too far it can damage your monitor.

      I was able to move the image in the retropie settings so that the image is not cut off on the LT however I was not able to get rid of the black bar on the RT. I did this by adjusting the settings in the config folder of the sd card. If you delete the # in front of the comands in this folder it enables that comand line. There are a couple comand lines you can mess with. One says something like"move overscan to the LT" or "move overscan to the RT" if you input a positive value i,e 10 on the RT line it will move the image so it is not cut off, theoretically you can enter a value for the LT like -10 and it should get rid of the black border on the LT but I couldn't get this to work. Another command line says "disable overscan=1" or something like that, you can mess around with this and it might help, you could set it too disable overscan=0 or =1...
      good luck! Let me know if you figure anything out :)

      D M 2 Replies Last reply 14 Mar 2017, 05:34 Reply Quote 0
      • D
        Dochartaigh @rig
        last edited by Dochartaigh 14 Mar 2017, 05:34

        @rig
        Rig, is this the setting in the /boot/config.txt you're messing with?

        # uncomment the following to adjust overscan. Use positive numbers if console
        # goes off screen, and negative if there is too much border
        #overscan_left=16
        #overscan_right=16
        #overscan_top=16
        #overscan_bottom=16

        I'm also running the PI2SCART, which should be REALLY similar to the VGA adapter (both output an RGB signal in essence). I likewise have my PVM monitor setup perfectly for my real console NES, SNES, Genesis, and PS1 systems - and don't want to mess up those settings.

        I've tried like 2 or 3 of Maxriptide's settings, the ArcadeForge settings, maybe 10 different settings I've found online, and tried tweaking my own numbers as well, and they either brick my display, or my picture is still way too large, and/or off centered. I never thought to mess with the overscan settings as everybody seems to be focused on the hdmi_timings line of code.

        All I really want to do it contract the screen around 10 pixels per side. I wonder if you can use negative numbers for the overscan? - since if I turn overscan on (by uncommenting/removing the # symbol) I think that would enlarge the picture by 16 pixels per side. I have to check what I have for disable_overscan as well (It's usually disable_overscan=1 because with that off the picture is too small...but that's kinda what I want on my PVM monitor now so I might add the # symbol back).

        E R 3 Replies Last reply 14 Mar 2017, 06:58 Reply Quote 0
        • E
          edmaul69 @Dochartaigh
          last edited by edmaul69 14 Mar 2017, 06:58

          @Dochartaigh you can use negative numbers in the overscan. It shrinks the picture. Put the # back on the disable overscan and manually adjust. The disable overscan can be a part of your problem.

          M D 2 Replies Last reply 14 Mar 2017, 08:11 Reply Quote 0
          • M
            maxriptide @edmaul69
            last edited by 14 Mar 2017, 08:11

            I have tried to modify the overscan settings a couple of months ago, I found it useless since the video output is sort of resized and its sharpness is lost...

            1 Reply Last reply Reply Quote 0
            • R
              rig @Dochartaigh
              last edited by 14 Mar 2017, 15:57

              @Dochartaigh yeah, thats the part I messed with. I was able to change the image so it didn't cut off on the lt side. I think my setting is "overscan_left=4", or something around that. Don't let the "16" confuse you. the default is zero. Work from there. Supposedly you can add negative values i.e. -4, to get rid of the black border but I found that this didn't do anything for me....The black border on the RT of my display is pretty small so I have learned to just live with it. On some mame games the black border is not there i.e. Willow.

              Maxriptide mentioned that you can lose some sharpness by messing with these settings but I haven't noticed this.

              When I messed with the "disable_overscan=1 " it didn't do anything.

              1 Reply Last reply Reply Quote 0
              • R
                rig @Dochartaigh
                last edited by 14 Mar 2017, 16:06

                @Dochartaigh I reread your post. If your image is cutoff on the lt and cutoff on the bottom try using

                uncomment the following to adjust overscan. Use positive numbers if console

                goes off screen, and negative if there is too much border

                overscan_left=7
                #overscan_right=16
                #overscan_top=16
                overscan_bottom=7

                (notice that I only removed the "#" on the "left" and "bottom" (since this is where your issue is) if you end up with a black border after this adjustment use a smaller number i.e. 4, if you still have some image cutoff use a bigger number i.e. 12

                1 Reply Last reply Reply Quote 0
                • D
                  Dochartaigh @edmaul69
                  last edited by 14 Mar 2017, 17:10

                  @edmaul69 said in How to center image of retroarch with PI outputing 240p rgb via hat board/gert 666 to pvm?:

                  @Dochartaigh you can use negative numbers in the overscan. It shrinks the picture. Put the # back on the disable overscan and manually adjust. The disable overscan can be a part of your problem.

                  Now that I think about this I think (not positive) on this first round of tests I left EVERYTHING in the boot/config.txt in default format (which I normally ALWAYS change the overscan for my LCD TV's). And only added the timing and code ArcadeForge said to use for the PI2SCART (which is where I need to mess with other settings to shrink the screen)...so I think my only option left is the overscan to shrink this image so it fits the screen properly.

                  @maxriptide said in How to center image of retroarch with PI outputing 240p rgb via hat board/gert 666 to pvm?:

                  I have tried to modify the overscan settings a couple of months ago, I found it useless since the video output is sort of resized and its sharpness is lost...

                  What else would you recommend I try? I've tried all your hdmi_timings I found on this forum, and about 10-12 others I found scattered across the internet, and tried slightly tweaking many of those by a couple digits. Whenever the screen looks good it's cutting off a ton of the picture (and again, tried this on multiple PVM and BVM monitors so it's definitely the computers' settings since everything is near perfect on my RGB SNES, Genesis, and PS1 hooked up via BNC/RGB+sync wires).

                  @rig said in How to center image of retroarch with PI outputing 240p rgb via hat board/gert 666 to pvm?:

                  (notice that I only removed the "#" on the "left" and "bottom" (since this is where your issue is) if you end up with a black border after this adjustment use a smaller number i.e. 4, if you still have some image cutoff use a bigger number i.e. 12

                  My pictures is actually cut off on ALL sides - like the entire image is 10% too big and just needs to be shrunk...so I'll have to change all those numbers to decrease the size it looks like.

                  R 1 Reply Last reply 14 Mar 2017, 23:01 Reply Quote 0
                  • R
                    rig @Dochartaigh
                    last edited by 14 Mar 2017, 23:01

                    @Dochartaigh yeah if its cut off on all sides I would try a value of 10 on all values"top" "bottom"" LT" "RT"

                    1 Reply Last reply Reply Quote 0
                    • M
                      Molhoy @rig
                      last edited by 15 Mar 2017, 20:20

                      @rig Thanks for the feedback and your experiences with the overscan function. Also interesting to hear feedback from others too.

                      I have since tried it on my set up and used the following values: -

                      overscan_left=20
                      overscan_right=-20
                      overscan_top=-10
                      overscan_bottom=10

                      Bizarrely, the changes had exactly the desired effect... but only on the initial screen when the 3 x raspberry logos are shown, then on the initial Retropie screen with the Retropie logo, and then only on the game launch screen (the one that says which emulator is loading and gives the screen prompt to press a button to change the config for the game that's being loaded).

                      In all other situations - i.e. in the Retropie menus and, crucially, in game, the screen position defaults to the same as before I altered the overscan values.

                      What on earth is going on there?!

                      On a more positive note, doing the above seemed to have no negative effect on the image quality - i.e. it did not scale the image, only reposition it (albeit only in the limited situations above). I assume this is because I entered same value + and - figures for the left/right and up/down values - i.e. +20 left, -20 right. I haven't tried it, but I assume that if you alter one value but don't compensate on the opposite side, it will scale the image and produce unwanted artifacts.

                      In any event, I'm deeply puzzled as to why the overscan settings only work on the boot screens.

                      Colour me confused!

                      D 1 Reply Last reply 15 Mar 2017, 21:45 Reply Quote 0
                      • D
                        dankcushions Global Moderator @Molhoy
                        last edited by dankcushions 15 Mar 2017, 21:45

                        @Molhoy
                        try overscan_scale = 1 in addition to those settings.

                        M 1 Reply Last reply 15 Mar 2017, 23:24 Reply Quote 0
                        • M
                          Molhoy @dankcushions
                          last edited by 15 Mar 2017, 23:24

                          @dankcushions Thanks for the suggestion.

                          The good news is that this now means that my overscan values work on everything including all menus and games.

                          The bad news is that this is producing scaling artifacts, despite my entering the same value + and - figures for the left/right and up/down parameters as described above. I guess this is what maxriptide was experiencing.

                          The problem seems to stem from the fact that negative values have no effect, as described by rig.

                          To be clear, I tried this with disable_overscan both on and off, with apparently no difference between the two.

                          This reaffirms my belief that it's the timings that are at fault.

                          As a matter of interest, I've also tried it on my Sony consumer CRT (model KV-21LS30U) and the picture is centered in a very similar fashion to my Megadrive, which is obviously very different to the experience I'm having with my PVM. I can't imagine why this would be, but just thought I'd mention it.

                          Back to the drawing board!

                          R 1 Reply Last reply 17 Mar 2017, 00:18 Reply Quote 0
                          • R
                            rig @Molhoy
                            last edited by 17 Mar 2017, 00:18

                            @Molhoy have you tried my timings? there are a couple different ones you can choose from. They are listed at the beginning of this topic. Maybe we can try other people's timings until we find one that works

                            M 1 Reply Last reply 18 Mar 2017, 22:10 Reply Quote 0
                            • M
                              Molhoy @rig
                              last edited by 18 Mar 2017, 22:10

                              @rig I've tried a few different timings, including a couple from your list (which I'd already got from the RetroRGB website).

                              The ones I've tried are: -

                              hdmi_timings=320 1 16 30 34 240 1 2 3 22 0 0 0 60 0 6400000 1 (from ArcadeForge)
                              Image is pushed too far left and low. Also bows out slightly at the bottom of the screen.

                              hdmi_timings=320 1 25 30 30 240 1 9 3 10 0 0 0 60 0 6400000 1 (from maxriptide)
                              Image is pushed even further left, but this time is too high.

                              hdmi_timings=320 1 20 29 35 224 1 10 14 16 0 0 0 60 0 6400000 1 (from RetroRGB, also on your list above)
                              Image is pushed too far left and low, similar to the first set of timings. Bows out at the top of the screen.

                              hdmi_timings=320 1 14 46 28 256 1 17 32 9 0 0 0 50 0 6400000 1 (PAL Amiga resolution, from RetroRGB, also on your list above)
                              Image is once again pushed too far left and low, also significantly warped in top half of screen. Unusable.

                              The bowing/warping/geometric abnormalities are strange and not something I experience on real hardware. Obviously it's related to the timings somehow, but just adds a further layer of complication to finding the best set of timings!

                              I'll update you if/when I try anymore.

                              1 Reply Last reply Reply Quote 0
                              • R
                                rig
                                last edited by 18 Mar 2017, 22:42

                                Thanks for the update. I haven't tried anything lately. I gave up on it for a while so I could play some games. But I plan to work on it again later. I haven' tried out any other of my own timings, I think I will start there. I noticed that I had the same geometry issues on two different pvms. This makes me think that it's something idiosyncratic to each individual pie. We could try a different pie and keep everything else the same. I might try this. I have been thinking about getting another pie anyways for watching movies with my other pvm. Have you tried your pie on a deferent monitor?
                                How do you like your pvm 20m2mde? I have an opportunity to buy one right now, the specs look similar to my 20m2mdu which has a pretty soft image (not ideal for gaming)

                                M 2 Replies Last reply 18 Mar 2017, 23:42 Reply Quote 0
                                • M
                                  Molhoy @rig
                                  last edited by 18 Mar 2017, 23:42

                                  @rig Heh heh, now you've started me off on something...

                                  In answer to your question, the only other CRT I've tried with the pie is a Sony consumer CRT - model KV-21LS30U. On that, the image is pretty much perfectly centered and is essentially in the same 'ball park' as all my other systems, whereas on my PVM the centering of my Pie image is miles away from everything else. It's a total mystery to me.

                                  I've become a bit of a CRT obsessive over the last 12 months. I've tried lots of PVMs and consumer CRTs. At the risk of boring you, these include: -

                                  PVM20L2 - 600 line, high contrast tube. Nice inky blacks, but image too soft and suffered from horizontal banding on light colours. Colours generally more muted than the other monitors I've tried, regardless of settings. I've tried several 20L2 and all are the same.

                                  PVM20M2E - 600 line, high contrast tube. Again, nice inky blacks and sharper image than the 20L2. A good monitor, although mine had some geometry issues that couldn't be corrected from the service menu (main issue being a tilted picture). No doubt a good example would be a good, solid choice of monitor.

                                  PVM20M4E - 800 line, lower contrast tube. Like all 800+ line PVM/BVMs, this has a lighter-coloured tube, meaning that true blacks are harder to achieve. No one ever seems to mention this, but for me this is a major drawback of all the 'HR Trinition' PVMs and BVMs. Conversely, this is the sharpest monitor I've tried - almost too sharp, meaning it looked less like an authentic CRT picture and was more reminiscent of emulated scanlines.

                                  PVM20M2MDE - 600 line, high contrast tube. This is my current monitor and as you would expect, this is similar to the 20M2E I had, only it's newer and therefore has a brighter, sharper picture. Also, being the medical model it has 2 x RGB inputs, which is a nice bonus. This is the best monitor I've had so far.

                                  I've tested others, but these are the main ones. For me, the 600 line monitors with the higher contrast tubes produce a more pleasing and 'authentic' picture than the 800+ line monitors - hitting the sweet spot for detail and contrast. I've never actually used a BVM, but suspect these would not suit my tastes for the same reasons I didn't like the 20M4E.

                                  The consumer CRTs still interest me as for obvious reasons they provide the most authentic retro picture of all. The KV-21LS30U is a particularly nice example as it has the FD Trinition flat tube, which in my experience produces excellent geometry for a CRT.

                                  I'll shut up now before I send everyone to sleep... bet you wish you hadn't asked!

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Molhoy @rig
                                    last edited by 19 Mar 2017, 00:18

                                    @rig Hey man, I think I've cracked it...!!

                                    I joined the Facebook group for Arcadeforge, where I bought my pi2scart. There I found a set of timings that solved my vertical position: -

                                    hdmi_timings= 320 1 22 20 42 240 1 6 8 10 0 0 0 60 0 6400000 1

                                    However, these are pushed even more to the left. But... and this is the important bit... I found a post from a great guy on there (Frank Skilton), which specifically explained how to alter the hdmi timings to reposition the picture: -

                                    To shift the image left, increase the horizontal front porch while decreasing the horizontal back porch by an equal amount. Do the opposite to shift right.

                                    To shift the image up, increase the vertical front porch while decreasing the vertical back porch by an equal amount. Do the opposite to shift down.

                                    3rd parameter is horizontal front porch
                                    5th parameter is horizontal back porch
                                    8th parameter is vertical front porch
                                    10th parameter is vertical back porch

                                    So, in the case of the above timings, I was able to reduce the horizontal front porch by 12 and increase the horizontal back porch by 12 to shift the image right and perfectly centre it on my PVM.

                                    See below (changed values highlighted in bold): -

                                    before: hdmi_timings= 320 1 22 20 42 240 1 6 8 10 0 0 0 60 0 6400000 1
                                    after: hdmi_timings= 320 1 10 20 54 240 1 6 8 10 0 0 0 60 0 6400000 1

                                    These now give me a perfectly centred image!

                                    While these may or may not work for you, hopefully the above explanation will allow you to manipulate your timings to achieve the perfect result.

                                    I hope this helps!

                                    M D 2 Replies Last reply 19 Mar 2017, 07:23 Reply Quote 0
                                    • R
                                      rig
                                      last edited by 19 Mar 2017, 02:43

                                      Molhoy, awesome! good explanation on the hdmi timings. I'm picking up what your putting down. I will try this out on Monday when I'm off work...

                                      I'm a bit of a crt nutter myself. Thanks for sharing the info on the monitors. A couple of things you mentioned are interesting to me: You mentioned that the 800 line monitor is too sharp. I have been hopeing too pick up a 800 line monitor but maybe this wouldn't be worth it. I have noticed when watching videos of bvms that the scanlines can look too pronounced. I can tell you that pardoxically my 560 line pvm 2030 looks sharper and darker than my 600 line pvm 20m2mdu. and the 2030 has way more miles on it (it's geometry is a bit whack in the corners but It gives it character). The 2030 also has a bit of a sideways caddywompum to it, I adjusted it a little with the pots and I set a piece of wood under one side of it and now the slant is completely gone. Have no idea why the beat up old 560 line 2030 outshines the 20m2mdu...the 2030 was built in 1992 (if I remember correctly) and the 20m2mdu in 2001...Maybe it's cause I rescured the 2030 from the dumpster. 2030 better putout them scanlines or it's going back were I found it mwahahaha

                                      M 1 Reply Last reply 20 Mar 2017, 00:32 Reply Quote 0
                                      • M
                                        maxriptide @Molhoy
                                        last edited by 19 Mar 2017, 07:23

                                        @Molhoy this info about timings is great! Thank you!!!

                                        M 1 Reply Last reply 20 Mar 2017, 00:34 Reply Quote 0
                                        • M
                                          Molhoy @rig
                                          last edited by 20 Mar 2017, 00:32

                                          @rig Yeah, these CRTs are addictive!

                                          Of course, my opinion is very much my own, so don't necessarily let it put you off the idea of an 800 line (or higher) monitor. I've just reached the conclusion that they don't suit my tastes.

                                          I had the opportunity to buy a 2130 (uk version of the 2030) when I bought my 20M2MDE. I must say that I was very impressed with the picture, it looked very bit as sharp - if not sharper - than the 20M2MDE and the colours seemed to pop even more. However, although it was in generally excellent condition, the picture did suffer from some impurity issues (slight yellow tinge in one corner), which is a big no-no for me. Also some geometry issues that would have been hard to correct. Certainly the 2030/2130 have a good reputation and I think date back to a time when Sony were at the very top of their game, which may explain the picture still being so good even today.

                                          Good luck with adjusting your timings. I've been playing with mine some more tonight and I'm really thrilled with it now that my picture is centered.

                                          Let me know how you get on.

                                          1 Reply Last reply Reply Quote 0
                                          29 out of 36
                                          • First post
                                            29/36
                                            Last post

                                          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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received