LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 939|回复: 3

qtdemo主窗口一片空白, nVidia GeForce4 MX - nForce GPU], 96xx driver

[复制链接]
发表于 2008-9-28 14:57:02 | 显示全部楼层 |阅读模式
$ glxinfo |grep rendering
direct rendering: Yes

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

Section "Files"
    RgbPath         "/usr/X11R6/lib/X11/rgb"
EndSection

Section "Module"
    Load           "bitmap"
    Load           "ddc"
    Load           "dbe"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

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

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbRules"   "xorg"
    Option         "XkbModel"   "pc104"
    Option         "XkbLayout"  "us"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "STD F158"
    HorizSync       30.0 - 60.0
    VertRefresh     55.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce4 MX Integrated GPU"
#    Option        "UseFBDev" "true"
    Option         "NoLogo" "true"
    Option         "RenderAccel" "true"
    Option         "AddARGBGLXVisuals" "true"
#    Option         "DamageEvents" "true"
#    Option        "DMPS" "true"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "DPI" "96x96"
    Option         "metamodes" "CRT-0: nvidia-auto-select +0+0; CRT-0: 1024x768_75 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
   Option "Composite" "true"
EndSection


如果把用户从video组移出, 就会这样:
$ qtdemo
NVIDIA: could not open the device file /dev/nvidiactl (权限不够).
NVIDIA: Direct rendering failed; attempting indirect rendering.
NVIDIA: could not open the device file /dev/nvidiactl (权限不够).
NVIDIA: Direct rendering failed; attempting indirect rendering.
NVIDIA: could not open the device file /dev/nvidiactl (权限不够).
NVIDIA: Direct rendering failed; attempting indirect rendering.
但是就可以显示了

请问这是什么问题呢? 为什么direct rendering就会空白了?
 楼主| 发表于 2008-9-29 17:50:17 | 显示全部楼层
问题解决了

是xorg.conf里少了这两句

    Option         "DisableGLXRootClipping" "true"
    Option         "XAANoOffscreenPixmaps" "true"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-9-29 20:06:07 | 显示全部楼层
er, 好像不对, 只是在用compiz的时候上面的方法有效.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-8 17:38:46 | 显示全部楼层
upupupup
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表