Remove screen tearing using Compton

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
DaGama
Posts: 1
Joined: Sun Mar 19, 2017 5:52 am

Remove screen tearing using Compton

#1 Post 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

Zoleeka88
Posts: 7
Joined: Tue Feb 21, 2017 7:47 pm

Re: Remove screen tearing using Compton

#2 Post by Zoleeka88 »

Hi everyone! It worked like a charm for me too! No screen tearing at all :)

User avatar
colin_b
Posts: 452
Joined: Sun Mar 19, 2017 7:21 pm

Re: Remove screen tearing using Compton

#3 Post 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.

User avatar
Jerry3904
Administrator
Posts: 21940
Joined: Wed Jul 19, 2006 6:13 am

Re: Remove screen tearing using Compton

#4 Post 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.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
colin_b
Posts: 452
Joined: Sun Mar 19, 2017 7:21 pm

Re: Remove screen tearing using Compton

#5 Post 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)

User avatar
dolphin_oracle
Developer
Posts: 20010
Joined: Sun Dec 16, 2007 1:17 pm

Re: Remove screen tearing using Compton

#6 Post 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.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Kestrel
Posts: 23
Joined: Sat Sep 23, 2017 8:52 pm

Re: Remove screen tearing using Compton

#7 Post 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.
Dell Inspiron 530 Desktop
8gb DDR2 RAM @ 800mhz
Intel® Core™2 Duo Processor E8600 3.33 GHz
MX-21.3

Clidix
Posts: 12
Joined: Sun Jan 07, 2018 3:09 pm

Re: Remove screen tearing using Compton

#8 Post 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!

Accron
Posts: 1
Joined: Sat Jan 27, 2018 9:50 am

Re: Remove screen tearing using Compton

#9 Post 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!

User avatar
stroudmw
Posts: 18
Joined: Fri Jun 23, 2017 2:13 am

Re: Remove screen tearing using Compton

#10 Post by stroudmw »

Thanks so much for posting this! It worked for me too! :number1:

Post Reply

Return to “Bugs and Non-Package Requests Forum”