EmuELEC 4.5 - ODROID-C4 - screen overscan

Hi,

In order to fix the overscan issue on my 1080p TV, i’ve created this script after reading this post (Screen overscan · Issue #145 · EmuELEC/EmuELEC · GitHub):
/storage/.config/emuelec/scripts/setres.sh:

fbset -fb /dev/fb0 -g 1920 1080 1920 2160 32
echo 0 0 1919 1079 > /sys/class/graphics/fb0/free_scale_axis
echo 45 25 1870 1055 > /sys/class/graphics/fb0/window_axis
echo 0x10001 > /sys/class/graphics/fb0/free_scale

It works fine on startup, but after exiting a game back to emulationstation it looses these settings.

Anyone knows how to run the script automatically after exiting a game?

Copy this file to /emuelec/bin/setres.sh with execution permissions:

Then in /emuelec/configs/emuelec.conf add the line:
ee_videowindow=45 25