What Is Screen Tearing and How to Get Rid of It on Linux

Stop Screen Tearing On Linux

Unfortunately for Linux fans, screen tearing is, and has been, a persistent annoyance that doesn’t seem to be going anywhere. There are a couple of factors enabling the longevity of the screen tearing issue.

First, and probably most obviously, is the dated, broken, and bloated X server. Even with the progress of Wayland, X is here to stay for the immediate future. Next is the strange and inconsistent graphics driver picture. One of the biggest offenders in causing screen tearing is also the most popular GPU manufacturer on Linux, NVIDIA. Throw in different desktop environments with their own display settings and compositors, and you have a real mess.

These methods will hopefully eliminate screen tearing in most situations, but it’s impossible to provide a one-size-fits-all solution, thanks to the amount of variables involved. Try what applies to your system, and keep in mind that there might be new factors involved.


This isn’t the only solution for NVIDIA, and there are certainly situations that it doesn’t apply to, but it’s one of the better options, and it doesn’t rely on NVIDIA’s graphical utility that doesn’t always play nice with desktop environment configurations.

To start, you’ll need to enable setting for the NVIDIA DRM module (modsetting). Start by making a configuration file in the modprobe directory.

Open that file with your favorite text editor, and insert the following line:

NVIDIA Modsetting Config

Update your kernel’s initramfs to apply your change.

When that’s done, reboot. Your computer will come back up, and everything should be smoother, but you aren’t quite done yet.

Swap can save you in a pinch, but for something like graphics, its pretty terrible. The best thing you can do here to increase performance is reduce your computer’s tendency to use swap space. Start by checking your current “swappiness.”

Linux Swappiness

That will probably return “60.” That’s the default value, but you can set it much lower. Open “/etc/sysctl.conf,” and add the following line at the bottom of the file:

You can set the value based on how much RAM you have. 5 to 15 is usually the range you can safely work with. Reset your computer, and everything should be smoother.


Intel graphics on Linux usually aren’t too much of a problem. That’s probably because integrated graphics usually have fewer features, and the Intel driver stack is mostly open source. For screen tearing on Intel, the solution usually comes in the form of some additional configuration.

Because Intel uses open source drivers, the Xorg configuration is going to be your most direct route. Create a file at “/etc/X11/xorg.conf.d/20-intel.conf,” then place the following block of code inside:

When you’re done, save and reboot.


Vsync is an attempt to synchronize your software refresh rate to your monitor hardware’s default refresh rate. In theory, it’s a great idea to make everything as smooth as possible. In reality, sometimes it lives up to its potential, and others, it makes your graphics an unstable mess. If you are using Vsync, and you’re experiencing screen tearing, try disabling it. If you aren’t using Vsync, it might be the very thing that gets things in line.


KDE Compositing Controls

KDE has some fantastic controls, so this can all be done through the KDE Plasma Settings. Open the Settings application, and find “Hardware” on the side. Under that heading you’ll find the display settings. Click on those. The main body of the window will fill up with display settings. The tabs on the side will switch. Pick “Compositor.” Locate the “Tearing prevention” option, and set it to “Full screen repaints.” When you’re done, apply the change.

Kwin, the KDE compositor is sometimes part of the problem, too. It follows its own rules. There’s a simple bit of configuration that you can add to make Kwin smoother.

Create a new file at “/etc/profile.d/kwin.sh.” Open that file, and place the line below in it:

Log out of KDE, and log back in for the change to take effect.


This is a pretty terrible answer, but there isn’t a setting directly in GNOME to manage vsync, but it can still really help. If you’re running GNOME with either Intel or NVIDIA graphics, follow the above instructions. If you’re on AMD, add the following line to your Xorg configuration:


XFCE is notorious for screen tearing. It’s always been a problem, and it can seriously get in the way. However, there’s a fairly simple solution. All you need to do is rip out XFCE’s compositor and replace it with a different one, in this case Compton.

XFCE Disable Compositing

Open the XFCE settings, then locate the window manager settings. Click on the “Compositor” tab, and uncheck the box to “Enable display compositing.” Apply the settings.

