linux

Xorg Intel Video

Turns out, Xorg is now using modesetting driver by default. I’ve been trying to get VAAPI to work for ages but could not figure out why it was not working! All I needed to do was to switch to intel driver. I was hoping that the xorg.conf-less configuration would pick it up automatically but it does not. Give it a hint:

Manually create /usr/share/X11/xorg.conf.d/20-intel.conf

Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option      "TearFree" "true"
EndSection

Also:

apt-get install i965-va-driver libvdpau-va-gl1

VLC and mpv take advantage of VAAPI accelerated decoding, but mplayer does not seem to do that even though it reports VDPAU/VAAPI is active. Anyway, video play back is much better and there is no tear at all. Also might be a good idea to add the following kernel boot parameters:

i915.enable_fbc=1 i915.enable_psr=1 i915.disable_power_well=0

And verify with systool -va -m i915 after reboot. Scrolling should become much smoother and there should be no video tearing at all. For really smooth video playback of 23.976 or 24 fps video on a 60Hz screen, use MPV:

mpv --video-sync=display-resample --interpolation --tscale=oversample video.mkv

Have a play with tscale parameter as well.

Published:
comments powered by Disqus