You are not logged in.

#1 2009-07-26 22:16:17

beat
Member
Registered: 2009-05-24
Posts: 49

Openbox - tearing

I'm using Openbox with Xcompmgr and I get some tearing (e.g. when moving windows).
I have a nvidia card and I already tweaked xorg.conf as much as I could and I still get tearing. I also enabled vsync on nvidia-settings which is working since when I run glxgears I don't get tearing on that window.

Any ideia on how to fix this?

Offline

#2 2009-07-26 22:41:28

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Re: Openbox - tearing

Try using xcompmgr-dana from the AUR.


Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.

Offline

#3 2009-07-26 22:47:47

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

Followed your advice and it made no difference. I also get this tearing when using openbox without xcompmgr.

Offline

#4 2009-07-27 01:42:27

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Openbox - tearing

beat wrote:

Followed your advice and it made no difference. I also get this tearing when using openbox without xcompmgr.

Post your xorg.conf in pastebin and put the link here. Also how are you starting xcompmgr? Try to start it in xinitrc before openbox.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#5 2009-07-27 11:50:22

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

Xorg.conf - http://pastebin.com/m37ce24e7

I'm using HAL so my config is pretty minimal.

The HorizSync and VertRefresh were added by me in order to match my monitor, I also tried adding modelines with no success. The options in the Device section were added just to try it out I also tried without adding them, same things.

I'm starting xcompmgr in the autostart.sh as follows:

# D-bus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval `dbus-launch --sh-syntax --exit-with-session`
fi

#xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
nvidia-settings --load-config-only &
xcompmgr -cCfF -t-5 -l-5 -r4.2 -o.55 -D6 &
thunar --daemon &
nitrogen --restore &
pypanel &
(sleep 2 && conky) &
(sleep 2 && checkgmail) &

Also I find conky only starts when I first start the computer, if I logout and then restart X conky won't start and openbox will freeze.

Last edited by beat (2009-07-27 12:00:24)

Offline

#6 2009-07-27 16:06:43

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Openbox - tearing

You should put the dbus part in xinitrc rather than in autostart. Also, try as I said and see if it makes any difference

xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
dbus-launch exec openbox&

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#7 2009-07-27 20:14:46

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

Ok just tried that and it made no difference :\

Offline

#8 2009-08-20 14:01:14

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

I still have this problem and it's a bit irritating. I don't know if this a normal behavior for 2D desktops since I've been using GNOME with Compiz up until now, but shouldn't xcompmgr and vsync fix this?
I really like Openbox but this tearing when moving windows is a bit frustrating.

Last edited by beat (2009-08-20 14:02:28)

Offline

#9 2009-08-20 18:03:40

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Openbox - tearing

So where does the problem happen and where doesn't it?

With just Openbox, is there tearing? With just GNOME? With GNOME+Compiz?

Offline

#10 2009-08-20 19:23:21

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

With just Openbox there is tearing.
With just GNOME there is tearing.
With GNOME+Compiz there is no tearing when I set Compiz to sync to vblank.

I guess it has to do with the fact that Compiz is OpenGL accelerated and in nvidia-settings I have vsync enabled for OpenGL. I hope there is a way to fix this in openbox.

Offline

#11 2009-08-20 19:30:01

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: Openbox - tearing

Have you tried without the TrippleBuffer, BackingStore and DamageEvents in your xorg.conf. Those things are not defaults for a reason...
Especially BackingStore seems to be fickle with the current drivers


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#12 2009-08-20 19:58:36

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

Yep I tried without all of that and it was still the same. I only tried those settings in the first place to see if it would fix this problem.

Offline

#13 2009-08-21 01:47:36

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

I am seriously going mad on this thing! I just tried a different monitor I had laying around and still got the same problem.
My monitor is a Samsung 226BW and it's connected through DVI, the graphics card is a NVIDIA 9600GT.

I made a video to try and show the tearing but since the video is recorded at 25fps it does not capture the tearing.

Seriously any help would be appreciated.

Offline

#14 2009-08-21 02:04:27

AdrenalineJunky
Member
Registered: 2009-05-03
Posts: 149

Re: Openbox - tearing

did a seach and it appears to be an nvidia driver bug that affects some 8xxx/9xxx cards.

best suggestion would be tryin installing a different driver version, if you are using beta try stable, stable try beta, switch to the last release, etc

Offline

#15 2009-08-21 02:10:18

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

I tried the opensource nv driver and the same thing happened. I'll try the beta version of the official nvidia driver.

Offline

#16 2009-08-21 02:26:30

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

Ok just tried nvidia-beta from the AUR and the problem still persists.
Also tried the nvidia-173xx branch and guess what... same thing sad

Last edited by beat (2009-08-21 02:35:36)

Offline

#17 2009-08-21 11:27:35

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

After a good night of sleep I decided to try the nouveau driver and the problem persisted.
I guess I should just go back to bed.

Offline

#18 2009-08-21 12:06:04

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

Just tried with a different NVIDIA card I had on another computer, NVIDIA 7600GS and the problem still happens. I guess the only thing to say is F**K YOU NVIDIA!

Is it possible that this issue might not be related to the graphics card itself? Could it have to do with the CPU?

Here's the video I recorded to try and show the tearing I get although it does not show it: http://www.youtube.com/watch?v=wdhODj9sW5U

Last edited by beat (2009-08-21 14:06:12)

Offline

#19 2009-08-21 22:47:15

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

http://en.wikipedia.org/wiki/Screen_tearing - this is what I mean by tearing.

Offline

#20 2009-08-22 14:37:33

cryticfarm
Member
Registered: 2009-07-27
Posts: 47

Re: Openbox - tearing

I am having the same problem.

Offline

#21 2009-08-22 14:47:30

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Openbox - tearing

I don't know what could solve this but try: [I have no idea if this is gonna work]
Install the new nvidia and nvidia-utils driver,make sure you have the necesary xorg files installed. Then run a

depmod -a && nvidia-xconfig

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#22 2009-08-22 17:21:50

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

That didn't work (as expected).
I just finished installing Arch on another machine and the same things happens. I guess this is the normal behaviour for a 2D desktop it's just that most people don't notice it.
If I'm using a light (white) background I'm not able to notice the tearing although on a darker background it is easily noticeable (and annoying).

Offline

#23 2009-08-22 18:22:49

fogobogo
Member
Registered: 2008-08-24
Posts: 83

Re: Openbox - tearing

OT: I have no fix for you but your endurance on this topic is impressive

Offline

#24 2009-08-22 20:42:53

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Openbox - tearing

I am very persistent! tongue

Offline

#25 2009-08-22 21:12:34

fogobogo
Member
Registered: 2008-08-24
Posts: 83

Re: Openbox - tearing

Offline

Board footer

Powered by FluxBB