Difference between revisions of "Screen deformations and sync issues"

From RGB-Pi Wiki
Jump to: navigation, search
m
Line 3: Line 3:
 
=== In-Game top screen deformation ===
 
=== In-Game top screen deformation ===
  
[[File:Def.png|400px|thumb|Click here to zoom in]]
+
[[File:Def.png|320px]]
  
This deformation can be easily fixed by changing the field V_Sync_Pulse in the system timings. Timing are spread in several files, and they can be found in /home/pi/RGB-Pi/data/timings. The file names are self-explanatory. Once you open any of them, you'll find something like this:
+
This deformation can be produced because some TV models do not accept intermediate frequencies between 50 and 60Hz well, it can be solved by applying a rounding to these frequencies available in the advanced menu of the system.
 
 
    ;Order of fields:
 
    ;Name, H pixels, Scanlines, Frame Rate, H position, H zoom,
 
    ;V position, H Front Porch, H Sync, H Back Porch, V Sync, H Frequency.
 
   
 
    atari260060 1920 240 60.00 0 0 0 48 192 240 5 15734
 
    atari260050 1920 288 50.00 0 0 0 48 192 240 5 15625
 
    atari780060 1920 240 60.00 0 0 0 48 192 240 5 15734
 
    atari780050 1920 288 50.00 0 0 0 48 192 240 5 15625
 
    atarilynx60 1920 224 60.00 0 0 0 48 192 240 5 15734
 
    wonderswan60 1920 224 60.00 0 0 0 48 192 240 5 15734
 
    wonderswancolor60 1920 224 60.00 0 0 0 48 192 240 5 15734
 
    coleco60 1920 240 60.00 0 0 0 48 192 240 5 15734
 
    coleco50 1920 288 50.00 0 0 0 48 192 240 5 15625
 
    pcengine60 1920 240 59.94 0 0 0 48 192 240 5 15734
 
    pcengine50 1920 288 50.00 0 0 0 48 192 240 5 15625
 
 
 
By modifying the vsync, you can reduce one unit each try, save the file and test some game until you get the proper value. Once you have it, you can perform a bulk update in the timing file by using any text editor with the replace functionality and searching for " 5 " so that it won't overwrite other values.
 
  
 
=== UI menu top screen deformation ===
 
=== UI menu top screen deformation ===
  
We can also suffer some deformations in the system menu. To fix this, we must edit the ui-timings.txt and change the corresponding line (FIX/NOFIX), and modify in this case the value 9 following the same procedure explained above. The format of this file is a bit different, so check bellow for guiding you on editing the same:
+
Some TV models are a bit special with the picture modes they can show, you can try to change the so-called Timings in a couple of places, you have to replace it in /home/pi/RGB-Pi/ui-timings.cfg and also in /boot/config.txt with the following line;
 
+
    320 1 12 32 44 240 1 6 10 6 0 0 0 60 0 6400000 1
    <h_active_pixels> <h_sync_polarity> <h_front_porch> <h_sync_pulse> <h_back_porch> <v_active_lines> <v_sync_polarity> <v_front_porch> <v_sync_pulse> <v_back_porch> <v_sync_offset_a> <v_sync_offset_b> <pixel_rep> <frame_rate> <interlaced> <pixel_freq> <aspect_ratio>
 
 
 
For checking that all changes are OK without bouncing, you can simply enter and exit to the Screen Assistant menu option. If everything works fine you must change the same modified values into /boot/config.txt
 

Revision as of 16:00, 7 May 2020

Some monitors and TVs produce some kinds of image deformations. Next, we will see the most common scenarios and how to fix them:

In-Game top screen deformation

Def.png

This deformation can be produced because some TV models do not accept intermediate frequencies between 50 and 60Hz well, it can be solved by applying a rounding to these frequencies available in the advanced menu of the system.

UI menu top screen deformation

Some TV models are a bit special with the picture modes they can show, you can try to change the so-called Timings in a couple of places, you have to replace it in /home/pi/RGB-Pi/ui-timings.cfg and also in /boot/config.txt with the following line;

    320 1 12 32 44 240 1 6 10 6 0 0 0 60 0 6400000 1