Intel video and screentearing

Terpentijn

Member

Reaction score: 8
Messages: 78

I have an older intel video on board. On Linux I installed a card.conf in [path]/user/local/etc/X11/xorg.config.d[/path] to take care of the tearing and it worked ok. On my first FreeBSD install I did the same but I still got a lot of tearing even after installing the intel xorg driver (can’t remember the exact name). Can somebody advice me on the best way to prevent this tearing? Intel driver or the one that comes with fbsd.? Or do I also need to install compton. I will use openbox, i3 and/or Xfce. I prefer openbox...
 

shepper

Aspiring Daemon

Reaction score: 283
Messages: 811

intel(4)
Option "TearFree" "boolean"
Disable or enable TearFree updates. This option forces X to
perform all rendering to a backbuffer prior to updating the
actual display. It requires an extra memory allocation the same
size as a framebuffer, the occasional extra copy, and requires
Damage tracking. Thus enabling TearFree requires more memory and
is slower (reduced throughput) and introduces a small amount of
output latency, but it should not impact input latency. However,
the update to the screen is then performed synchronously with
the vertical refresh of the display so that the entire update is
completed before the display starts its refresh. That is only
one frame is ever visible, preventing an unsightly tear between
two visible and differing frames. Note that this replicates what
the compositing manager should be doing, however TearFree will
redirect the compositor updates (and those of fullscreen games)
directly on to the scanout thus incurring no additional overhead
in the composited case. Also note that not all compositing
managers prevent tearing, and if the outputs are rotated, there
will still be tearing without TearFree enabled.

Default: TearFree is disabled.
 

wammes

New Member


Messages: 1

Yes, i know of this option. On my Linux boxes I always used it. No flickering. However, with the intel driver loaded in FreeBSD I still got flickering. That’s why I was wondering if a combo between the driver and I.e.compton would solve it. Or maybe the default fbsd driver works better.
 

recluce

Active Member

Reaction score: 29
Messages: 146

For an under-powered NUC running as a HTPC, installing Compton was the only way to have a tearing-free XFCE session. The issue does not happen when the same box runs kodi as a session, so I guess there is something about XFCE here.
 
OP
OP
Terpentijn

Terpentijn

Member

Reaction score: 8
Messages: 78

For an under-powered NUC running as a HTPC, installing Compton was the only way to have a tearing-free XFCE session. The issue does not happen when the same box runs kodi as a session, so I guess there is something about XFCE here.
I put 20-intel.conf in /usr/local/etc/X11/xorg.config.d
Code:
Section "Device"
    Identifier     "Card0"
    Driver    "intel"
    Option    "DRI" "3"
    Option    "AccelMethod" "SNA"
    Option    "TearFree" "true"
EndSection
This alone was not enough though. I also have thee following lines in /boot/loader.conf
Code:
#DRM
drm.i915.enable_rc6=7
drm.i915.semaphores="1"
drm.i915.enable_fbc="1"
And in /etc/rc.conf I load
Code:
kld_list="i915kms"

Xfce runs fast and buttersmooth. NO screen tearing. I'm a happy user.
 
Top