You are not logged in.

#1 2009-11-02 00:13:32

panecillo
Member
From: Spain
Registered: 2007-07-21
Posts: 44

nouveau and xrandr dual head: very slow

Hello,

I have switched from nvidia drivers to nouveau because of some random reboots after upgrading to Xorg 1.7. I have an nVidia 7300LE which has two video outputs (VGA and DVI). I have two monitors connected to them.

Until now I have been using TwinView to configure my dual-head with success. But now that I have switched to nouveau I can't use TwinView anymore, so I read some documentation on xrandr dual-head configuration and configured my xorg.conf.

Now I have again a dual monitor configuration working, but my desktop seems really slow. I use xcompmgr to achieve some transparency, but when I move a window the movement has a lag of some seconds, and I can't play a full screen video without having lots of frames skipped. If I kill xcompmgr, everything seems to work better. It didn't happen before the change.

Do I have to change anything in my configuration to make my desktop have a normal speed even using xcompmgr?

Section "ServerLayout"
    Identifier     "Dos monitores"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "PS/2 Mouse" "CorePointer"
EndSection

Section "Files"
    #RgbPath         "/usr/share/X11/rgb"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/100dpi"
EndSection

Section "Module"
    Load           "ddc"  # ddc probing of monitor
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
    Load           "bitmap" # bitmap-fonts
    #Load           "freetype"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "RandR" "on"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "es"
EndSection

Section "InputDevice"
    Identifier     "PS/2 Mouse"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Device" "/dev/psaux"
    Option         "SendCoreEvents" "true"
    Option        "Emulate3Buttons" "false"
    Option         "Resolution" "256"
EndSection

Section "InputDevice"
    Identifier     "USB Mouse"
    Driver         "mouse"
    Option         "Device" "/dev/input/mice"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Buttons" "5"
EndSection


Section "Monitor"
    Identifier     "LG17"
    VendorName     "LG"
    ModelName      "LG L1717S"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option "Position" "1920 176"
    Option "PreferredMode" "1280x1024"
EndSection

Section "Monitor"
    Identifier     "SAMSUNG24"
    VendorName     "Samsung"
    ModelName      "Samsung 245B+"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    #Option "LeftOf" "LG17"
    Option "Position" "0 0"
    Option "PreferredMode" "1920x1200"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nouveau"
    Option       "monitor-VGA-0" "LG17"
    Option       "monitor-DVI-I-0" "SAMSUNG24"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "LG17"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    Virtual     3200 1200
    EndSubSection
EndSection

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

Thank you. Regards.

Offline

#2 2009-11-02 05:31:39

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: nouveau and xrandr dual head: very slow

Is KMS enabled?  If not, nouveau-dri won't work properly, and you'll be falling back to software rendering for some things instead of nouveau's DRI.  Do glxinfo | grep OpenGL to see if you're using the software rasterizer.

Offline

#3 2009-11-02 05:59:47

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: nouveau and xrandr dual head: very slow

Please check your Xorg.0.log. nouveau-dri isn't needed for accaptable 2D speed. I can move windows around my 2 screens fast as expected.

Remove that Extension section. It's not needed. And also remove all that modules and fonts you load. The only stuff you need to config is the DualHead settings. See my example config in our wiki.

Offline

#4 2009-11-02 06:12:24

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: nouveau and xrandr dual head: very slow

AndyRTR wrote:

Please check your Xorg.0.log. nouveau-dri isn't needed for accaptable 2D speed. I can move windows around my 2 screens fast as expected.

Remove that Extension section. It's not needed. And also remove all that modules and fonts you load. The only stuff you need to config is the DualHead settings. See my example config in our wiki.

With KWin compositing+transparency, I've noticed a huge speedup when DRI is working compared to when it isn't.  Not sure if that's the same for xcompmgr.

Anyway yeah, /var/log/Xorg.0.log is likely to hold the answer.

Offline

#5 2009-11-02 09:24:39

panecillo
Member
From: Spain
Registered: 2007-07-21
Posts: 44

Re: nouveau and xrandr dual head: very slow

Hello,

tavianator wrote:

Is KMS enabled?  If not, nouveau-dri won't work properly, and you'll be falling back to software rendering for some things instead of nouveau's DRI.  Do glxinfo | grep OpenGL to see if you're using the software rasterizer.

Yes, I have KMS enabled (within modprobe.conf), I get a framebuffer-like console.

And about glxinfo and OpenGL:

$ glxinfo |grep OpenGL
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.6
OpenGL shading language version string: 1.20
OpenGL extensions:

Seems that I'm using software rasterizer, you're right. How could I correct that?

AndyRTR wrote:

Please check your Xorg.0.log. nouveau-dri isn't needed for accaptable 2D speed. I can move windows around my 2 screens fast as expected.

Remove that Extension section. It's not needed. And also remove all that modules and fonts you load. The only stuff you need to config is the DualHead settings. See my example config in our wiki.

I have cleaned my xorg.conf by looking at your example config on Nouveau wiki page, but my desktop still behaves slow.

If nouveau-dri isn't needed, how could I disable nouveau-dri? I didn't specifically enabled it in xorg.conf, and it was installed as a dependency.

I have uploaded my Xorg.0.log here.

Thank you very much for your replies

Offline

#6 2009-11-02 09:52:38

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: nouveau and xrandr dual head: very slow

The Xorg logfile is looking fine to me. You can try the new nouveau packages from testing. I've made nouveau-dri and optional dependency now. So you can try with and without the nouveau-dri pkg. If it all doesn't help ask upstream devs in #nouveau irc channel.

you can try to find out what syscalls are slow with sysprof wink

Offline

#7 2009-11-02 10:34:12

panecillo
Member
From: Spain
Registered: 2007-07-21
Posts: 44

Re: nouveau and xrandr dual head: very slow

I have just tried nouveau-drm and xf86-video-nouveau from testing. The speed is the same when nouveau-dri package is installed and when it's uninstalled, so that doesn't seem to be the problem.

I'll try to ask in #nouveau.

Thank you again.

Offline

Board footer

Powered by FluxBB