Next, install Compton. It’s an independent compositor that works very well with lightweight desktops. The command here is for Debian-based distributions, but Compton is available on just about every popular distro.

XFCE Run Compton At Start

Return to the XFCE settings. This time, click on “Session and Startup.” Add a new application to run at startup. In case you haven’t guessed, that application is Compton. Paste the following in as your command. It contains several key options to run Compton optimally.

Save and exit. You can either log out and log back in or run the command to start Compton.

These methods are all excellent ways to try and solve your screen tearing problems under Linux. They might not work for everyone, but with any luck, they’ll work for you. Hopefully, as more progress is made in Linux graphics drivers, desktop environments, and Wayland, the screen tearing problem will finally be resolved permanently.

Nick Congleton Nick Congleton

Nick is a freelance tech. journalist, Linux enthusiast, and a long time PC gamer.


  1. I use an old ATI card, an ATI Radeon 4850. What advice could you offer for those of us relying on ATI/AMD graphics? Thanks!

  2. A nice article, but you don’t answer the very first question of the article title: “What is screen tearing?”

  3. In all my years of running Linux, I’ve never experienced screen tearing. Just lucky, I guess.

  4. Linux user that never experienced or even heard of “screen tearing”. Thanks, now I have another thing to worry about!

  5. Missed a very important workaround. Add this to the screen section of your xorg.conf file.

    nvidia-settings –assign CurrentMetaMode=”nvidia-auto-select +0+0 { ForceCompositionPipeline = On }”

  6. should /etc/X11/xorg.conf.d” be /usr/share/X11/xorg.conf.d????

    On Linux Mint 19 /etc/X11/xorg.conf.d does not exist but /usr/share/X11/xorg.conf.d does exist

  7. With Ubuntu 18.04 and Skylake Intel 520 graphics, adding the xorg config file disabled graphical login entirely. Highly un-recommended.

    XFCE4 is not ‘notorious’ for screen tearing. If the Xorg driver is set up right it works flawlessly. I’ve been using it for a decade with zero tearing on multiple machines.

    Replacing XFCE’s compositor with compton disables accessibility features. You should warn your viewers before you counsel them to disable features which may prevent them from being able to read their screens..

    18.04’s default setup with DRI3 is causing tearing. When I find a solution I’ll post it here.

  8. Solved on Ubuntu 18.04 with Skylake graphics:

    $ sudo pico /etc/X11/xorg.conf.d/20-intel.conf

    Section “Device”
    Identifier “Intel Graphics”
    Driver “intel”
    Option “AccelMethod” “sna”
    Option “SwapbuffersWait” “true”
    Option “TearFree” “true”

    $ sudo service lightdm restart

  9. There’s a typo in the xorg.conf above in the Intel section. “Indentifier” should be “Identifier”.

  10. Solved on MX with AMD Radeon graphics:
    without replacement just check in Composition folder
    1. Enable display compositing
    2. Synchronize drawing to the vertical blank

    tearing problem gone on video…..

    etc:XFCE of course and Xorg

  11. Solved on Linx 1010B Intel Baytrail embedded graphics.

    Section “Device”

    Identifier “Intel Graphics”

    Driver “intel”

    Option “TearFree” “true”


    Gooadvice thank you.

  12. For the Intel solution (which is awesome by the way; just a few lines of code and no more tearing, wow!), what worked for me is using a single space indent (for the indented bit) when saving the configuration file, otherwise it won’t actually be saved.

  13. I usually don’t leave comments in websites, but i had to.

    Thank You dude, i just fixed that annoying screen tearing,

    My Distro is Ubuntu Studio 19.04 who uses XFCE, Intel Graphic Card.
    I had to install Compton, Worked Fine.

  14. I’m running Debian Stretch amd64, with XFCE, on an Intel NUC5i5ryh. Never saw any issues with video tearing until the most recent upgrades to 9.10 (maybe I just wasn’t seeing them before). In any case I created the file for xorg and put it in /usr/share/X11/xorg.conf.d . Works like a charm. Thanks for the tip.

  15. Intel HD Graphics 400 and Lubuntu 18.04 LTS. The xorg tweak removed tearing from YouTube videos in Firefox.

Comments are closed.