Maui Forums
Screen Tearing - Printable Version

+- Maui Forums (https://forums.mauilinux.org)
+-- Forum: Maui Support (https://forums.mauilinux.org/forumdisplay.php?fid=74)
+--- Forum: Plasma Desktop (https://forums.mauilinux.org/forumdisplay.php?fid=84)
+--- Thread: Screen Tearing (/showthread.php?tid=24037)

Pages: 1 2 3 4


RE: Screen Tearing - wonder - 21st October 2016

For screen tearing, in the past, for me works fine this solution:

Quote:I got in touch with somebody from the Nvidia helpdesk and he advised me to do the following:
After installation of the latest driver suitable for your card you open the Nvidia settings program. In here you make sure you save the current settings to the /etc/X11/xorg.conf file.
I had no such file to begin with but saving the settings makes it.

You can now open a terminal and type: kdesudo kate /etc/X11/xorg.conf. Type your password and kate will open the file.
Now almost at the end of the file you see 2 lines with options:
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
First copy the second options line to a new line below it and put a # sign infront of it to make it a remark.

The first one is standard, the second one has been changed by the line coming from the helpdesk, who gave me the part printed in bold.
Change the second line to the one above and save it. To make sure the file in its new configuration is used you have to reboot.

Regards.


RE: Screen Tearing - sputnik_tr_02 - 21st October 2016

Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 370.28  (buildd@lgw01-54)  Thu Sep  8 21:23:44 UTC 2016


Section "ServerLayout"
   Identifier     "layout"
   Screen      0  "Screen0" 0 0
   Inactive       "intel"
   InputDevice    "Keyboard0" "CoreKeyboard"
   InputDevice    "Mouse0" "CorePointer"
   Option         "Xinerama" "0"
EndSection

Section "InputDevice"

   # generated from default
   Identifier     "Keyboard0"
   Driver         "kbd"
EndSection

Section "InputDevice"

   # generated from default
   Identifier     "Mouse0"
   Driver         "mouse"
   Option         "Protocol" "auto"
   Option         "Device" "/dev/psaux"
   Option         "Emulate3Buttons" "no"
   Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
   Identifier     "Monitor0"
   VendorName     "Unknown"
   ModelName      "Unknown"
   HorizSync       28.0 - 33.0
   VertRefresh     43.0 - 72.0
   Option         "DPMS"
EndSection

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

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

Section "Device"
   Identifier     "Device0"
   Driver         "nvidia"
   VendorName     "NVIDIA Corporation"
   BoardName      "GeForce GTX 860M"
EndSection

Section "Screen"
   Identifier     "intel"
   Device         "intel"
   Monitor        "Monitor0"
EndSection

Section "Screen"
   Identifier     "nvidia"
   Device         "nvidia"
   Monitor        "Monitor0"
   Option         "AllowEmptyInitialConfiguration" "on"
   Option         "IgnoreDisplayDevices" "CRT"
EndSection

Section "Screen"
   Identifier     "Screen0"
   Device         "Device0"
   DefaultDepth    24
   Option         "UseDisplayDevice" "none"
   SubSection     "Display"
       Virtual     1920 1080
       Depth       24
   EndSubSection
EndSection

Thanks for the tip but this is my xorg.conf file, those lines you mentioned does not exist for me. Where should I add those lines?


RE: Screen Tearing - wonder - 21st October 2016

First, open your nvidia application settings, and then, save xorg.conf file.
After this, quote here the xorg.conf.


RE: Screen Tearing - sputnik_tr_02 - 21st October 2016

(21st October 2016, 10:33)wonder Wrote: First, open your nvidia application settings, and then, save xorg.conf file.
After this, quote here the xorg.conf.

I actually did that before I copied this.


RE: Screen Tearing - wonder - 21st October 2016

Hi.
Let me look at my laptop for testing.
Now that I realize that I put the solution was for nVidia dedicated graphics cards, for example, in a tower, in your case, it is a laptop with hybrid graphics.

I take a time for testing and post.


RE: Screen Tearing - sputnik_tr_02 - 21st October 2016

Thanks! From what I gather from the web the issue seems to be about Intel and Nvidia gpus cannot talk to each other well. Even when we switch to nvdia card intel card seems to responsible for some tasks like bringing final image rendered by Nvidia to display and two gpus not in sync, hence the problem. But I am yet to find a solution.


RE: Screen Tearing - rocky7x - 22nd October 2016

As far as I know, this is only in case of bumblebee, because it is coded to start a separate X server with nvidia, use it for graphics rendering, but use intel's X server for drawing. But when you switch the GPU to Nvidia using Nvidia prime and login using Nvidia, then intel is off and only Nvidia is used, since X server is running using just Nvidia.


RE: Screen Tearing - rocky7x - 25th October 2016

Hi,

Just to post my findings. In summary, I was not able to get rid of tearing, using my Nvidia card, in any way possible. I guess the stuff that I posted above work in Ubuntu 16.04, because it uses a different window manager, so it might be the problem somewhere there. It was working fine in Netrunner 14.2.


RE: Screen Tearing - rocky7x - 25th October 2016

OK, after a lot of googling I found out that it is a general issue and that only X server 1.19 will resolve it. So we must wait until it is released - for more details check this thread:

https://devtalk.nvidia.com/default/topic/775691/linux/vsync-issue-nvidia-prime-ux32vd-with-gt620-m-/8


RE: Screen Tearing - sputnik_tr_02 - 25th October 2016

Thanks for your effort. I did not try default ubuntu because KDE is just too awesome to leave, I also tried some Kwin tweaks but with no success however I might try latest Netrunner desktop when it's released, not just for screen tearing but to see how is debian base will work out. I think I'll have to stick with windows for gaming for the time being.