Author Topic: Using Compton in Xfce for a tear-free experience  (Read 17186 times)

0 Members and 2 Guests are viewing this topic.

Offline Raflman

  • Neuling
  • *
  • Posts: 4
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: GT740M
  • GPU driver: Opensource
  • Skill: Novice
Re: Using Compton in Xfce for a tear-free experience
« Reply #15 on: 05. August 2015, 01:39:14 »
Thank you very much for your effort :) .  Compton is working very well but, I dont know if its just me , it has some delay when dragging windows around.For that, I changed to compiz.

Offline Adr1an

  • Vollwertiges Mitglied
  • ***
  • Posts: 221
  • Kudos to the Devs
  • Branch: Stable
  • Desktop: Gnome-LightDM
  • GPU Card: AMD/ATI
  • GPU driver: Free
  • Kernel: 344 LTS
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #16 on: 08. September 2015, 22:33:25 »
Although I've had my fair share of tearing/v-sync/vblank, please pardon my ignorance, but is this an XFCE-only thing?
Win7 & Manjaro Gnome dual boot; 2011 Dell Studio 15; Intel Core i5 M450 @ 2.40GHz × 4; 4GB RAM; AMD ATI Mobility Radeon HD 5400 series

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #17 on: 08. September 2015, 22:47:50 »
is this an XFCE-only thing?
Yes. This discussion here concerns replacing the native xfce-compositor :)
There might be other possibilies for you if you are not running xfce to address screen-tearing, like adding intel kernel options for example...
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline oleerik

  • Vollwertiges Mitglied
  • ***
  • Posts: 152
  • Just a little duck
  • Branch: stable
  • Desktop: Fluxbox
  • GPU Card: Nvidia GTX780ti
  • GPU driver: non-free
  • Kernel: linux41-x64
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #18 on: 08. September 2015, 22:50:44 »
Although I've had my fair share of tearing/v-sync/vblank, please pardon my ignorance, but is this an XFCE-only thing?

Compton itself works really well on everything I've tried it with. Openbox, fluxbox, xfce, cinnamon, kde... Just disable the original compositor and use compton instead. Sadly the config is a bit of a pain, in my eyes :)

I have my own compton config file on my github repository if you are curious.
« Last Edit: 08. September 2015, 22:54:31 by oleerik »
I try to help, please don't shoot me if I'm wrong!
Oberon rocks | github
Please remember to mark your topic as solved if it is  C:-)

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #19 on: 09. September 2015, 13:31:05 »
i mostly use compton for screen tearing removal, too. but you have to try different methods until you found the method working for you - at least this is my experience.


here are more links to threads and guides helping to remove screen tearing:
https://wiki.manjaro.org/index.php?title=Various_screen_tearing_fixes
https://forum.manjaro.org/index.php?topic=4187.0
https://forum.manjaro.org/index.php?topic=7511.0
https://forum.manjaro.org/index.php?topic=10840.0
https://forum.manjaro.org/index.php?topic=28153.0
https://wiki.archlinux.org/index.php/NVIDIA#Avoid_screen_tearing_in_KDE_.28KWin.29
« Last Edit: 24. November 2015, 13:30:23 by excalibur1234 »
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline trzalica

  • Sr. Mitglied
  • ****
  • Posts: 285
  • Branch: stable
  • Desktop: Xfce
  • GPU Card: nVidia Geforce 8800 GT
  • GPU driver: Non-free
  • Kernel: Linux 4.1 x64
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #20 on: 08. November 2015, 13:18:24 »
Please guys, take a look at this topic: https://forum.manjaro.org/index.php?topic=28153.0


Offline stephan_w

  • Neuling
  • *
  • Posts: 1
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: Xfce
  • GPU Card: nvidia gt640
  • GPU driver: non-free
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #21 on: 19. November 2015, 10:49:26 »
Hi guys,

I've been using compton for quite a while now and it works perfectly.
There is just a few things I don't entirely understand:

- when do I use which backend? If I understand this correctly the actual backend should be dependent on the GPU and/or driver I am using. The guide points out that glx should be used. I run a number of system all with different GPUs ranging from Intel HD to Geforce GTX970.

- Does Compiz interfere with full screen applications such as games or videos? I remember that KDE features an option which disables window decorations and effects on full screen applications, thus saving performance, how does Compiz handle this?

I'd be very grateful if somebody could answer those questions or point me in the right direction. :-)

Offline Kallestofeles

  • Jr. Mitglied
  • **
  • Posts: 51
  • Where there's a shell, there's got to be a way.
    • YouTube
  • Branch: Unstable
  • Desktop: Xfce
  • GPU Card: nVidia GTX 970
  • GPU driver: non-free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #22 on: 23. November 2015, 23:08:17 »
Just putting it out here:
If someone is running on nvidia GPU and wishes to get tear-free Xfce desktop while still running xfwm4 with compositor-candy enabled, then add:
Code: [Select]
Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"to your "Xorg.conf" file's (depending on where the configuration is, by default it should be /etc/X11/mhwd.d/nvidia.conf) "Screen" section. This is dependent on how many monitors you have, how they are placed, etc.

In my setup I use only one monitor (TV) via HDMI and my "Screen" section looks like this:
Code: [Select]
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
    Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
EndSection

Offline torvic9

  • Sr. Mitglied
  • ****
  • Posts: 253
  • Hello world!
  • Branch: stable
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #23 on: 11. December 2015, 10:03:40 »
Just wanted to point out that the ForceFullCompositionPipeline trick is the only thing that works on newer nvidia cards running xfce.
Compton reduces tearing, but doesn't eliminate it.
Instead, as pointed out by Kallestofeles, you can use the native xfwm4 compositor with ForceFullCompositionPipeline to have a tear-free experience.
Be aware though that it reduces performance in some OpenGL apps and games.
i3: i7-5820K | 32 GB | GeForce GTX 960, nvidia | linux44-custom
KDE: i7-920 | 12 GB | GeForce GTS 450, nouveau | linux44
Gnome: Thinkpad X200s | linux41

Offline criptoriga

  • Neuling
  • *
  • Posts: 18
  • I'm new. Be nice!
  • Branch: testing
  • Desktop: Xfce
  • GPU Card: Nvidia Optimus
  • GPU driver: free
  • Kernel: latest
  • Skill: Novice
Re: Using Compton in Xfce for a tear-free experience
« Reply #24 on: 29. April 2016, 13:37:56 »
If you are using Intel HD videocard, only thing you need is just activate TearFree in xorg.
Just create file

/usr/share/X11/xorg.conf.d/50-intel.conf

Code: [Select]
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TearFree" "true"
EndSection

Don't forget to restart X server (logout will be enough)

This method worked for me, some time ago. I only want to mention that for the beginners the indication "create file in /usr/share/X11/xorg.conf.d/50-intel.conf" is not self-explanatory. You need to write in terminal this command:
sudo mousepad /etc/X11/xorg.conf.d/20-intel.conf
Or another text editor, instead (nano or leafpad).

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: Using Compton in Xfce for a tear-free experience
« Reply #25 on: 29. April 2016, 21:32:38 »
If you are using Intel HD videocard, only thing you need is just activate TearFree in xorg.
Just create file

/usr/share/X11/xorg.conf.d/50-intel.conf

Code: [Select]
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TearFree" "true"
EndSection

Don't forget to restart X server (logout will be enough)

^ a few terms and conditions to that mate. Check your existing mhwd config and
https://wiki.archlinux.org/index.php/Intel_graphics#Tear-free_video
« Last Edit: 29. April 2016, 21:42:31 by badbodh »
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !