Solved Problems with KDE/OpenGL

I recently installed FreeBSD 10.2-RELEASE and decided to run KDE 4.14.3. I have an NVIDIA GeForce GT 720 GPU and am running it with the NVIDIA 346.96 driver. I have tried changing multiple settings and found that when I change or re-load the Desktop Effects to either OpenGL 3.1, 2.0, or 1.2 it fixes the screen tearing. Upon restart the tearing returns untill I do this again. I have found some threads on KDE forums talking about this being a bug, but most of them say it has been fixed.

I am hoping to find out either what is causing these problems or some ideas as to how I can find out this information. Any help is greatly appreciated.
 
Hi.

Nvidia removed hardware support for tearing from their GPUs starting with Kepler and replaced it with additions to their driver which unfortunately doesn't work well under FreeBSD or Linux for a lot of people when using compositing. It's a known problem.

A workaround is to create a file(/usr/local/etc/X11/xorg.conf.d/10-nvidia.conf) and add the following Device section:
Code:
Section "Device"
        Identifier     "card0"
        Driver         "nvidia"
        Option         "AccelMethod" "none"
        Option         "TripleBuffer" "True"
        Option         "MetaModes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
EndSection

Other options can be added to the Device section just like a normal xorg.conf file. For example this is what I use on one of my machines:

Code:
Section "Device"
        Identifier     "Card0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BusId          "PCI:1:0:0"
        BoardName      "NVIDIA GTX 760"
        Option         "AccelMethod" "none"
        Option         "TripleBuffer"        "true"
        Option         "Coolbits"            "12"
        Option         "MetaModes"           "1920x1080 { ForceFullCompositionPipeline = On }, 1920x1080 { ForceFullCompositionPipeline = On }"
        Option         "ConnectedMonitor"    "DVI-I-1, DVI-D-0"
        Option         "MetaModeOrientation" "DVI-D-0 RightOf DVI-I-1"
EndSection

If you have an existing xorg.conf file, rename or delete that file first. This should fix most of the tearing problems under KDE.

As for your second question, please start a new thread for that as it's unrelated to the first question.
 
Thanks for the quick reply. I will try this out and let you know the results. Also is there a way to edit a thread name? I pulled out the second question to put into a new thread.

EDIT: It worked like a charm! I kept most of the information in my xorg.conf because it was important but simply by adding
Code:
Option         "AccelMethod" "none"
Option         "TripleBuffer" "True"
Option         "MetaModes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
the problem was gone.
 
Also is there a way to edit a thread name? I pulled out the second question to put into a new thread.
Sure. Many people don't mark their threads as solved so the moderators will do so when they run across one that is obviously solved. To edit the thread title and/or mark it solved, click on "Thread Tools" in the upper right of the page while viewing the thread then click on "Edit Thread".

In this case I edited the thread title for you and marked it solved already. If you feel it is not solved you can of course remove the "Solved" prefix. :)
 
Nvidia removed hardware support for tearing from their GPUs starting with Kepler and replaced it with additions to their driver which unfortunately doesn't work well under FreeBSD or Linux for a lot of people when using compositing. It's a known problem.
IMHO this would be worth adding to Thread 52311.
 
IMHO this would be worth adding to Thread 52311.

Sure, that makes sense. I can add a post to the thread later tonight or tomorrow when I get more time if you'd like or you can edit your post to add the information if you prefer. I'd like to grep through the Nvidia user forums again to find the reference to that statement first before I add the information myself. I thought I had it bookmarked, but I guess not. :(

Edit: added a post to Thread 52311 for this.
 
Back
Top