LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-17-2015, 06:43 AM   #1
Death On Wings
LQ Newbie
 
Registered: Jul 2003
Location: Sweden
Distribution: Slackware
Posts: 28

Rep: Reputation: 5
Screen tearing.


Hello fellow slackware users.

I am using 14.1 with the latest nvidia drivers installed and everything is working fine.
But there is one thing that is very annoying, when I watch movies thru vlc and other media players I get very bad screen tearing and I just can't find any way to get rid of it.

I have tried all of the options in the nvidia-setting but nothing is helping.

Is there a way to solve this or so I just have to live with it?
 
Old 02-17-2015, 06:50 AM   #2
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
This problem went away when I started using a compositor like Compiz.

Screen Tearing also goes away when you activate the desktop effects in KDE.

Additionally, the nvidia settings should have an option called "Sync To VBlank". (I just googled that, as I have an AMD card)

Last edited by schmatzler; 02-17-2015 at 06:53 AM.
 
Old 02-17-2015, 06:59 AM   #3
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

You can try to set ForceFullCompositionPipeline to On. Here is how this works :
Code:
$ nvidia-settings --assign CurrentMetaMode="<CONNECTED_DEVICE> { ForceFullCompositionPipeline=On }"
where <CONNECTED_DEVICE> is given by :
Code:
$ xrandr | grep " connected "
For instance, on my side, I have this :
Code:
$ xrandr | grep " connected "
DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
so, I use that :
Code:
$ nvidia-settings --assign CurrentMetaMode="DVI-D-0: 1920x1080 { ForceFullCompositionPipeline=On }"
To make this permanent, you can add the option below in your xorg config file :
Code:
Option          "MetaModes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline=On }"
On my side, I have a configuration file in /etc/X11/xorg.conf.d dedicated to nvidia which is called 10-nvidia.conf and contains :
Code:
# Important note about the attribute ForceFullCompositionPipeline 
# ===============================================================
#
#   Setting the attribute "ForceFullCompositionPipeline" to "On"
#   solves the tearing issue on nvidia kepler based videocards.
# 
# ATTENTION:
# ---------
# The use of ForceFullCompositionPipeline=On might reduce performance 
# in some video-games. To avoid that, this attribute can be disabled 
# using nvidia-settings before running any game as below :
#
#     $ nvidia-settings --assign CurrentMetaMode="<CONNECTED_DEVICE> { ForceCompositionPipeline = Off }"
#
#   <CONNECTED_DEVICE> must be replaced with the connected device 
#   returned by the command :
#
#     $ xrandr | grep " connected"
#
#   For instance, if running the command above returns :
#
#       DVI-D-0 connected primary 1920x1080+0+0 ...
#
#   Then, the string <CONNECTED_DEVICE> will be : "DVI-D-0: 1920x1080"
#
# Source: https://devtalk.nvidia.com/default/topic/543305
#
Section "Device"
        Identifier      "Device0"
        Driver          "Nvidia"
        VendorName      "Nvidia Corporation"
        BoardName       ""

        Option          "UseEdidDpi" "False"
        Option          "DPI" "120 x 120"

        Option          "MetaModes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline=On }" 
EndSection
Hope this helps.

--
SeB

Last edited by phenixia2003; 02-17-2015 at 07:00 AM.
 
Old 02-17-2015, 07:30 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Anything from 320.xx onwards gave me tearing on 'xv' video output. I switched back to the "legacy 304.xx" drivers and the problem went away.

Last edited by GazL; 02-17-2015 at 07:37 AM.
 
1 members found this post helpful.
Old 02-17-2015, 09:29 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I also think that the issue is with the newer NVidia drivers.

I get around it by setting VLC and MPlayer to render movies using either vdpau or OpenGL, not xv.

FullForceCompositionPipeline didn't make a difference for me.

And we did have an earlier thread about this:

Screen tearing with VLC only

Last edited by dugan; 02-17-2015 at 09:43 AM.
 
1 members found this post helpful.
Old 08-14-2015, 06:58 AM   #6
stureedy
Member
 
Registered: Jul 2009
Location: Lexington, Kentucky, USA
Distribution: Slackware
Posts: 45
Blog Entries: 4

Rep: Reputation: 2
From what I've read, this is due to a bug in Compiz, discovered and reported by Arthur Huillet. I have yet to find a .patch file for compiz-0.8.8, which is what I'm using on Slackware 14.1, but I did find and unofficial release of compiz-0.8.10 at http://www.northfield.ws/projects/co...leases/0.8.10/
If I get some time, I'll try to build this and see if it fixes the issue.
If anyone else out there has the time and ability, I'd love to have some help (or another person or twenty working on this): I gotta have my wobbly windows!
 
Old 08-18-2015, 08:03 AM   #7
stureedy
Member
 
Registered: Jul 2009
Location: Lexington, Kentucky, USA
Distribution: Slackware
Posts: 45
Blog Entries: 4

Rep: Reputation: 2
I built and installed compiz (core) v0.8.10 on my Slackware 14.1 box and the problem seems worse. When (if) I get time, I'll try building all of the pieces of compiz-fusion v0.8.10 and see if that improves things.
Fun, fun, fun!
Stu...
 
