Girando uma tela com xinerama em uma configuração multihead

1

Eu tenho uma configuração de cabeça dupla: uma tela "principal" em 1920X1080 e uma tela "secundária" à direita dela, girada a 90 graus no sentido anti-horário. Até sexta-feira (26.10.2012), tudo estava funcionando bem, no entanto, naquele dia uma atualização fez com que as configurações de rotação no xorg.conf fossem ignoradas.

Especificamente, eu usei o atributo rotation (como em esta questão ). Além disso, como o Xinerama está ativado, não tenho acesso ao xrandr e às configurações de GUI correspondentes (devido a esse bug , eu acho).

O que devo mudar no meu xorg.conf para que a segunda tela seja girada novamente?

Aqui está meu xorg.conf atual (a terceira tela é um monitor embutido no laptop, desabilitado porque minha placa de vídeo pode suportar apenas 2 saídas). Eu não removi nenhum comentário para fornecer um possível rastreamento forense.

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 304.37  (buildd@allspice)  Sun Sep  9 05:59:26 UTC 2012

# commented out by update-manager, HAL is now used and auto-detects devices
# Keyboard settings are now read from /etc/default/console-setup
#Section "InputDevice"
#
#    # generated from default
#    Identifier     "Mouse0"
#    Driver         "mouse"
#    Option         "Protocol" "auto"
#    Option         "Device" "/dev/psaux"
#    Option         "Emulate3Buttons" "no"
#    Option         "ZAxisMapping" "4 5"
#EndSection
# commented out by update-manager, HAL is now used and auto-detects devices
# Keyboard settings are now read from /etc/default/console-setup
#Section "InputDevice"
#
#    # generated from default
#    Identifier     "Keyboard0"
#    Driver         "kbd"
#EndSection

Section "ServerLayout"

# commented out by update-manager, HAL is now used and auto-detects devices
# Keyboard settings are now read from /etc/default/console-setup
#    InputDevice    "Keyboard0" "CoreKeyboard"
# commented out by update-manager, HAL is now used and auto-detects devices
# Keyboard settings are now read from /etc/default/console-setup
#    InputDevice    "Mouse0" "CorePointer"
# Removed Option "Xinerama" "0"
# Removed Option "Xinerama" "true"
# Removed Option "Xinerama" "0"
# Removed Option "Xinerama" "1"
# Removed Option "Xinerama" "0"
# Removed Option "Xinerama" "1"
# Removed Option "Xinerama" "0"
    Identifier     "Layout0"
    Screen      0  "Screen0" 1920 0
    Screen      1  "Screen1" LeftOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "1"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
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 "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor2"
    VendorName     "Unknown"
    ModelName      "Samsung SMBX2235"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Samsung SMBX2235"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 330M"
    Option         "RandRRotation" "on"
    BusID          "PCI:2:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device2"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 330M"
    Option         "RandRRotation" "on"
    BusID          "PCI:2:0:0"
    Screen          2
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 330M"
    Option         "RandRRotation" "on"
    BusID          "PCI:2:0:0"
    Screen          1
EndSection

Section "Screen"

# Removed Option "TwinView" "1"
# Removed Option "metamodes" "DFP-0: 1366x768_60 +277+1080, DFP-1: 1920x1080 +0+0; DFP-0: 1024x768 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 1024x768i +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 960x540 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 840x525 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 832x624 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 800x600 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 800x600_75 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 800x600_72 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 800x600_60 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 800x600_56 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 800x512 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 720x450 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 720x400 +0+1080, DFP-1: nvidia-auto-select +0+0; DFP-0: 700x525 +0+1080, DFP-1: nvidia-auto-select +0+0"
# Removed Option "TwinView" "0"
# Removed Option "TwinViewXineramaInfoOrder" "CRT-0"
# Removed Option "metamodes" "CRT: 1440x900 +0+0"
# Removed Option "TwinView" "1"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +277+1080, DFP-1: 1920x1080 +0+0; DFP-1: 1024x768i +0+0; DFP-1: 960x540 +0+0; DFP-1: 840x525 +0+0; DFP-1: 832x624 +0+0; DFP-1: 800x600 +0+0; DFP-1: 800x600_75 +0+0; DFP-1: 800x600_72 +0+0; DFP-1: 800x600_60 +0+0; DFP-1: 800x600_56 +0+0; DFP-1: 800x512 +0+0; DFP-1: 720x450 +0+0; DFP-1: 720x400 +0+0; DFP-1: 700x525 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinViewXineramaInfoOrder" "DFP-1, CRT-0"
    Option         "TwinView" "0"
    Option         "rotate" "cw"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT: 1680x1050 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-1: 1920x1080 +0+0"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Monitor2"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "DFP-1, CRT-0"
    Option         "metamodes" "DFP-1: 1920x1080 +0+0; DFP-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "CRT: 1440x900 +0+0"
# Removed Option "TwinViewXineramaInfoOrder" "CRT-0"
# Removed Option "metamodes" "DFP-0: 1366x768_60 +0+0; DFP-0: 1024x768 +0+0; DFP-0: 1024x768i +0+0; DFP-0: 960x540 +0+0; DFP-0: 840x525 +0+0; DFP-0: 832x624 +0+0; DFP-0: 800x600 +0+0; DFP-0: 800x600_75 +0+0; DFP-0: 800x600_72 +0+0; DFP-0: 800x600_60 +0+0; DFP-0: 800x600_56 +0+0; DFP-0: 800x512 +0+0; DFP-0: 720x450 +0+0; DFP-0: 720x400 +0+0; DFP-0: 700x525 +0+0"
# Removed Option "metamodes" "DFP-1: 1920x1080 +0+0; DFP-1: 1024x768i +0+0; DFP-1: 960x540 +0+0; DFP-1: 840x525 +0+0; DFP-1: 832x624 +0+0; DFP-1: 800x600 +0+0; DFP-1: 800x600_75 +0+0; DFP-1: 800x600_72 +0+0; DFP-1: 800x600_60 +0+0; DFP-1: 800x600_56 +0+0; DFP-1: 800x512 +0+0; DFP-1: 720x450 +0+0; DFP-1: 720x400 +0+0; DFP-1: 700x525 +0+0"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "DFP-1, CRT-0"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "DFP-1: 1920x1080 +0+0; DFP-1: 800x600 +0+0; DFP-1: 800x600_75 +0+0; DFP-1: 800x600_72 +0+0; DFP-1: 800x600_60 +0+0; DFP-1: 800x600_56 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection
    
por mikołak 28.10.2012 / 16:46

2 respostas

1

Bem, no final, a resposta foi estupidamente simples.

cp /etc/X11/xorg.conf ~/xorg.backup
sudo rm /etc/X11/xorg.conf
sudo shutdown -r now

Depois disso, posso alterar o layout da tela normalmente.

    
por mikołak 11.12.2012 / 20:54
0

Existem dois drivers nvidia. Um pela comunidade e um pela própria nvidia. Sugiro que você tente os dois.

Eu acho que o drive alimentado pela comunidade é chamado de 'nv' e o outro é 'nvidia' (ou vice-versa). Eu fiz o mesmo no fedora e em algumas placas gráficas o driver da comunidade costumava funcionar melhor e na placa de última geração o driver de suporte da empresa costumava funcionar bem.

Eu já fiz isso no Fedora antes. (eu não validei isso no Ubuntu;))

    
por gnuyoga 05.11.2012 / 18:37