You are not logged in.

#1 2012-09-11 22:30:45

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Get rid of tearing

Hello

I have Intel Graphics HD 2000 gpu built into my cpu, I have latest x.org, kernel from Core and Extra. I use XFCE. Tried with the kernel compiled with ck.  Tried with libdrm and xf86-video-video from git, same problems.

Here is my xorg.conf:

Section "ServerFlags"
    Option "AutoAddDevices" "Off"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "XkbLayout" "no"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    Option      "AccelMethod" "UXA"
    Option      "TearFree" "true"
    Option      "MigrationHeuristic" "greedy"
    Option         "TripleBuffer" "true"
EndSection


As the settings are, rendering of windows are fast but very much tearing when moving the windows fast, even if I have a compositor enabled or not. Tried both xfce's wm's intergrated one and xcompmgr.

Changing Accelmethod from UXA to SNA, the tearing is gone, but the rendering is very slow.

EDIT:

With this xorg.conf:

Section "ServerFlags"
    Option "AutoAddDevices" "Off"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "XkbLayout" "no"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    Option      "AccelMethod" "SNA"
#    Option      "TearFree" "true"
    Option      "MigrationHeuristic" "greedy"
    Option    "TripleBuffer" "true"
EndSection

With this rendering is and as much tearing as with UXA.

EDIT2:

Here is my .drirc:

<device screen="0" driver="dri2">
    <application name="Default">
    <option name="vblank_mode" value="1"/>
    </application>
</device>

<device screen="0" driver="dri">
    <application name="Default">
    <option name="vblank_mode" value="1"/>
    </application>
</device>

Last edited by Roberth (2012-09-11 22:45:01)


Use the Source, Luke!

Offline

#2 2012-09-11 23:43:10

dn_nb
Member
Registered: 2012-09-11
Posts: 6

Re: Get rid of tearing

Tearing is an issue for any window manager that dosn't use opengl for compositing, there isn't a lot you can do about it.  The only solution I have found is the dcompmgr-git package on the aur, it has an option to use opengl as a backend, but it is experimental and abandoned. Still, it works for me. Fairly stable with a tiling window manager so it might work for xfce, but there will probably be bugs.

Last edited by dn_nb (2012-09-11 23:43:45)

Offline

#3 2012-09-12 17:47:43

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Get rid of tearing

Well I have ordered an cheapass nvidia 610 card, to try their blob driver, I remember from back in the days, that it did a good job on this area.


Use the Source, Luke!

Offline

#4 2012-09-12 18:18:52

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Get rid of tearing

You need to use an OpenGL window manager. AFAIK, there's just KWin from KDE, Mutter from GNOME and Compiz. Anything else uses XRandR, and you get tearing.

Disable compositing (shadows around the window) and any other fancy "eye-candy" effects and you'll get rid of it. There are countless topics about this on the Arch Linux forums and on the internet.


PS: I'm starting to think that Wayland is a myth.

Last edited by DSpider (2012-09-12 18:19:48)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-09-12 18:30:31

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: Get rid of tearing

I switched to cairo-compmgr-git from AUR. It has even a "Sync to vblank" Option in the settings and I have never experienced tearing again. I also activated "Sync to vblank" in nvidia-settings just to make sure. No other compositer (xfwm4 and xcompmgr [which has other issues too]) was able to do this. Could have used compiz but it seems way more bloated with useless features than cairo-compmgr.

Anyone knows what compositor "Enlightenment" uses? I installed E17 in a VM yesterday and it looked very interesting. Wondering if I can use their compositor for XFCE.

All xcompmgr forks (compton and dana) have proven to be very buggy for me. No issues with cairo-compmgr so far.

Last edited by blackout23 (2012-09-12 18:40:42)

Offline

#6 2012-09-12 18:35:55

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Get rid of tearing

DSpider wrote:

Anything else uses XRandR, and you get tearing.

You mean xrender.

There's one other opengl compositor I recently discovered - fbcompose. It was written for fluxbox, but it's a standalone compositor that works with any WM. Didn't yet give it extensive testing though.

DSpider wrote:

PS: I'm starting to think that Wayland is a myth.

It's not a myth. It's a real thing that's in active development. The problem are it's cheerleaders (clueless users at the Phoronix forums) who think Wayland will cure the world, and replace X like tomorrow.

Last edited by Gusar (2012-09-12 18:37:10)

Offline

#7 2012-09-12 18:41:22

Teho
Member
Registered: 2010-01-30
Posts: 200

