You are not logged in.
Hi
My problem is not a problem in particular. I just want to ask the masses if they have the same experiences as i do.
So. For me using Awesome WM it seems impossible to have both, compositing and videos without tearing. I've tried with different compositing managers and even without one, but the only thing solving the issue is disabling composite for Xort.
Is there anyone using Awesome WM with activated compositioning, who can watch videos without tearing? If yes: Which graphics card is used?
Window Managers which do not suffer from tearing seem to be:
- Compiz
- Gnome3
- Others?
ps. Any suggestions for solving this for Nvidia cards are much appreciated.
Last edited by Archdove (2013-04-13 23:06:22)
Offline
Yeah... Same goes for Openbox/Fluxbox, Xfce, E17, etc. They all have tearing during videos, because Xorg has this limitation. Well, actually XRendr does (or was it "XRandR"? I forget). Wayland doesn't have this limitation, but a lot of applications don't support Wayland (yet).
Basically, with Xorg, you need an OpenGL WM, and "Gnome3" is not a WM; you probably mean Mutter. There's also KWin (KDE).
Last edited by DSpider (2013-04-12 20:11:06)
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
I was able to solve all tearing issues with compositing under the Awesome WM using a Nvidia GTX 670 last night. Which I was amazed at. I installed the compton-git from Aur and inputted the following:
compton --backend glx --paint-on-overlay --vsync opengl-swc
Offline
Hey z1lt0id that sounds interesting. I will try this next week and give some feedback here.b
Offline
I confirm z1lt0id's words. Using the same setup. Just share my own string from .xinitrc:
compton -bfzcCG --backend glx --vsync opengl-swc --paint-on-overlay -D5 -r6 -l-8 -t-8
Using this on both PC with nvidia 9500gt and latest nvidia drivers and on a laptop with old gm965 and xf86-video-intel
Offline
I confirm z1lt0id's words. Using the same setup. Just share my own string from .xinitrc:
compton -bfzcCG --backend glx --vsync opengl-swc --paint-on-overlay -D5 -r6 -l-8 -t-8
Using this on both PC with nvidia 9500gt and latest nvidia drivers and on a laptop with old gm965 and xf86-video-intel
Glad it worked for you to koshak
Offline
The funny part about this thread -- when I read the title, I thought 'tearless' meant how to do it without crying
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
compton(-git) works amazingly well! Just got the glx backend working just as fast as xrender with latest git, with absolultely no tearing!
Even if the opengl backend isn't working for you, you can make it almost tear-free with --vsync drm.
here are my settings for reference. I think --glx-no-stencil and --glx-no-rebind-pixmap were the crucial settings for me (using open source radeon driver)
compton -c -r4 -l-6 -t-4 -z -b \
-G -C -e0.85 \
-f -D30 -I0.45 -O0.45 \
--paint-on-overlay --unredir-if-possible \
--backend glx --glx-no-stencil --glx-no-rebind-pixmap
Last edited by ooo (2013-04-14 16:45:14)
Offline
^ Always a worry when using a onion-based compositor. Fortunately compton uses potatoes for this purpose.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Onion comes out of the box for almost all linux distros. And only few projects, like compiz and compton (maybe there are some more, like infinality, but it's the matter of taste...) seem to replace it with potatoes
Offline
Maybe some of this could go in the wiki?
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
Thanks for the tip on compton. It is really awesome, rock solid and does exactly what it is supposed to.
Offline
The funny part about this thread -- when I read the title, I thought 'tearless' meant how to do it without crying
It is funny because thats basically what you get out of this thread :-)
This has to go to the wiki somewhere. Up until now it was just impossible to google a solution.
Thanks guys. Great work!
Offline
Thank chjj https://github.com/chjj/compton
Offline
compton -c -r8 -l-12 -t-8 -b -G -f -D30 -I0.45 -O0.45 --paint-on-overlay --unredir-if-possible --backend glx --glx-no-stencil --glx-no-rebind-pixmap
Intel 945gm, no ~/.drirc
Firefox never scrolled so smoothly with compositing enabled!
...going to report this to kwin developers, there is something in compton (probably vsync related) they should look for
Thank you for this thread.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Also xfwm4, the xfce window manager works great with compositing enabled!
Offline
The window manager may work "great" on its own, but this topic is about video tearing and you do get video tearing in Xfce with compositing enabled.
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
If anybody want to track:
https://bugs.kde.org/show_bug.cgi?id=318491
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
The window manager may work "great" on its own, but this topic is about video tearing and you do get video tearing in Xfce with compositing enabled.
But can't you use the Compton composite manger instead of the default one in XFCE?
Offline
can't you use the Compton composite manger instead of the default one in XFCE?
Yes. I tried this a couple of days ago. Compton fixes the flickering top of screen in e.g. Descent2, also.
In case it's important, my xfwm4 is compiled with --disable-compositor
It was nice to try, but I'll stick with disabling Composite in xorg.conf, for an easy life.
Offline
If you want the best absolute performance it is best to disable compositing anyway. For me with Awesome if I didn't enable I'd get tearing in everything.
Offline
I use kde and mythtv. I solve that with a simple wrapper to launch mythtv :
#!/bin/bash
pidof /usr/bin/mythfrontend && exit 1
trap "qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing" EXIT
qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing
/usr/bin/mythfrontend "$@"
Offline
I use kde and mythtv. I solve that with a simple wrapper to launch mythtv :
#!/bin/bash pidof /usr/bin/mythfrontend && exit 1 trap "qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing" EXIT qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing /usr/bin/mythfrontend "$@"
I thought kwin already disables desktop effects when you enter fullscreen applications, or at least there should be option for that.
compton has this feature as well if you enable the --unredir-if-possible option.
Offline
There is an option for Kwin to disable desktop effects on fullscreen applications but it can be problematic and doesn't always work. I always just disabled compositing effects before I load up said program to be safer. According to the compton manual --unredir-if-possible may cause flickering. I'm curious to try this out and see how it goes
Offline
For me, unredirecting via kwin worked all the time.
@hamelg: in newer kde versions, you can use window rules to completely block compositing when kwin detects a particular window.
see: http://userbase.kde.org/KWin_Rules_Window_Attributes
@z1lt0id
As for compton --unredir-if-possible, it works too, and you'll get a flick everytime you go from unredirect to redirect, (eg: when you popup a menu while in fullscreen) --paint-on-overlay, makes the flickering less evident.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline