Prevent screen tearing when using proprietary NVIDIA Linux drivers

There's no doubt that NVIDIA's proprietary Linux drivers are the best when it comes to gaming and high performance 3D graphics in general; even at the expense of running closed source software. Still, despite the driver's robust OpenGL performance and overall stability, there's one issue I've yet to see fixed out of the box: screen tearing.

Depending on your setup, the desktop environment, driver-specific and X11 settings all offer different methods to either lower the amount of visual tearing or remove it entirely. Here are some of the methods I've discovered. Chances are the first method won't work, so in that case, give a try to the other options listed.

Change compositor settings

Depending on the desktop environment you use, this might be the easiest (and thus the first) method you'll try. In my case, KDE Plasma 5 has a setting (you can find it in System Settings -> Display and Monitor -> Compositor) for tearing prevention, complete with more than two options to choose from. Some of them don't eliminate tearing entirely and some may not work depending on the driver you are using (if you're not using the proprietary driver, that is). Put simply, Full screen repaints tries to eliminate tearing entirely and Only when cheap eliminates tearing only in full screen applications. Changing the Rendering backend might also resolve the issue.

Again, whether this option works with your setup depends on the desktop environment you're using; it might require dabbling with configuration files or it might not be an option at all.

Change driver settings

To change the driver settings, open up a console and type sudo nvidia-settings. You might not have nvidia-settings installed already; in that case try installing the application using your package manager (sudo apt-get install nvidia-settings). Since some Linux distributions don't offer non-free software out of the box, you might have to change your repository settings before you can install the application (for Ubuntu and derivatives, try enabling the multiverse repository as described here).

Once you have opened the application, there are a few settings you can change to prevent tearing:

OpenGL Settings -> Sync to VBlank (enable)
PowerMizer -> Preferred Mode (set this to Prefer Maximum Performance)

Once you're done, click Quit to close the application and save the settings. Chances are you'll need to restart your computer to see the results, so do that as well.

Didn't work? There's still something you can try to fix screen tearing.

Modify xorg.conf

Start by opening a console and typing the following command to edit the Xorg configuration file (we're using nano to edit the configuration file, but you can choose a different editor if you wish):

sudo nano /etc/X11/xorg.conf

There's a chance the file won't exist, which means you'll need to generate one first. To do that, open nvidia-settings as described in the previous method and select the X Server Display Configuration tab. From there, select Save to X Configuration File and save the configuration file to /etc/X11/xorg.conf

If the configuration file already exists, make a copy of it before modifying it. The easiest would be to make a local copy named xorg.conf.backup; you can do it with the following command: sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Once you have done either of the previous steps (created a new X11 file or backed up the existing one), find the following line:

Section "Screen"
   ...
   ...
   Option         "metamodes" "DVI-I-1: nvidia-auto-select +4480+0, HDMI-0: nvidia-auto-select +0+240, DP-1: nvidia-auto-select +1920+0"
   ...
   ...
EndSection

 

Your own file might differ slightly, but our point of interest is the metamodes line. Append it with { ForceCompositionPipeline = On } and place it before the quotes. In my case, the line would now look like this:

   Option         "metamodes" "DVI-I-1: nvidia-auto-select +4480+0, HDMI-0: nvidia-auto-select +0+240, DP-1: nvidia-auto-select +1920+0 { ForceCompositionPipeline = On }"

Now that you're done, save the file (for Nano, press Ctrl+X followed by Y and Enter) and try restarting the computer and seeing if the edit worked. If it didn't, you might notice that the /etc/X11/xorg.conf file has been renamed to /etc/X11/xorg.conf.05212016 or something similar, especially if the xorg.conf file didn't exist in the first place. In this case, we'll just need to create the X11 configuration file with nvidia-settings, but save it to /usr/share/X11/xorg.conf.d/nvidia.conf (the filename can be something besides nvidia, as long as it is in the right directory) instead. After that, edit the file as described in the previous paragraph and try restarting your computer again.

If luck has it, your Linux desktop should finally be free of screen tearing. In my case, it wasn't until I edited the X11.conf file that the screen tearing disappeared. Again, your mileage may vary and depending on the scenario none of the methods described here would not work. In case you find a way to fix screen tearing with a different method not described here, please mention it in the comments below. It would be very appreciated!

Pingbacks are closed.

Trackbacks
  1. Bitcoin mining on 02/17/2018 11:38 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  2. bitcoin mining rechner euro on 09/16/2018 6:30 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  3. 선릉안마방 on 10/26/2019 12:37 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  4. 선릉안마추천 on 12/27/2019 6:57 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  5. 레깅스룸이란 on 12/27/2019 12:56 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  6. 고구려 on 12/27/2019 5 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  7. 울산마사지 on 12/27/2019 9:41 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  8. 역삼안마방 on 12/31/2019 9:55 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  9. 강남피쉬안마 on 12/31/2019 6:22 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  10. 역삼역 안마 on 12/31/2019 8:42 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  11. 대전안마방 on 01/01/2020 4:04 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  12. 광주출장마사지 on 01/01/2020 7:13 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  13. 전주출장 on 01/01/2020 9:30 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  14. 전주출장 on 01/04/2020 1:37 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  15. 대전안마 on 01/04/2020 7:08 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  16. 군산출장안마 on 01/08/2020 11:14 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  17. 마사지 on 01/09/2020 7:12 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  18. 익산출장안마 on 01/09/2020 8:20 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  19. 군산출장안마 on 01/10/2020 8:05 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  20. 강남안마 on 01/14/2020 10:35 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  21. 청주출장안마 on 01/14/2020 5:49 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  22. 강남가라오케 on 01/15/2020 2 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  23. 레깅스룸 on 01/15/2020 10:58 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  24. 가인안마방 on 01/16/2020 6:08 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  25. 제주출장마사지 on 01/16/2020 9:50 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  26. 울산풀싸롱 on 01/16/2020 10:50 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  27. 광주출장안마 on 01/18/2020 11:27 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  28. 대전출장안마 on 01/19/2020 12:27 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  29. 삼성동안마 on 01/19/2020 10:34 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  30. 논현동안마 on 01/20/2020 12:18 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  31. 신사동마사지 on 01/20/2020 2:56 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  32. 일산명월관 on 01/20/2020 3:06 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  33. 울산모텔출장 on 01/21/2020 9:13 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  34. 광주출장안마 on 01/22/2020 1:54 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  35. 광주출장 on 01/22/2020 6:14 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  36. 텐카페 on 01/27/2020 12:57 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  37. 논현안마 on 01/30/2020 3:20 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  38. 선릉안마 on 02/02/2020 7:52 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  39. 세종출장안마 on 02/02/2020 9:07 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  40. 텐카페 알바 on 02/06/2020 11:20 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  41. 인천안마 on 02/07/2020 5:04 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  42. 선릉레깅스 on 02/08/2020 1:12 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  43. 셔츠룸 on 02/10/2020 6:18 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  44. 부산유흥 on 02/15/2020 3:36 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  45. 광주출장마사지 on 02/20/2020 2:16 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  46. 룸싸롱 on 02/21/2020 2 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  47. 강남퍼블릭 on 02/21/2020 2:40 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  48. 마사지 on 02/21/2020 6:08 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  49. 출장안마 on 02/22/2020 8:26 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  50. 수원안마 on 02/24/2020 9:43 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  51. 대구출장마사지 on 02/26/2020 12:44 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  52. dash miner on 02/27/2020 10:05 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  53. 아산출장안마 on 02/27/2020 8:34 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  54. 상무지구룸싸롱 on 02/28/2020 3:36 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  55. browse this site on 02/28/2020 8:16 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  56. 대구룸싸롱 on 02/28/2020 10:46 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  57. 울산출장마사지 on 02/28/2020 11:26 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  58. 정자동룸싸롱 on 02/28/2020 2:44 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  59. 목포오피 on 02/29/2020 12:41 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  60. 포항마사지 on 02/29/2020 1:58 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  61. 광양안마 on 02/29/2020 2:49 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  62. 대구출장마사지 on 02/29/2020 10:25 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  63. 순천안마방 on 03/01/2020 10:52 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  64. 여수안마 on 03/01/2020 1:19 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  65. 대전출장 on 03/02/2020 5:35 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  66. 공주출장마사지 on 03/03/2020 1:24 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  67. LED Ring Light on 03/03/2020 12:57 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  68. 순천오피 on 03/03/2020 10:56 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  69. Eyal Nachum on 03/04/2020 7:26 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  70. 여수op on 03/04/2020 12:48 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  71. 구글광고대행 on 03/04/2020 8:01 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  72. 목포안마 on 03/06/2020 3:37 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  73. 나주op on 03/06/2020 3:47 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  74. 부산출장마사지 on 03/07/2020 9:28 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  75. judi poker on 03/09/2020 5:45 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  76. 삼산동풀싸롱 on 03/09/2020 10:50 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  77. 시스루카페 on 03/10/2020 12:37 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  78. FX on 03/10/2020 4:30 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  79. mining ckb currency on 03/11/2020 1:53 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  80. 베스트구글 on 03/14/2020 4:28 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  81. 창원출장마사지 on 03/15/2020 1:27 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  82. 경주마사지 on 03/19/2020 12:40 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  83. 영통안마 on 03/20/2020 6:22 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  84. Promotional Gifts Dubai on 03/21/2020 3:33 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  85. ทองหล่อ on 03/21/2020 5:07 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  86. Culver Dental Center on 03/24/2020 2:51 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  87. 룸싸롱 on 03/24/2020 2:35 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  88. 구글상위노출 on 03/25/2020 4:53 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  89. folding karambit knife on 03/26/2020 10:58 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  90. shop greek designers on 03/26/2020 11:50 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  91. avalon bitcoin miners on 03/27/2020 1:59 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  92. สล็อตออนไลน์ on 03/27/2020 9:16 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  93. avalon miners on 03/27/2020 10:01 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  94. 광주안마 on 03/28/2020 12:01 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  95. amsterdam tohum on 03/28/2020 8:41 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  96. click for more info on 03/29/2020 12:05 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  97. india visa on 03/29/2020 5:25 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  98. Online Surveys That Pay Through Paypal on 03/29/2020 9:52 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  99. Promotional Gifts Dubai on 03/31/2020 2:30 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  100. 구글광고대행 on 03/31/2020 6:18 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  101. Raimond on 03/31/2020 5:17 p.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  102. haritaki side effects on 04/02/2020 4:15 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

  103. 부산출장안마 on 04/02/2020 10:36 a.m. #

    Janne Pulkkinen: Prevent screen tearing when using proprietary NVIDIA Linux drivers

Trackback URL