Openbox / Screen tearing / Compton

If none of the more specific forums is the right place to ask

Openbox / Screen tearing / Compton

Postby pawRoot » 2017-02-20 20:32

Hi

I really want to get Openbox working on my machine properly, but the problem is screen tearing.
I have tried both Compton and xcompmgr, and it tears on both, I tried to run Compton with those settings:

Code: Select all
compton -b --backend xrender --vsync opengl
(compositing is working but tearing still there)

Code: Select all
compton -b --backend glx --vsync opengl-swc
(fixes tearing, but my desktop is laggy and slow, also if i move some windows CPU goes from 1% to even 30!)

Is there anything else i can try?
Last edited by pawRoot on 2017-02-23 02:45, edited 2 times in total.
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 108
Joined: 2016-12-28 18:26
Location: Poland

Re: Openbox / Screen tearing / Compton

Postby wizard10000 » 2017-02-20 20:47

I've not had good luck with compton and the closed-source Nvidia driver. I find I get better overall performance using nouveau.

My machine is a 4th generation i7 laptop, video is Nvidia Quadro K1100. compton with nouveau works just fine, compton with Nvidia's binary blobs just irritates me.
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1027
Joined: 2011-05-09 20:02
Location: midwestern us

Re: Openbox / Screen tearing / Compton

Postby stevepusser » 2017-02-20 20:53

Could be some magical mystical setting option for the Nvidia driver. This one seems to have fixed the same kind of issue for a user of MX Linux when nothing else would: http://www.thelinuxrain.com/articles/go ... a-try-this

MX Linux thread: https://forum.mxlinux.org/viewtopic.php ... 5&p=407442
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Inkscape 0.92.1, Pale Moon 27.1.2, Liquorix kernel 4.9-14, mpv 0.24, Kodi 17.0, Shotwell 24.5, Mesa 13.0.5
User avatar
stevepusser
 
Posts: 7935
Joined: 2009-10-06 05:53

Re: Openbox / Screen tearing / Compton

Postby pawRoot » 2017-02-20 20:56

And how do i install Nouveau? in past after installing Debian i was just booting my OS and had the nouveau preinstalled, but nowadays if i install Debian i have to use "nouveau.modeset=0" at boot, and then install propiertary drivers following Debian wiki, otherwise i just get "NO SIGNAL" on my display.
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 108
Joined: 2016-12-28 18:26
Location: Poland

Re: Openbox / Screen tearing / Compton

Postby pawRoot » 2017-02-20 21:03

stevepusser wrote:Could be some magical mystical setting option for the Nvidia driver. This one seems to have fixed the same kind of issue for a user of MX Linux when nothing else would: http://www.thelinuxrain.com/articles/go ... a-try-this

MX Linux thread: https://forum.mxlinux.org/viewtopic.php ... 5&p=407442


Thanks alot, it seems to fix the problem, i remember reading this guide in past and it didn't work, so kinda weird but it works now.
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 108
Joined: 2016-12-28 18:26
Location: Poland

Re: Openbox / Screen tearing / Compton

Postby stevepusser » 2017-02-20 21:26

Nice! If it continues to work, please add [SOLVED] to the title of your first post by editing it, and also add something about it being for the Nvidia driver. That's to help others with the same problem find it.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Inkscape 0.92.1, Pale Moon 27.1.2, Liquorix kernel 4.9-14, mpv 0.24, Kodi 17.0, Shotwell 24.5, Mesa 13.0.5
User avatar
stevepusser
 
Posts: 7935
Joined: 2009-10-06 05:53

Re: [SOLVED] Openbox / Screen tearing / Compton

Postby pawRoot » 2017-02-22 22:05

The problem i have is that there is no xorg.conf file on my HDD, so what should i do? Is there other way to execute the command at auto start?
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 108
Joined: 2016-12-28 18:26
Location: Poland

Re: [SOLVED] Openbox / Screen tearing / Compton

Postby wizard10000 » 2017-02-23 00:23

pawRoot wrote:The problem i have is that there is no xorg.conf file on my HDD, so what should i do? Is there other way to execute the command at auto start?


Sure - put this in ~/.config/openbox/autostart -

Code: Select all
nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceCompositionPipeline = On }" &


Enjoy!
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1027
Joined: 2011-05-09 20:02
Location: midwestern us

Re: [SOLVED] Openbox / Screen tearing / Compton

Postby pawRoot » 2017-02-23 01:22

I try to fix it on XFCE4 currently, so i added it to autostart as command, but it's not getting executed :/
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 108
Joined: 2016-12-28 18:26
Location: Poland

Re: Openbox / Screen tearing / Compton

Postby pawRoot » 2017-02-23 02:46

Second problem is if i run this command while having second display connected, im loosing signal :twisted:
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 108
Joined: 2016-12-28 18:26
Location: Poland

Re: [SOLVED] Openbox / Screen tearing / Compton

Postby wizard10000 » 2017-02-23 10:24

pawRoot wrote:I try to fix it on XFCE4 currently, so i added it to autostart as command, but it's not getting executed :/


You said openbox :)

To get it to work in XFCE you'll need to create a .desktop file and stick it in ~/.config/autostart

Good luck -
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1027
Joined: 2011-05-09 20:02
Location: midwestern us

Re: Openbox / Screen tearing / Compton

Postby pawRoot » 2017-02-23 17:51

I guess im tied to Gnome3, looks like there isn't any other tear free DE in Linux world :(
And the solution above works but then i can't use 2 displays...

Thx everyone anyway im done with this :D
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 108
Joined: 2016-12-28 18:26
Location: Poland

Re: Openbox / Screen tearing / Compton

Postby None1975 » 2017-02-24 14:07

pawRoot wrote:I guess im tied to Gnome3, looks like there isn't any other tear free DE in Linux world :(
And the solution above works but then i can't use 2 displays...Thx everyone anyway im done with this :D

Hello. I use i3wm+compton. With open-source drivers for Nvidia card, i don't have any tearing.
Image
User avatar
None1975
 
Posts: 51
Joined: 2015-11-29 18:23

Re: Openbox / Screen tearing / Compton

Postby pawRoot » 2017-02-24 17:31

None1975 wrote:
pawRoot wrote:I guess im tied to Gnome3, looks like there isn't any other tear free DE in Linux world :(
And the solution above works but then i can't use 2 displays...Thx everyone anyway im done with this :D

Hello. I use i3wm+compton. With open-source drivers for Nvidia card, i don't have any tearing.


The problem is Nouveau don't work for me, and when it did the perfofmance was totally awfull, and i dont pay 300 euro for GPU to have laggy interface :roll:
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 108
Joined: 2016-12-28 18:26
Location: Poland

Re: [SOLVED] Openbox / Screen tearing / Compton

Postby Danielsan » 2017-02-24 21:29

pawRoot wrote:I try to fix it on XFCE4 currently, so i added it to autostart as command, but it's not getting executed :/


I had the same problem I resolved delaying the autostart of 1 second, something like:

Code: Select all
sh -c 'sleep 1 && nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceCompositionPipeline = On }" &'


Somewhere I read you can also add that line to your Xorg.conf or another xorg file "ad hoc" but it never worked for me so I returned to the autostart xfce feature.
If you can't fork then hold you in silence.
User avatar
Danielsan
 
Posts: 385
Joined: 2010-10-10 22:36

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable