Ubuntu 20.04 - Screen Tearing

17,531

Solution 1

I had the same problem with a GTX 960M on my Lenovo ideaPad Y700 and the following worked for me.

Open a terminal and run

sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf

In the file, write the following line:

options nvidia-drm modeset=1

Save the file. Back into the terminal, update initramfs by running:

sudo update-initramfs -u

Reboot.

Source: ubuntuhandbook.org


If the previous step didn't work, there is another solution that you can try:

$ xrandr --output eDP-1-1 --set "PRIME Synchronization" 1

Reboot.

This command will enable the sync in your hybrid card.

To check that sync has been enable: $ sudo cat /sys/module/nvidia_drm/parameters/modeset

it should return Y now.

Reboot.

Solution 2

  1. Try this video to see if you still have screen tearing.
  2. Try the solution provided here.
  3. What helped in my specific case was that I switched the driver used for my NVIDIA GP107M when using the "Additional Drivers" application and switched from nvidia-driver-440 to nvidia-driver-435.
Share:
17,531

Related videos on Youtube

Juan Pedraza
Author by

Juan Pedraza

Updated on September 18, 2022

Comments

  • Juan Pedraza
    Juan Pedraza almost 2 years

    Since I installed Ubuntu 20.04 I notice that there is Screen tearing when playing videos, it happens in several browsers and it is noticeable when moving the windows within the screen, when scrolling it is also noticeable. How is this problem solved?

    • Juan Pedraza
      Juan Pedraza about 4 years
      Error: couldn't find RGB GLX visual or fbconfig
  • Juan Pedraza
    Juan Pedraza almost 4 years
    I have a GT 635M Nvidia card and that steps don't work!
  • Nandete82
    Nandete82 almost 4 years
    What drivers are you using?
  • Juan Pedraza
    Juan Pedraza almost 4 years
    I used the private drivers it doesn't work and the free drivers too
  • Nandete82
    Nandete82 almost 4 years
    I amended the solution to include an alternative. Hope it works!
  • doug
    doug over 3 years
    That's because the On-demand uses Intel unless explicitly commanded to use nvidia.
  • Tony Sepia
    Tony Sepia about 3 years
    Why is there a need to update "intramfs"?
  • Matthias Pitscher
    Matthias Pitscher almost 3 years
    Not working on Ubuntu 21.04 with nvidia 460 drivers for me.