Fix screen tearing in Xfce (Intel)
Posted: 16. Jul 2021, 20:15
I use an old Thinkpad with Intel integrated graphics that always has problems with screen tearing while watching videos, also in the web browser as in scrolling on websites. That typically happens with Xfce's inbuilt window manager xfwm4 when you enable compositing but I want to use compositing because it actually helps in many cases to reduce screen tearing outside the video content.
In order to have some transparency effects and the compositor working without screen tearing under Xfce I added a configuration file to my system in
I named it 10-intel.conf and that is its content:
Then disable the option "Synchronize drawing to vertical blank" from the window manager settings if enabled.
It works perfectly after a reboot.
Now that is a little bit hacky but it gets the job done. I know in the newest iterations they fixed that problem in Xfce or you can apply OpenGL rendering in Xfconf in my case. But here we are speaking of Slackware's Xfce 4.12. Another solution would be to use an external compositor like compton and later picom.
In order to have some transparency effects and the compositor working without screen tearing under Xfce I added a configuration file to my system in
Code: Select all
/usr/share/X11/xorg.conf.d/
I named it 10-intel.conf and that is its content:
Code: Select all
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
EndSection
It works perfectly after a reboot.
Now that is a little bit hacky but it gets the job done. I know in the newest iterations they fixed that problem in Xfce or you can apply OpenGL rendering in Xfconf in my case. But here we are speaking of Slackware's Xfce 4.12. Another solution would be to use an external compositor like compton and later picom.