OrangePI Club
[Almost SOLVED - Help needed] Overscan in RCA Out - Printable Version

+- OrangePI Club (http://orangepi.club)
+-- Forum: International (English) Forums (http://orangepi.club/forumdisplay.php?fid=3)
+--- Forum: *nix Distro (http://orangepi.club/forumdisplay.php?fid=4)
+---- Forum: RetrOrangePi v3 (http://orangepi.club/forumdisplay.php?fid=5)
+----- Forum: Support area (http://orangepi.club/forumdisplay.php?fid=24)
+----- Thread: [Almost SOLVED - Help needed] Overscan in RCA Out (/showthread.php?tid=2541)



[Almost SOLVED - Help needed] Overscan in RCA Out - Brun0 - 07-01-2018

I did some research to correct the overscan problem. It worked, but I need more help.

I noticed that this problem is related to the video driver of that allwinner chip. 
Most of the information I got in forum.armbian.com and in this forum.
This method applies to OrangePi Zero with expansion board (or not) using the RCA video output.
(If you are using HDMI output, there are easier methods to deal with overscan)


1 - Adjust the resolution in pixels
I made the bin2fex / fex2bin method to edit the /boot/script.bin file

Use this command to transform the script.bin into script.fex
$ bin2fex /boot/script.bin ~/script.fex

Then this one to edit the file script.fex
$ nano ~/script.fex

Look for the item [disp_init]
Modify the lines:
fb0_width = 0
fb0_height = 0

To be like this:
fb0_width = 680
fb0_height = 536

Save the fex file (Control + O)
Exit nano (Control + X)

Use this command to convert the script.fex file that you just saved to script.bin
$ fex2bin ~/script.fex ~/script.bin

Now to copy this file to the source folder use
$ sudo cp ~/script.bin /boot

And finally the reboot for the changes to take effect
$ sudo reboot

(If not perfect, test other values. On my TV it fit better with 655x544)
(You will notice the result after rebooting.)

2 - Adjust the position of the image on the screen

First, use this command to download the tvout app
$ wget https://projects.nwrk.biz/attachments/download/4/tvout

Now turn it into an executable
$ chmod 755 ./tvout

This command will move the image in 55 pixles to the right
$ tvout -m -x 55

And also this command to move the image in 10 pixles down
$ tvout -m -y 10

(Find the better adjustments for your screen. Negative values in X will move the image to the left, while negative values in Y will move the image up.)


*** NOW I NEED MORE HELP ***
This solves the overscan problem. But the adjustments made by tvout are not definitive.
Is there any method of putting these tvout commands in some script to run during boot?


RE: [Almost SOLVED - Help needed] Overscan in RCA Out - alexkidd - 07-02-2018

Update to RetrOrangePi v4 , this was fixed a long time ago.
V3 users will need to clone our repository and run the BashTool script
https://github.com/retr0rangepi/RetrOrangePi


RE: [Almost SOLVED - Help needed] Overscan in RCA Out - Brun0 - 07-12-2018

I have my doubts. Maybe it's better just to fix the v3 overscreen problem, which ran perfectly on OPi Zero. Than to make all the adjustments that v4 needs to be able to run on my hardware.

Nothing against v4. I really wanted to be able to use this comic book theme, have video preview in each game ... But I know the hardware can not do it all.
So far, I've only been able to run V4 on OPi Zero, with that ready-made V4 image, already distributed with thousands of roms, in a special, unofficial Christmas edition. It is circulating with the name Orangepizeroh2.img
The "official" V4 distributed on the Retrorangepi site gets a lot of underrun error and hangs on humble hardware.
To encourage the development of the platform, it would be wise to impose a supported hardware limitation on future versions, and maintain a stable version for humble hardware.

Please give me at least some hint of the best method to solve the overscreen and still use the V3.


RE: [Almost SOLVED - Help needed] Overscan in RCA Out - alexkidd - 07-12-2018

(07-12-2018, 06:03 AM)Brun0 Wrote: Please give me at least some hint of the best method to solve the overscreen and still use the V3.

already did: "V3 users will need to clone our repository and run the BashTool script"

with user pi:

cd /home/pi/RetroPie/retropiemenu
git clone https://github.com/retr0rangepi/RetrOrangePi
ln -s /home/pi/RetroPie/retropiemenu/RetrOrangePi /home/pi

the bashtool entry will be available from RetroPie - RetrOrangePi submenu

(07-12-2018, 06:03 AM)Brun0 Wrote: To encourage the development of the platform, it would be wise to impose a supported hardware limitation on future versions, and maintain a stable version for humble hardware.

To encourage the development of the platform, it would be wise to give proper and detailed feedback on github so we can move forward instead of supporting older versions. The buffer underrun seems to happen when there is RAM/CPU high usage. Trying to preview 640x480 videos with 672x448 resolution (opi zero v4 default) is not a good idea.