You are not logged in.

#1 2011-05-08 06:30:48

snaz
Member
Registered: 2010-10-15
Posts: 14

Openbox tears when moving windows?

Hi all, I've just got my Openbox setup how I like it, but whenever I move a window, the window itself tears as it moves horizontally. Video seems to be alright. I've tried turning off xcompmgr to no avail.

Any ideas?

xinitrc:

exec ck-launch-session openbox-session

xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 270.41.06  (buildmeister@swio-display-x86-rhel47-08.nvidia.com)  Mon Apr 18 15:14:00 PDT 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Module"
    Load    "glx"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option "TripleBuffer" "True"
    Option           "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

autostart.sh:

# This shell script is run before Openbox launches.
# Environment variables set here are passed to the Openbox session.

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

# Make GTK apps look and behave how they were set up in the gnome config tools
if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
  /usr/libexec/gnome-settings-daemon &
elif which gnome-settings-daemon >/dev/null 2>&1; then
  gnome-settings-daemon &
# Make GTK apps look and behave how they were set up in the XFCE config tools
elif which xfce-mcs-manager >/dev/null 2>&1; then
  xfce-mcs-manager n &
fi

# Preload stuff for KDE apps
if which start_kdeinit >/dev/null 2>&1; then
  LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
fi

# Run XDG autostart things.  By default don't run anything desktop-specific
# See xdg-autostart --help more info
DESKTOP_ENV="OPENBOX"
if which /usr/lib/openbox/xdg-autostart >/dev/null 2>&1; then
  /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
fi

#xinput --set-prop 'Primax RF Nano Laptop Laser Mouse' 'Device Accel Constant Deceleration' 2.2 #decelerate usb mouse
nvidia-settings -l
xscreensaver -nosplash &
xmodmap -e keycode 135 = Super_R #maps menu key into second Super key
mpdscribble &
#nm-applet &
#wicd-gtk &
pidgin &
tint2 &
nitrogen --restore &
conky &
volwheel &
#skype &
linuxdcpp &
blueman-applet &
sleep 2 &&
#dcompmgr -s -c -t 1 -l 1 -r 3 -o .45 -C -f -D 4 &

Offline

#2 2011-05-08 10:00:19

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: Openbox tears when moving windows?

Xorg doesn't provide any vsynch feature by default, so any wm will tears.
The only way to make it stop is using a composite manager like compiz and set it to vsync,but this may lead to vsync problems in your videos instead (but at least not in fullscreenmode).
Le'ts hope things in wayland gets better.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#3 2011-05-08 15:13:19

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Openbox tears when moving windows?

Compiz won't work, since it's a separate window manager.  Check out xcompmgr or cairo-compmgr; they're more mature than dcompmgr.

Last edited by ANOKNUSA (2011-05-08 15:15:14)

Offline

#4 2011-05-08 15:42:27

snaz
Member
Registered: 2010-10-15
Posts: 14

Re: Openbox tears when moving windows?

Ok, I've tried using xcompmgr and dcompmgr, both with the same options and the same results

dcompmgr -s -c -t 1 -l 1 -r 3 -o .45 -C -f -D 4 &
xcompmgr -s -c -t 1 -l 1 -r 3 -o .45 -C -f -D 4 &

Using no options at all makes no difference.

Cairo-compmgr seems to fix the problem; however, it crashes all of X when I try to resize a terminal window, and occasionally for no apparent reason at all. Only a hard reset can get me out of it.

Last edited by snaz (2011-05-08 16:11:33)

Offline

#5 2011-05-08 16:13:10

shwick
Member
Registered: 2010-09-16
Posts: 31

Re: Openbox tears when moving windows?

I think there was some discussion about that on the forums recently. If i remember correctly it was a bug in nvidia/xserver. In any case, the same happens to me with kwin.

Offline

#6 2011-05-09 04:49:34

snaz
Member
Registered: 2010-10-15
Posts: 14

Re: Openbox tears when moving windows?

So at this point am I at the mercy of NVIDIA/Xorg for a fix?

Offline

#7 2011-05-09 17:12:47

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: Openbox tears when moving windows?

I have the same issue (though I really do not so much see it as an issue) on both of my machines running OB.  You see tearing but it quickly re-renders.  This is with ATI video on the laptop and Nvidia on the desktop.

Offline

#8 2011-05-09 18:03:32

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Openbox tears when moving windows?

Maybe try a blank xorg.conf and let evdev figure out the video options. Just something I'd try.


no place like /home
github

Offline

#9 2011-05-09 18:36:46

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: Openbox tears when moving windows?

Or delete xorg.conf all together because it is really not needed.  wink  Often times it causes more problems.  Of course back it up first so that if for some reason your problems get worse you can restore it.  wink

Last edited by ichase (2011-05-09 19:15:42)

Offline

#10 2011-05-09 21:20:47

snaz
Member
Registered: 2010-10-15
Posts: 14

Re: Openbox tears when moving windows?

Tried renaming my xorg.conf; no change.

Offline

#11 2011-05-09 21:51:04

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 227
Website

Re: Openbox tears when moving windows?

You can try vsync put this in ~/.bashrc:

export vblank_mode=1

Last edited by twilight0 (2011-05-09 21:51:22)


Proud Arch Linux user since 2007.

Offline

#12 2011-05-10 03:47:37

snaz
Member
Registered: 2010-10-15
Posts: 14

Re: Openbox tears when moving windows?

No luck... Thanks for all the help so far though

Last edited by snaz (2011-05-10 03:47:52)

Offline

#13 2011-05-10 04:18:58

Barthalion
Forum Fellow
From: Poland
Registered: 2010-02-26
Posts: 111

Re: Openbox tears when moving windows?

I also tested cairo-compmgr - no change.

Offline

#14 2011-05-11 00:52:20

sensae
Member
Registered: 2011-05-11
Posts: 1

Re: Openbox tears when moving windows?

This issue is affecting me as well.

Offline

Board footer

Powered by FluxBB