bionor : With the help of 5Schatten (LibreElec-RR), I did some tests to fix screentearing. This seems to be a big issue in Linux, as there are lots of posts about it on the www.
What did i find so far :
On AMD/Ati videocards you fix the tearing bij adding this xorg.conf file to the .config folder: (i'll explain later how-to)
Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "DRI" "3"
Option "TearFree" "on"
Option "AccelMethod" "glamor"
EndSection
If you have an Intel videocard, use this xorg.conf:
Section "Device"
Identifier "Device0"
Driver "intel"
VendorName "INTEL Corporation"
Option "TripleBuffer" "true"
Option "TearFree" "true"
EndSection
I you have a Nvidia videocard, it is more complex, and there is the following issue:
The screentearing fix works fine, as long as the screen-refresh rate stays on the same Hz as the initial Hz when Libreelec boots.
If you use "Adjust display refresh-rate" (and then play f.i. a 24 fps video) the fix for the screen-tearing is disabled, until the next reboot.
For Nvidia use the following xorg.conf file: (with the auto-select forcefullcompositionpipeline => mostly 60Hz )
Section "Device"
Identifier "Nvidia Card"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8600M"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
Option "AllowIndirectGLXProtocol" "off"
Option "TripleBuffer" "on"
EndSection
Display More
To force a 50Hz boot-up refesh-rate, you could use this option, instead of the auto-select :
"metamodes" "1920x1080_50 +0+0 {ForceFullCompositionPipeline=On}"
How to add the xorg.conf file to LibreElec:
1) Make yourself "Expert" user.
2) Find out which brand of video card is in your system : Settings/System_information/video.
3) Make (on another PC) a 'plain text' file named: Xorg.conf, put the correct code in the file and save it on a USB-stick.
You can use NotePad, but make sure, windows does NOT add the '.txt' extension at the end of the filename.
4) In libreelec : Settings/Media/General , set all switches to "On".
5) In libreelec : Settings/File manager, Add_source/browse/home folder, select the .config folder and click 'ok'.
6) In file_manager, open the .config folder in the left pane, insert the USB-stick and open that in the right pane.
7) Select the xorg.conf file, and use the context_menu (c key on the keyboard) to copy the xorg file to the .config folder.
Now you have to reboot librelec to activate the video-card settings.
WARNING: IF YOU SELECT THE WRONG FILE FOR YOUR VIDEO-CARD, LIBREELEC WILL NOT BOOT !!
You need to SSH into the linux system to delete the wrong file, and reboot, or re-install libreelec from scratch.
So make sure you have a full LibreElec system backup on your USB-stick before you start modifying the xorg.conf.
I tested this on several AMD,Intel and Nvidia cards with Kodi Leia (Mesa 19.1.x), and it works fine. (except for the Nvidia issue)
When you use the LibreElec build-in chrome browser, you need to do this, otherwise the screen will tear like hell...
Good luck !