Old 08-21-2015, 07:52 PM   #8
stureedy
Member
 
Registered: Jul 2009
Location: Lexington, Kentucky, USA
Distribution: Slackware
Posts: 45
Blog Entries: 4

Rep: Reputation: 2
Good News! The .Slackbuilds for compiz 0.8.10 are now available on http://slackbuilds.org/!! woohoo! Big thanks to M.Dinslage (for the new .SlackBuilds) and mrscottm at northfield.ws!
I'm now using them with my build of compiz (core) and it seems to work. I'll be able to test the tearing (no redraw) issue when I get back to my office machine!
Progress!
 
Old 08-21-2015, 08:36 PM   #9
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
In the past I have gotten the same problem with the 'xv' driver. Use 'vdpau' or 'gl' drivers.
 
Old 08-24-2015, 01:11 PM   #10
stureedy
Member
 
Registered: Jul 2009
Location: Lexington, Kentucky, USA
Distribution: Slackware
Posts: 45
Blog Entries: 4

Rep: Reputation: 2
Bummer; I spoke too soon and forgot to actually read the documentation. While compiz 0.8.10 is an excellent update, it does not include the nvidia patch. In fact, my screen issues got much worse under Slackware64 Current with compiz 0.8.10!

I guess it's back to the drawing board for me!
 
Old 08-24-2015, 04:37 PM   #11
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by stureedy View Post
Bummer; I spoke too soon and forgot to actually read the documentation. While compiz 0.8.10 is an excellent update, it does not include the nvidia patch. In fact, my screen issues got much worse under Slackware64 Current with compiz 0.8.10!

I guess it's back to the drawing board for me!
Hi stureedy, I maintain the compiz packages over at SBo. The bug you are referring to above is for the 0.9 branch of compiz, not for the 0.8 branch which are two different forks at this point. I fixed my screen tearing issues with compiz by either installing the legacy Nvidia driver or setting the ForceFullCompositionPipeline to on in your xorg.conf. Also what model is your nvidia card? Gentoo has a patch that is supposed to address nvidia screen tearing issues but I have never applied it to my compiz-core build because the above fixes my problem, however here is a link to the patch if you want to try it http://data.gpo.zugaina.org/stuff/x1..._tearing.patch

If you need a slackbuild for it let me know, I have one ready to go that I use. I can't guarantee that it will fix your problem but I suppose it is worth a try.

Last edited by Daedra; 08-24-2015 at 05:09 PM.
 
Old 08-29-2015, 01:07 PM   #12
stureedy
Member
 
Registered: Jul 2009
Location: Lexington, Kentucky, USA
Distribution: Slackware
Posts: 45
Blog Entries: 4

Rep: Reputation: 2
Hey Daedra!
Thanks so much! It looks like the ForceFullCompositionPipeline setting fixed the issues I was having (at least in -current with NVidia driver 352.30). I'm confident the same will work for 14.1 (where I'm using NVidia 352.30 with kernel 3.10.87).
Progress!
 
Old 08-29-2015, 05:27 PM   #13
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
on the latest nividia the adaptive mode handles most of this for you. think of a video of thousands of textures the adaptive setting syncs this and then reduces tearing. you have auto adaptive and max . Then set the setting so it enhances the program running.
or you can go brute force. ForceFullCompositionPipeline
thing to remember the Nvidia blob driver has been changed. It works by heat as the heat goes up the the gpus are throttle back.
this is what has allowed more overclocking for linux. such as fan speed settings etc etc. just a note.
 
Old 08-29-2015, 05:35 PM   #14
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
FWIW I have found KWin to be a superior compositor to Compiz, which AFAIK has all but ceased development. KWin is in continuous development. In my case it is ultra simple to use since I have KDE installed but generally use Xfce. It is my understanding that it does not take a full KDE install to have KWin but I don't know the file list required. I just have heard it is reasonably minimal.
 
Old 09-24-2015, 10:38 PM   #15
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I have version 349.16 of the NVidia drivers and the following /usr/share/X11/xorg.conf.d/10-nvidia.conf:

Code:
Section "Device"
    Identifier  "Device0"
    Driver  "nvidia"
    VendorName "Nvidia Corporation"
    BoardName ""
EndSection

Section "Screen"
   Identifier     "Screen0"
   Device         "Device0"
   Option         "MetaModes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline=On }"
EndSection
Is that correct?

Compton's currently running and it's set to unredirect fullscreen windows. Everything plays tear-free except Youtube in Chromium, and Youtube in Chrome plays tear-free if I turn Compton off.

Last edited by dugan; 09-25-2015 at 12:52 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KDE Screen Tearing Issues c0d3d Linux - Software 10 10-30-2014 08:36 PM
[SOLVED] Screen tearing with VLC only Daedra Slackware 6 08-27-2014 08:26 PM
[SOLVED] How To Minimize Screen Tearing Pinonoir Slackware 6 07-02-2014 08:05 PM
Nvidia Screen tearing with Xv kryptobs2000 Linux - Software 0 01-15-2008 09:57 AM
OpenGL screensaver screen tearing Potatopopper Slackware 2 05-05-2007 07:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration