SublimeText 使用 Unity/nVidia/Xinerama 变成黑洞

SublimeText 使用 Unity/nVidia/Xinerama 变成黑洞

我最近升级到了 14.04,经过一番努力,我的 4 显示器设置终于“正常工作”了。但是,一些应用程序(我注意到 gedit 和 SublimeText)在失去焦点时整个窗口都会变黑。一旦变黑,我就无法让它再次显示,除非重新启动应用程序。需要说明的是,这会使应用程序无法使用。

我的设置是在 Quadro NVS-450 上使用 nVidia 专有驱动程序版本 331.38。下面是我的 xorg.conf 文件,后面是 的输出/usr/lib/nux/unity_support_test -p。您知道这里发生了什么吗?

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 331.20  (buildd@roseapple)  Mon Feb  3 15:07:22 UTC 2014

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" Below "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "1"
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"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL E2210H"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL E2210H"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 450"
    BusID          "PCI:4:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 450"
    BusID          "PCI:3:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "GPU-0.DP-0: nvidia-auto-select +0+0, GPU-0.DP-1: nvidia-auto-select +1920+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "GPU-1.DP-0: nvidia-auto-select +0+0, GPU-1.DP-1: nvidia-auto-select +1920+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

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

输出/usr/lib/nux/unity_support_test -p

OpenGL vendor string:   NVIDIA Corporation
OpenGL renderer string: Quadro NVS 450/PCIe/SSE2
OpenGL version string:  3.3.0 NVIDIA 331.38

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       yes

答案1

编辑:看起来是内存问题,xinerama 让我的两张卡在三台显示​​器上耗尽内存。有些人设法通过在 BIOS 上增加共享内存大小来解决这个问题,不幸的是我的卡不是集成的,我没有这个选项。

同样的问题,Firefox 和 Thunderbird(以及其他应用程序)都有这个问题,焦点丢失 = 黑窗。

两台 GeForce 8400 GS 配备三台显示器。

问题在于驱动程序的 xinerama,因为您必须在 xorg.conf 文件中手动启用 Composite 才能使 unity 正常工作。

回到 nouveau 驱动程序可以解决这个问题,但你会遇到其他问题,例如持续冻结。

相关内容