You are not logged in.

#1 2010-06-07 18:45:24

rb
Member
From: Argentina
Registered: 2010-05-07
Posts: 143

Xmonad / dwm with xcompmgr extremely slow

Hello. I was wondering if anyone can give me a little feedback about this matter. I'm running Xmonad and dwm (still trying to configuring Xmonad to my tastes, so I keep them both) with xcompmgr enabled (currently with -n flag) and everything seems to be quite slow. Despite my computer is a bit old, I think it should be running a bit smoother.

Everything works with cli apps (mc, irssi, rtorrent, vim, etc), until I try to resize the windows (being cli or GUI apps) or when I switch to GUI app. The main problem (I think) is when I switch the tag/workspace where I keep my Opera browser. I takes about a second (literally) to switch to and from it (In the other hand, Geany behaves quite well when it comes to switch and resize). Its quite annoying to be honest.

What bother me the most, is that my laptop with a horrible intel video card do everything so smooth hmm

My xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder75)  Fri Mar 12 01:42:27 PST 2010

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 "Module"
    Load "dbe"
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "glx"
    #Load "dri"        #should be removed/commented out
    #Load  "GLcore"    #should be removed/commented out
EndSection

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

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option           "AccelMethod" "EXA"
EndSection

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

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

My .Xdefaults

! ----------------------------------------------------------------------------
! file:     ~/.Xdefaults
! ----------------------------------------------------------------------------

! -- URxvt --
URxvt.buffered:        true
URxvt.background:    black
URxvt.foreground:    white
URxvt*depth:        32
urxvt*background:    rgba:0000/0000/0000/0000
URxvt*scrollBar:    false
URxvt*border:        false
URxvt*borderless:    true

! -- URxvt Fonts -- !
URxvt*font:         -*-terminus-*-*-*-*-12-*-*-*-*-*-*-u

! -- URxvt URL launcher -- !
URxvt.perl-ext-common:  default,matcher
URxvt.urlLauncher:      /usr/bin/opera
URxvt.matcher.button:   1 

!-- Xft settings -- 
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hinstyle:   hintfull
!Xft.hinstyle:   hintslight
Xft.lcdfilter:  lcddefault

! Color scheme
*background: #000000
*foreground: #ffffff
! Black
*color0 : #050505
*color8 : #777777
! Red
*color1 : #b04020
*color9 : #dd4010
! Green
*color2 : #afd700
*color10: #daff30
! Yellow
*color3 : #eab93d
*color11: #ffc123
! Blue
*color4 : #204a87
*color12: #3465a4
! Magenta
*color5 : #d6156c
*color13: #fe4365
! Cyan
*color6 : #89b6e2
*color14: #46a4ff
! White
*color7 : #cccccc
*color15: #ffffff

My .xinitrc:

#!/bin/sh

#userresources=$HOME/.Xresources
#usermodmap=$HOME/.Xmodmap
#sysresources=/etc/X11/xinit/.Xresources
#sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps
setxkbmap latam
numlockx &

# feh wallpaper
sh ~/.fehbg &

# add the path to terminus font
xset fp+ /usr/share/fonts/local
xset fp rehash

#   composite
xcompmgr -n &

# start terminal emulation daemon
/usr/bin/urxvtd -q -o -f &

# dzen2 & conky
(sleep 2s && conky | dzen2 -x '1200' -e '' -fg '#ff9900' -bg '#121212' -w '480' -h '14' -ta r -fn '-*-fixed-medium-r-*-*-12-*-*-*-*-*-*-*' -p ) &

# set the cursor
xsetroot -cursor_name left_ptr

# start Xmonad
exec xmonad

# start dwm
#exec dwm

My computer:

Sempron 2800+ @1600ghz
1GB DDR1 @400mhz
nVidia 6100 onboard (currently 64mb of shared memory, tried with up to 256 and the same outcome)
Dell 2209wa 22" @1680x1050@60hz·

I read the xcompmgr, nvidia, xorg, composite wiki entries, and everything seems to be fine. I tried to start xcompmgr with -a, -c and without any flags. Always the same result.

It's obviously a composite issue (if I don't start xcompmgr I don't have any problem). So I was wondering if this behavior is expected for a computer like mine, or if I have something work configured. Is there a way to disable compositing for certain applications (like Opera)?

Thanks for any advice and sorry for the wall of text.


Sorry for my English. Feel free to point out my errors.

Offline

Board footer

Powered by FluxBB