[SOLVED] Xorg 1.19 update. nVidia GTX 1050 tearing. vsync prime

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
olegipman

[SOLVED] Xorg 1.19 update. nVidia GTX 1050 tearing. vsync prime

Post by olegipman »

Hello guys and girls!
I use laptop Dell Inspiron 7000, gtx 1050ti on board and Linux mint cinnamon 18.3
And I have screen tearing. I've write to nVidia community and after a several try that guy say "oooh... You have Xorg version 1.18, but need 1.19".
So I tried to find how to install it, but nothing found...
Can you help me please?
If someone interesting I can tell what that guy said to avoid tearing on gtx 1050ti card
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by catweazel »

olegipman wrote: Sat Mar 17, 2018 4:35 am I use laptop Dell Inspiron 7000, gtx 1050ti on board and Linux mint cinnamon 18.3
Before I give you instructions on how to fix this, please post the output of this terminal command:

Code: Select all

inxi -Fxz
Enclose the results in between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
"...You have Xorg version 1.18, but need 1.19".
You've been given nonsense.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
olegipman

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by olegipman »

Code: Select all

System:    Host: olegMi7 Kernel: 4.13.0-37-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3)
Distro: Linux Mint 18.3 Sylvia
Machine:   System: Dell (portable) product: Inspiron 15 7000 Gaming
Mobo: Dell model: 065C71 v: X02
Bios: Dell v: 01.00.05 date: 03/01/2017
CPU:       Quad core Intel Core i7-7700HQ (-HT-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 22464
           clock speeds: max: 3800 MHz 1: 2800 MHz 2: 2800 MHz 3: 2800 MHz
           4: 2800 MHz 5: 2800 MHz 6: 2800 MHz 7: 2800 MHz 8: 2800 MHz
Graphics:  Card-1: Intel Device 591b bus-ID: 00:02.0
           Card-2: NVIDIA Device 1c8c bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 driver: nvidia
           Resolution: 1920x1080@60.01hz
           GLX Renderer: GeForce GTX 1050 Ti/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 384.111 Direct Rendering: Yes
Audio:     Card Intel Device a171 driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.13.0-37-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 02:00.0
           IF: enp2s0 state: down mac: <filter>
           Card-2: Intel Wireless 3165 driver: iwlwifi bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 1000.2GB (1.6% used)
           ID-1: /dev/sda model: TOSHIBA_MQ02ABD1 size: 1000.2GB
Partition: ID-1: / size: 96G used: 7.3G (8%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 8.39GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 55.0C mobo: N/A gpu: 0.0:53C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 221 Uptime: 10 min Memory: 1678.8/7622.0MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35
           
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by catweazel »

olegipman wrote: Sat Mar 17, 2018 5:04 am

Code: Select all

           Display Server: X.Org 1.18.4 driver: nvidia
Ok, that's what I wanted to confirm.

In the terminal, enter this command:

cat /etc/X11/xorg.conf

Post the contents back for me, please. Don't forget the [ⅽode] and [/ⅽode] code markers.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
olegipman

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by olegipman »

No problems. I'll do whatever you say)))

Code: Select all

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "None"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
	Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "AllowIndirectGLXProtocol" "off"
    Option         "TripleBuffer" "on"
EndSection


User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by catweazel »

olegipman wrote: Sat Mar 17, 2018 5:19 am No problems. I'll do whatever you say)))

Code: Select all

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
	Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "AllowIndirectGLXProtocol" "off"
    Option         "TripleBuffer" "on"
EndSection
Odd. Your config already has ForceFullCompositionPipeline=On. Anyway, you're going to make changes to the above code I quoted.

You will need to remember this:

What you are about to do could result in your machine booting to a black screen. If that happens then something went wrong with the changes you've made. To get out of that situation, press CTRL-ALT-F1 and login to the terminal, then type these commands:

Code: Select all

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.borked
sudo reboot
Ok, now to make the changes:

In a terminal:

sudo nano -w /etc/X11/xorg.conf

Move the cursor to the end of the line that reads Option "ConstrainCursor" "off" and press enter then add these three lines. You can use copy/paste. In the terminal, you right click then select Paste.

Code: Select all

    Option         "RegistryDwords" "PowerMizerEnable=0x0; PerfLevelSrc=0x2222; PowerMizerDefaultAC=0x1"
    Option         "UseEvents" "True"
    Option         "TripleBuffer" "True"
Next, move to the line that reads:
Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"

Remove this by using the delete key: ForceCompositionPipeline=On,

When you're done, the line should read:
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"

Finally, while you're still in the Screen section, delete the line that reads:
Option "TripleBuffer" "on"

Just use backspace from the end of the line or the delete key from the start of the line. We are deleting it here because we've moved the option to the Device section above.

When you're sure that's all done correctly, ctrl-o + enter to save your changes then ctrl-x to exit. Finally:

sudo reboot

Let me know how you go.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
olegipman

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by olegipman »

I've did all this, but tearing still present...

My xorg.conf:

Code: Select all

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "None"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
	Option         "RegistryDwords" "PowerMizerEnable=0x0; PerfLevelSrc=0x2222; PowerMizerDefaultAC=0x1"
    Option         "UseEvents" "True"
    Option         "TripleBuffer" "True"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
	Option         "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
    Option         "AllowIndirectGLXProtocol" "off"
EndSection

User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by catweazel »

olegipman wrote: Sat Mar 17, 2018 5:48 am I've did all this, but tearing still present...
I suspect that your video output is coming from the Intel graphics and not your nVidia card. The changes you made to xorg.conf force the nVidia card into permanent full power mode. Unfortunately I know nothing about how to make sure your hybrid graphics is using nVidia. My apologies, but you're now going to have to wait for someone who can shed more light on hybrid graphics for you. I've done all I can.

If you wish, you can undo the changes using these commands:

Code: Select all

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.old
sudo reboot
If you ever want to put the changes back:

Code: Select all

sudo mv /etc/X11/xorg.old /etc/X11/xorg.conf
sudo reboot
However, as it all seems ok, there is no pressing need to reverse the changes just yet.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
olegipman

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by olegipman »

Thank you very much anyway! :)
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by catweazel »

olegipman wrote: Sat Mar 17, 2018 6:00 am Thank you very much anyway! :)
You're most welcome. I'm just sorry I couldn't go further.