Re: Get rid of tearing

DSpider wrote:

You need to use an OpenGL window manager. AFAIK, there's just KWin from KDE, Mutter from GNOME and Compiz. Anything else uses XRandR, and you get tearing.

I use KWin and still get tearing with NVIDIA graphics card with the binary blop.

Offline

#8 2012-09-12 18:58:21

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Get rid of tearing

Gusar wrote:

It's not a myth. It's a real thing that's in active development. The problem are it's cheerleaders (clueless users at the Phoronix forums) who think Wayland will cure the world, and replace X like tomorrow.

Active development my foot. Since 2008? For four years? Come on...

You can't exactly call it active.


Teho wrote:

I use KWin and still get tearing with NVIDIA graphics card with the binary blop.

Enable VSync then.

$ nvidia-settings

Last edited by DSpider (2012-09-12 19:01:53)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#9 2012-09-12 19:01:53

Teho
Member
Registered: 2010-01-30
Posts: 200

Re: Get rid of tearing

DSpider wrote:

Enable VSync then.

It has been on by default for a few releases now... and yes of course I have tried that; It has no effect. The setup that actually works is using MPlayer with VDPAU output and suspending the compositing for full screen windows.

DSpider wrote:

Active development my foot. Since 2008? For four years? Come on...

These things don't happen over night.

https://www.ohloh.net/p/weston
https://www.ohloh.net/p/wayland
http://www.chaosreigns.com/wayland/state/
http://www.reddit.com/r/wayland
http://gstconf.ubicast.tv/videos/wayland/

Last edited by Teho (2012-09-12 19:04:11)

Offline

#10 2012-09-12 19:22:32

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: Get rid of tearing

Teho wrote:
DSpider wrote:

You need to use an OpenGL window manager. AFAIK, there's just KWin from KDE, Mutter from GNOME and Compiz. Anything else uses XRandR, and you get tearing.

I use KWin and still get tearing with NVIDIA graphics card with the binary blop.

Maybe you should try cairo-compmgr-git too. I'd be curious if works for you with KDE.
Really happy that I finally found a cure. Watching videos in VLC wasn't really a pleasure with tearing.
Back when I used Gnome 3 I didn't have tearing either.

Offline

#11 2012-09-12 19:28:11

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Get rid of tearing

DSpider wrote:

Active development my foot. Since 2008? For four years? Come on...

You can't exactly call it active.

Please don't be one of those clueless people. It's a whole freakin' windowing system. You don't code that over the weekend. Also, when a project started does not determine activity. The daily/weekly/monthly number of mailing list messages and code commits do.

Offline

#12 2012-09-12 20:31:35

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Get rid of tearing

Disabling composite extension, and workarounding weird bugs in nvidia blob
that causes the settings not to be loaded(?) eliminates all tearing in videos and games for me.

For reference, the small script I run at startup to set settings:
https://github.com/Cloudef/dotfiles-ng/ … d-settings

Xorg:
https://github.com/Cloudef/dotfiles-ng/ … vidia.conf

For video, mplayer is used with xv output.

These are nvidia specific though, and is not quarnteed to eliminate tearing.
Here hoping that wayland will finally bring end to that on all kinds of setups.

Last edited by Cloudef (2012-09-12 21:45:02)

Offline

#13 2012-09-12 20:45:23

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Get rid of tearing

For KDE try the following - works for me...

https://bbs.archlinux.org/viewtopic.php … 0#p1143200

Offline

#14 2012-09-12 20:53:56

Teho
Member
Registered: 2010-01-30
Posts: 200

Re: Get rid of tearing

David Batson wrote:

For KDE try the following - works for me...

https://bbs.archlinux.org/viewtopic.php … 0#p1143200

Cloudef wrote:

Disabling composite extension, and workarounding weird bugs in nvidia blob
that causes the settings not to be loaded(?) eliminates all tearing in videos and games for me.

Tried both but neither of them worked. It's interesting how the same probelm can have so many causes...

I guess I could try alternate compositors next; it's just that KWin is too awesome for normal usage to let go off.

Offline

#15 2012-09-13 02:48:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Get rid of tearing

You could try the experimental OpenGL support for Qt graphics. There's a module you can install to switch via system settings (X11/Xrender or raster or opengl.)

I get tearing even with SNA for Intel.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#16 2012-09-18 09:16:45

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Get rid of tearing

KDE works great for me, no tearing.


Use the Source, Luke!

Offline

Board footer

Powered by FluxBB