Issue with Kodi Vsync in Zorin 18 Core

Hello everyone,
I have a problem with Kodi on Zorin 18 Core.
I installed Kodi via Flatpak, version 21.3. Since Wayland doesn’t allow me to change the video refresh rate at the start and stop of content, I chose to use X11.
However, when switching to X11, Kodi runs without VSync, and I haven’t found any way to enable it. I also tried using the command CLUTTER_VBLANK=none, but nothing worked. The only way I can get it to work is by launching it from the command line outside the graphical environment, in TTY mode. It seems that the problem is that Zorin’s compositor doesn’t allow Kodi to manage VSync.
The PC running all of this is an ASUS VivoPC VC60 with a 3rd-generation i5 processor and integrated Intel HD Graphics 4000.
How could I solve this?

Did you tried it with the .deb Version instead of the Flatpak? Would be worth a Try I think. You can install it from the Zorin Repo's or follow the Instructions from Kodi to add the PPA and install it from this:
https://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux?https=1#Installing_Kodi_on_Ubuntu-based_distributions_with_Team_Kodi_PPA

Yes, I also tried the .deb package, and unfortunately it has VSync issues as well. In addition, it is stuck at version 20.5.
What the .deb package offers in addition is the possibility to start the system in a separate session where Kodi launches without going through the desktop, and in that way VSync works.

Two things, you would want

set to auto or full, not to none

Second is: Gnome D.E. has been consistently paring down Mutter hoping to force X11 out of the door. This removes a lot of its compositing ability, assuming Wayland will take up the slack.

I would test Kodi on Zorin OS Lite. For me, on Lite, it works perfectly.

In the Zorin Repo's, yes. That is the Reason why I posted the Instructions from Kodi. There You add the Kopi Source and install the current Version from them.

First of all, thank you very much for the advice.
Unfortunately, I wasn’t able to install the updated .deb package; I can’t add the repository because it seems that the branch for Ubuntu 24 doesn’t exist yet.
Regarding replacing “none” with “auto” or “full,” unfortunately, it had no effect.
I could test it with Zorin Lite, but I would have to give up version 18.
Anyway, I actually think it would work, because with Mint 22, which has a different compositor, it does work.
It seems that there isn’t a way to make it work on Zorin 18 at the moment, at least not with my hardware.

Well... You can install Cinnamon D.E. on Zorin OS 18.

Ah, yes. I see now. The PPA only supports to 23.04.

And You used it there the Flatpak Version?

Yes, on Linux Mint I am using Kodi Flatpak version 21.3

Okay, and were Mint in Wayland or Xorg?

Mint on Xorg

And when You switch on Zorin to Xorg, it doesn't work as well as on Mint?

The problem is that on Zorin Xorg there is a strong tearing effect in menus and videos, while in Mint (probably due to the different compositor, i don't know) there is no tearing and all is VSynced perfectly.