Cheers.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by thx-1138 »

olegipman wrote: Sat Mar 17, 2018 4:35 am.........................
If absolutely needed, you could update to X.Org 1.19 via this method here:
viewtopic.php?p=1381791#p1381791

Two notes however:
1) It might not solve your NVidia tearing problems automagically, ie. don't keep high hopes...
2) As already said above, messing around with X.Org always presents a very high possibility of ending up in a black screen.
Make absolutely sure you know how to recover, or else, back-up your data / use TimeShift first to have your peace of mind.
MintBean

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by MintBean »

catweazel wrote: Sat Mar 17, 2018 4:59 am
"...You have Xorg version 1.18, but need 1.19".
You've been given nonsense.
How so? A bunch of us were looking at this issue while back and came to the conclusion this was bang on the money. Tearing was certainly fixed in Manjaro Cinnamon between releases some time back and the conclusion was that an xorg bump was the differentiator.

I strongly suspect this is why Clem wrote this in the Linux Mint roadmap for Mint 18.3:
Release
rel_notes
Add instructions to upgrade to HWE Xorg 1.19
That hadn't been followed through last time I checked. Maybe we'll have to wait for Mint 19.

All the other methods are workarounds that help reduce the effects of a vsync issue present in Xorg 1.18 from my reading and experimentation on the subject. The do not however fix the underlying issue and therefore do not cure the problem.
Last edited by MintBean on Sat Mar 17, 2018 9:37 am, edited 1 time in total.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by catweazel »

MintBean wrote: Sat Mar 17, 2018 9:33 am How so? A bunch of us were looking at this issue while back and came to the conclusion this was bang on the money. Tearing was certainly fixed in Manjaro Cinnamon between releases some time back and the conclusion was that an xorg bump was the differentiator.

I strongly suspect this is why Clem wrote this in the Linux Mint roadmap for Mint 18.3:
Release
rel_notes
Add instructions to upgrade to HWE Xorg 1.19
That hadn't been followed through last time I checked. Maybe we'll have to wait for Mint 19.
Ok, apologies to the OP. Thanks.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
olegipman

Re: Xorg 1.19 update. nVidia tearing. vsync prime

Post by olegipman »

thx-1138 wrote: Sat Mar 17, 2018 6:44 am
olegipman wrote: Sat Mar 17, 2018 4:35 am.........................
If absolutely needed, you could update to X.Org 1.19 via this method here:
viewtopic.php?p=1381791#p1381791

Thank you very much!!! It works!!! Amazing... I've searched for solution one year. And that's it!!! Yes!))

There's my next steps:

Original:
https://devtalk.nvidia.com/default/topi ... 7/#5245777

My description

Code: Select all

    sudo tee /etc/modprobe.d/99-prime-sync.conf << "options nvidia_384_drm modeset=1"
    sudo update-initramfs -u
After reboot, issuing

Code: Select all

  sudo cat /sys/module/nvidia_drm/parameters/modeset
should return 'Y'
If not, use

Code: Select all

 sudo nano /lib/nvidia-384/modprobe.conf
and change
options nvidia_384_drm modeset=0[/code]
into
options nvidia_384_drm modeset=1[/code]
then run

Code: Select all

    sudo update-initramfs -u
and reboot. then check

Code: Select all

   sudo cat /sys/module/nvidia_drm/parameters/modeset
should return
Y
Locked

Return to “Graphics Cards & Monitors”