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? |
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) |
Hello,
You can try to set ForceFullCompositionPipeline to On. Here is how this works : Code:
$ nvidia-settings --assign CurrentMetaMode="<CONNECTED_DEVICE> { ForceFullCompositionPipeline=On }" Code:
$ xrandr | grep " connected " Code:
$ xrandr | grep " connected " Code:
$ nvidia-settings --assign CurrentMetaMode="DVI-D-0: 1920x1080 { ForceFullCompositionPipeline=On }" Code:
Option "MetaModes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline=On }" Code:
# Important note about the attribute ForceFullCompositionPipeline -- SeB |
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.
|
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 |
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! |
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... |
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! |
In the past I have gotten the same problem with the 'xv' driver. Use 'vdpau' or 'gl' drivers.
|
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! |
Quote:
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. |
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! |
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. |
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.
|
I have version 349.16 of the NVidia drivers and the following /usr/share/X11/xorg.conf.d/10-nvidia.conf:
Code:
Section "Device" 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. |
All times are GMT -5. The time now is 06:01 PM. |