Page 1 of 3

Remove screen tearing using Compton

Posted: Sun Mar 19, 2017 6:10 am
by DaGama
The Compton tool developed by the MX team is great. But still I noticed some screen tearing after enabling it.

The solution I found was to start Compton, not using the setting provided by the mentioned tool, but using this command instead:
Set to autostart:

Code: Select all

compton --backend glx --paint-on-overlay --vsync opengl-swc
This removes all screen tearing in video and scrolling.

Would you consider applying this in the future?

Thank you very much.

PS: I use a Mobility Radeon HD3650 with open source drivers

Re: Remove screen tearing using Compton

Posted: Sun Mar 19, 2017 8:32 am
by Zoleeka88
Hi everyone! It worked like a charm for me too! No screen tearing at all :)

Re: Remove screen tearing using Compton

Posted: Mon Mar 20, 2017 12:53 am
by colin_b
Hurrah! My biggest gripe with Linux has been solved!

It works with my GeForce card.

Video tearing all but gone.

Please make this a standard startup for Compton, it works a treat.

Re: Remove screen tearing using Compton

Posted: Mon Mar 20, 2017 5:25 am
by Jerry3904
DaGama wrote:The Compton tool developed by the MX team is great. But still I noticed some screen tearing after enabling it.

The solution I found was to start Compton, not using the setting provided by the mentioned tool, but using this command instead:
Set to autostart:

Code: Select all

compton --backend glx --paint-on-overlay --vsync opengl-swc
This removes all screen tearing in video and scrolling.

Would you consider applying this in the future?

Thank you very much.

PS: I use a Mobility Radeon HD3650 with open source drivers
Thanks very much for chasing this down and posting it here. We will certainly take a careful look at it.

Re: Remove screen tearing using Compton

Posted: Fri Apr 14, 2017 10:32 pm
by colin_b
I have got a humble spec PC - Intel Celeron G1610T 2.3GHz, GeForce GT 710 2GB DDR3 (Nouveau drivers), 8GB RAM.

The above Compton settings worked fine for removing video tearing but I still had some stutter when playing videos on YouTube etc.

I am a born tinkerer, so I decided to explore and test some of Compton's numerous settings, most are shown at https://github.com/chjj/compton/wiki/perf-guide.

After many attempts I have come up with a setup which totally eliminates tearing and drastically reduces video stutter. As a suggestion, would it be possible to give the Compton manager the option of 3 startup modes which can be set with something like checkboxes.

1) Default - Basic Compton startup (should work on all machines)
2) Faster - compton --backend glx --paint-on-overlay --vsync opengl-swc (should work on most machines)
3) Fastest - compton --backend glx --unredir-if-possible --glx-no-stencil --glx-no-rebind-pixmap --glx-swap-method buffer-age --vsync opengl-swc (might need a reasonably modern video card)

Re: Remove screen tearing using Compton

Posted: Fri Apr 14, 2017 11:18 pm
by dolphin_oracle
colin_b wrote:I have got a humble spec PC - Intel Celeron G1610T 2.3GHz, GeForce GT 710 2GB DDR3 (Nouveau drivers), 8GB RAM.

The above Compton settings worked fine for removing video tearing but I still had some stutter when playing videos on YouTube etc.

I am a born tinkerer, so I decided to explore and test some of Compton's numerous settings, most are shown at https://github.com/chjj/compton/wiki/perf-guide.

After many attempts I have come up with a setup which totally eliminates tearing and drastically reduces video stutter. As a suggestion, would it be possible to give the Compton manager the option of 3 startup modes which can be set with something like checkboxes.

1) Default - Basic Compton startup (should work on all machines)
2) Faster - compton --backend glx --paint-on-overlay --vsync opengl-swc (should work on most machines)
3) Fastest - compton --backend glx --unredir-if-possible --glx-no-stencil --glx-no-rebind-pixmap --glx-swap-method buffer-age --vsync opengl-swc (might need a reasonably modern video card)
thank you for the research! i'll take a look. i'll post bck any questions.

Re: Remove screen tearing using Compton

Posted: Thu Sep 28, 2017 2:10 am
by Kestrel
This has fixed my screen tearing intel duo e8600 cpu with integrated graphics. Using the old debian jessie package (I downgraded due to program crashes - seperate issue) but pretty sure it would work on the latest ones in the repository too. Excellent and simple fix.

I read the next version of xfce will have tearing fixed by default.

Re: Remove screen tearing using Compton

Posted: Tue Jan 09, 2018 9:25 am
by Clidix
DaGama wrote:The Compton tool developed by the MX team is great. But still I noticed some screen tearing after enabling it.

The solution I found was to start Compton, not using the setting provided by the mentioned tool, but using this command instead:
Set to autostart:

Code: Select all

compton --backend glx --paint-on-overlay --vsync opengl-swc
This removes all screen tearing in video and scrolling.

Would you consider applying this in the future?

Thank you very much.

PS: I use a Mobility Radeon HD3650 with open source drivers
Hi!

Thank you for your solution, it's worked for me on MX17.
I edited the compton.conf file with this paramertes, and now everything is fine, there isn't screen tearing!

Thank you again!

Re: Remove screen tearing using Compton

Posted: Sat Jan 27, 2018 10:08 am
by Accron
Just registered to say that the solution suggested by OP (DaGama) worked for me as well on MX17, on two different computers:
- Intel i3 4030U, Intel HD Graphics 4400, open source drivers
- AMD C60, Radeon HD 6290, open source drivers

I also added the command to autostart, as OP did, and it has worked perfectly.

Thank you for the best distro I have used since I started with Linux 10 years ago!

Re: Remove screen tearing using Compton

Posted: Thu Feb 01, 2018 9:20 am
by stroudmw
Thanks so much for posting this! It worked for me too! :number1: