Вращение одного экрана с xinerama в многоголовочной установке

У меня есть установка с двумя головками: «основной» экран 1920X1080 и «вторичный» экран справа от него, повернутый на 90 градусов против часовой стрелки. До пятницы (26.10.2012) все работало нормально, однако в тот день обновление привело к игнорированию настроек вращения в xorg.conf.

В частности, я использовал атрибут вращения (как в этот вопрос ). Кроме того, поскольку у меня включен Xinerama, у меня нет доступа к xrandr и соответствующим настройкам графического интерфейса пользователя (из-за этой ошибки , я думаю).

Что я должен изменить в своем xorg.conf, чтобы снова повернуть второй экран?

Вот мой текущий xorg.conf (третий экран - монитор, встроенный в ноутбук, отключенный, так как моя видеокарта может поддерживать только 2 выхода). Я не удалил никаких комментариев, чтобы обеспечить возможный судебный след.

# 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
1
задан 13 April 2017 в 15:23

2 ответа

Ну, в конце концов, ответ был глупо прост.

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

И после этого я могу нормально менять компоновку экрана.

0
ответ дан 13 April 2017 в 15:23

Есть два драйвера nvidia. Один от сообщества и один от самих nvidia. Предлагаю попробовать оба.

Я думаю, что привод от сообщества называется «nv», а другой - «nvidia» (или наоборот). Я сделал то же самое в fedora, и в некоторых графических картах драйвер сообщества работал лучше, а в картах последнего поколения драйвер поддержки компании работал хорошо.

Я делал это в Fedora раньше. (я не проверял это в Ubuntu;))

0
ответ дан 13 April 2017 в 15:23

Другие вопросы по тегам:

Похожие вопросы: