Screen tear fix with Nvida

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Screen tear fix with Nvida

Post by SpeedyWheels222 »

I have a Nvidia 1060 but I am suffering severe screen tearing issues when browsing the internet.
What is the best way to fix this?
Thank you

User avatar
Pjotr
Level 21
Level 21
Posts: 14604
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Screen tear fix with Nvida

Post by Pjotr »

Please generate an overview of your system like this:
- Launch a terminal window (this is how to launch a terminal window);
- make the terminal window full screen, to avoid chopped lines;
- Copy/paste this command into the terminal:

Code: Select all

inxi -Fxz
(if you type: the letter F is a capital letter)

Press Enter.

Copy/paste the output in your next message.
Tip: 10 things to do after installing Linux Mint 19.3 Tricia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Re: Screen tear fix with Nvida

Post by SpeedyWheels222 »

Pjotr wrote:
Fri Jul 12, 2019 6:02 am
Please generate an overview of your system like this:
- Launch a terminal window (this is how to launch a terminal window);
- make the terminal window full screen, to avoid chopped lines;
- Copy/paste this command into the terminal:

Code: Select all

inxi -Fxz
(if you type: the letter F is a capital letter)

Press Enter.

Copy/paste the output in your next message.

Code: Select all

System:
  Host: d-TUF-GAMING-FX504GM-FX80GM Kernel: 4.15.0-20-generic x86_64 
  bits: 64 compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.8 
  Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: ASUSTeK product: TUF GAMING FX504GM_FX80GM v: 1.0 
  serial: <filter> 
  Mobo: ASUSTeK model: FX504GM v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: FX504GM.307 date: 04/30/2019 
Battery:
  ID-1: BAT1 charge: 42.8 Wh condition: 42.8/48.1 Wh (89%) 
  model: ASUS A32-K55 status: Full 
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M315/M235 
  charge: 55% status: Discharging 
CPU:
  Topology: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP 
  arch: Kaby Lake rev: A L2 cache: 9216 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 52992 
  Speed: 869 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 
Graphics:
  Device-1: Intel vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
  Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] vendor: ASUSTeK 
  driver: nvidia v: 390.116 bus ID: 01:00.0 
  Display: x11 server: X.Org 1.19.6 driver: modesetting,nvidia 
  unloaded: fbdev,nouveau,vesa resolution: 1920x1080~120Hz 
  OpenGL: renderer: GeForce GTX 1060/PCIe/SSE2 v: 4.6.0 NVIDIA 390.116 
  direct render: Yes 
Audio:
  Device-1: Intel vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus ID: 00:1f.3 
  Sound Server: ALSA v: k4.15.0-20-generic 
Network:
  Device-1: Intel driver: iwlwifi v: kernel port: 5000 bus ID: 00:14.3 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: 2.3LK-NAPI port: 3000 bus ID: 02:00.0 
  IF: enp2s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 1.14 TiB used: 10.60 GiB (0.9%) 
  ID-1: /dev/sda vendor: Micron model: 1100 MTFDDAV256TBN size: 238.47 GiB 
  ID-2: /dev/sdb vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB 
Partition:
  ID-1: / size: 233.24 GiB used: 10.60 GiB (4.5%) fs: ext4 dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 78.0 C mobo: 27.8 C gpu: nvidia temp: 60 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 292 Uptime: N/A Memory: 15.52 GiB used: 1.09 GiB (7.0%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.3.0 Shell: bash v: 4.4.19 
  inxi: 3.0.27 

User avatar
Pjotr
Level 21
Level 21
Posts: 14604
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Screen tear fix with Nvida

Post by Pjotr »

Try this:
Update Manager - panel: View - Linux kernels
Install the latest kernel of the 5.0 series. Then reboot.
Tip: 10 things to do after installing Linux Mint 19.3 Tricia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Re: Screen tear fix with Nvida

Post by SpeedyWheels222 »

Unfortunately that hasn't made any difference, it still does the same.
I am now on 5.0.0-20-generic

User avatar
Pjotr
Level 21
Level 21
Posts: 14604
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Screen tear fix with Nvida

Post by Pjotr »

See whether you can get a newer Nvidia video driver by means of the reliable graphics-drivers PPA:
https://easylinuxtipsproject.blogspot.c ... a.html#ID1
(item 1)

Does that help?
Tip: 10 things to do after installing Linux Mint 19.3 Tricia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Re: Screen tear fix with Nvida

Post by SpeedyWheels222 »

Pjotr wrote:
Fri Jul 12, 2019 6:24 am
See whether you can get a newer Nvidia video driver by means of the reliable graphics-drivers PPA:
https://easylinuxtipsproject.blogspot.c ... a.html#ID1
(item 1)

Does that help?
No I am afraid not, it is still doing the same

User avatar
trytip
Level 12
Level 12
Posts: 4492
Joined: Tue Jul 05, 2016 1:20 pm

Re: Screen tear fix with Nvida

Post by trytip »

DO A TIMESHIFT SNAPSHOT BEFORE ANY CHANGES
then try this:

Code: Select all

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

Code: Select all

sudo xed /etc/modprobe.d/nvidia-drm-nomodeset.conf
add line and save:

Code: Select all

options nvidia-drm modeset=1
update boot:

Code: Select all

sudo update-initramfs -u
reboot
Image

SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Re: Screen tear fix with Nvida

Post by SpeedyWheels222 »

trytip wrote:
Fri Jul 12, 2019 9:51 am
DO A TIMESHIFT SNAPSHOT BEFORE ANY CHANGES
then try this:

Code: Select all

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

Code: Select all

sudo xed /etc/modprobe.d/nvidia-drm-nomodeset.conf
add line and save:

Code: Select all

options nvidia-drm modeset=1
update boot:

Code: Select all

sudo update-initramfs -u
reboot
That seems to fix the screen tearing on websites etc now thank you. But it introduce screen freezing when playing games, which it didn't do whilst it was screen tearing

User avatar
trytip
Level 12
Level 12
Posts: 4492
Joined: Tue Jul 05, 2016 1:20 pm

Re: Screen tear fix with Nvida

Post by trytip »

the video is trying to switch between intel and nvidia. bad design by default to save battery life. remove the intel xorg driver and reboot. DO NOT REMOVE it if you get a long list of dependencies which will be removed along with xserver-xorg-video-intel
if you notice more issues restore your timeshift snapshot which you created earlier and try something else

Code: Select all

apt purge xserver-xorg-video-intel
Image

SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Re: Screen tear fix with Nvida

Post by SpeedyWheels222 »

Unfortunately it's still doing it :(

User avatar
trytip
Level 12
Level 12
Posts: 4492
Joined: Tue Jul 05, 2016 1:20 pm

Re: Screen tear fix with Nvida

Post by trytip »

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

Code: Select all

sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
open it:

Code: Select all

sudo xed /usr/share/X11/xorg.conf.d/20-intel.conf
paste, save and reboot:

Code: Select all

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

SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Re: Screen tear fix with Nvida

Post by SpeedyWheels222 »

trytip wrote:
Sun Jul 14, 2019 12:01 pm
create /usr/share/X11/xorg.conf.d/20-intel.conf

Code: Select all

sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
open it:

Code: Select all

sudo xed /usr/share/X11/xorg.conf.d/20-intel.conf
paste, save and reboot:

Code: Select all

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TearFree"    "true"
EndSection
Unfortunately after doing that I get a black screen with a small flashing line in the top left and cannot login or anything

User avatar
thx-1138
Level 7
Level 7
Posts: 1966
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Screen tear fix with Nvida

Post by thx-1138 »

...Ctrl+Alt+F1 to switch to the first tty, then remove the conf file...
sudo rm /usr/share/X11/xorg.conf.d/20-intel.conf

SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Re: Screen tear fix with Nvida

Post by SpeedyWheels222 »

We are back working now, but still got the same issue as before. It must be linked to the Nvidia driver in some way

User avatar
trytip
Level 12
Level 12
Posts: 4492
Joined: Tue Jul 05, 2016 1:20 pm

Re: Screen tear fix with Nvida

Post by trytip »

run this and reboot.

Code: Select all

sudo update-initramfs -u
after reboot post the output of dkms status and dpkg -l nvidia*
Image

DAMIEN1307
Level 9
Level 9
Posts: 2649
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Screen tear fix with Nvida

Post by DAMIEN1307 »

sorry to tell you that the screen tear solution that was offered to you had the word "intel" in it...that script is ONLY for intel chips, not a fix for nvidia...if you havent done so already, that needs to be removed entirely...instructions are provided below...note that these instruction are the same that thx-1138 has provided...this is just what it does, removal thereof...DAMIEN

To UNDO

Open a terminal and run:

Code: Select all

sudo rm /usr/share/X11/xorg.conf.d/20-intel.conf
the following may be useful as well

Code: Select all

sudo rm -v /etc/X11/xorg.conf.d/20-intel.conf
and REBOOT.
ORDO AB CHAO

DAMIEN1307
Level 9
Level 9
Posts: 2649
Joined: Tue Feb 21, 2017 8:13 pm
Location: Alamogordo, New Mexico, USA

Re: Screen tear fix with Nvida

Post by DAMIEN1307 »

A shot in the dark here...DAMIEN

For Ubuntu based 18.04 with Nvidia driver 390.xx (not from ppa, just from Ubuntu repo).

edit this file (or create it)

Code: Select all

sudo nano /etc/modprobe.d/zz-nvidia-modeset.conf
and add this line
options nvidia_drm modeset=1
On Ubuntu based 18.04 it's not recommended to write nvidia driver version in line above
after all, update initramfs with

Code: Select all

sudo update-initramfs -u
then reboot.
ORDO AB CHAO

SpeedyWheels222
Level 1
Level 1
Posts: 37
Joined: Thu Jun 21, 2018 11:23 am

Re: Screen tear fix with Nvida

Post by SpeedyWheels222 »

It's still doing the same thing, it's got rid of the screen tearing but it's freezing on games. It doesn't freeze when the screen tears

lksjflkjdflask
Level 1
Level 1
Posts: 20
Joined: Sun Jul 22, 2018 4:37 am

Re: Screen tear fix with Nvida

Post by lksjflkjdflask »

Switching to the nouveau driver solved the screen tearing problem for me. Don't know the impact on gaming performance though. Might be worht a try.

Post Reply

Return to “Hardware Support”