LightDM таинственно меняет расположение монитора

2812
mtoossi

Обновление: проблема, кажется, происходит от LightDM. Если я начинаю сеанс с использованием TTY startx, экраны располагаются в соответствии с xorg.conf. Но если я это сделаю sudo start lightdm, экраны станут линейными еще до входа в систему.


У меня есть один графический процессор (Nvidia NVS 510) с четырьмя подключенными мониторами. Я пытаюсь расположить их в макете 2х2. Тем не менее, каждый раз, когда я запускаю X, LightDM, кажется, сбрасывается в горизонтальное расположение 1x4.

Это система Ubuntu 14.04 с установленными проприетарными драйверами Nvidia. Я сгенерировал следующее xorg.confиспользуя nvidia-settings:

# 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 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" Option "Xinerama" "0" EndSection  Section "Files" EndSection  Section "InputDevice" Identifier "Mouse0" [...] EndSection  Section "InputDevice" Identifier "Keyboard0" [...] EndSection  Section "Monitor" Identifier "Monitor0" [...] EndSection  Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "NVS 510" BusID "PCI:4:0:0" EndSection  Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 Option "Stereo" "0" Option "nvidiaXineramaInfoOrder" "DFP-4" Option "metamodes" "DP-4: nvidia-auto-select +1920+0, DP-5: nvidia-auto-select +0+0, DP-6: nvidia-auto-select +1920+1200, DP-7: nvidia-auto-select +0+1200" Option "SLI" "Off" Option "MultiGPU" "Off" Option "BaseMosaic" "off" SubSection "Display" Depth 24 EndSubSection EndSection 

Обратите внимание, что все дисплеи являются частью одного экрана X (по желанию), а макет указывается в параметре «метамод». Если я использую startx, все работает правильно.

Тем не менее, LightDM загадочно сбрасывает раскладку в какой-то момент перед отображением экрана входа в систему.

В начале я вижу следующий фрагмент Xorg.0.log, правильно настраивающий экраны:

[5601.023] (II) NVIDIA (0): проверенные мета-режимы: [5601.023] (II) NVIDIA (0): [5601.023] (II) NVIDIA (0):
«DP-4: автоматический выбор nvidia + 1920 + 0, DP-5: nvidia-auto-select + 0 + 0, DP-6: nvidia-auto-select + 1920 + 1200, DP-7: nvidia-auto-select + 0 + 1200 "[5601.023] (II) NVIDIA (0): Размер виртуального экрана определен как 3840 x 2400

Но с LightDM я получаю следующее в журнале (с X -logverbose 6):

[ 1022.497] (II) XINPUT: Adding extended input device "HP WMI hotkeys" (type: KEYBOARD, id 12) [ 1022.497] (**) Option "xkb_rules" "evdev" [ 1022.497] (**) Option "xkb_model" "pc105" [ 1022.497] (**) Option "xkb_layout" "us" [ 1022.497] (II) XKB: Reusing cached keymap [ 1023.181] (II) NVIDIA(0): XRRSetCrtcConfig(screen:0 crtc:2 position:0,0 mode:null rotation:0x01 output:null) [ 1023.194] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-5) [ 1023.194] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-4) [ 1023.194] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-7) [ 1023.194] (II) NVIDIA(0): Setting mode "DP-5: nvidia-auto-select @1920x1200 +0+0, DP-4: nvidia-auto-select @1920x1200 +1920+0, DP-7: nvidia-auto-select @1920x1200 +0+1200 " [ 1023.644] (II) NVIDIA(0): XRRSetCrtcConfig(screen:0 crtc:3 position:0,0 mode:null rotation:0x01 output:null) [ 1023.646] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-5) [ 1023.646] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-4) [ 1023.646] (II) NVIDIA(0): Setting mode "DP-5: nvidia-auto-select @1920x1200 +0+0, DP-4: nvidia-auto-select @1920x1200 +1920+0 " [ 1023.970] (II) NVIDIA(0): XRRSetScreenSize(screen:0 size:7680x1200 sizeMM:2032x318) [ 1023.987] (==) NVIDIA(0): Using 8388608 bytes for software rendering cache [ 1024.050] (II) NVIDIA(0): XRRSetCrtcConfig(screen:0 crtc:2 position:3840,0 mode:1920x1200 rotation:0x01 output:DP-6) [ 1024.053] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-5) [ 1024.053] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-4) [ 1024.053] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-6) [ 1024.053] (II) NVIDIA(0): Setting mode "DP-5: nvidia-auto-select @1920x1200 +0+0, DP-4: nvidia-auto-select @1920x1200 +1920+0, DP-6: nvidia-auto-select @1920x1200 +3840+0 " [ 1024.394] (II) NVIDIA(0): XRRSetCrtcConfig(screen:0 crtc:3 position:5760,0 mode:1920x1200 rotation:0x01 output:DP-7) [ 1024.397] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-5) [ 1024.397] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-4) [ 1024.397] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-6) [ 1024.397] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-7) [ 1024.397] (II) NVIDIA(0): Setting mode "DP-5: nvidia-auto-select @1920x1200 +0+0, DP-4: nvidia-auto-select @1920x1200 +1920+0, DP-6: nvidia-auto-select @1920x1200 +3840+0, DP-7: nvidia-auto-select @1920x1200 +5760+0 " [ 1024.853] (II) NVIDIA(0): XRRSetCrtcConfig(screen:0 crtc:1 position:0,0 mode:1920x1200 rotation:0x01 output:DP-4) [ 1024.856] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-5) [ 1024.856] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-4) [ 1024.856] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-6) [ 1024.856] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-7) [ 1024.856] (II) NVIDIA(0): Setting mode "DP-5: nvidia-auto-select @1920x1200 +0+0, DP-4: nvidia-auto-select @1920x1200 +0+0, DP-6: nvidia-auto-select @1920x1200 +3840+0, DP-7: nvidia-auto-select @1920x1200 +5760+0 " [ 1024.920] (II) NVIDIA(0): XRRSetCrtcConfig(screen:0 crtc:0 position:1920,0 mode:1920x1200 rotation:0x01 output:DP-5) [ 1024.923] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-5) [ 1024.923] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-4) [ 1024.923] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-6) [ 1024.923] (II) NVIDIA(0): Screen transformation disabled for HP Z24i (DFP-7) [ 1024.923] (II) NVIDIA(0): Setting mode "DP-5: nvidia-auto-select @1920x1200 +1920+0, DP-4: nvidia-auto-select @1920x1200 +0+0, DP-6: nvidia-auto-select @1920x1200 +3840+0, DP-7: nvidia-auto-select @1920x1200 +5760+0 " 

Все мои файлы конфигурации LightDM являются стандартными, за исключением того, 90-nvidia.confкоторый, вероятно, был установлен проприетарными драйверами Nvidia:

# ls /usr/share/lightdm/lightdm.conf.d/ 50-greeter-wrapper.conf 50-guest-wrapper.conf 50-ubuntu.conf 50-unity-greeter.conf  50-xserver-command.conf 90-nvidia.conf # ls /etc/lightdm/ users.conf 

Кроме того, я попытался удалить, 90-nvidia.confно это не изменило поведение.

3

3 ответа на вопрос

3
mtoossi

Turns out unity-greeter which is the default LightDM greeter applies that Unity display settings once it gets launched. I have configured my monitor layout in Unity display settings in addition to xorg.conf, but this does not help

Since I am using a different window manager (i3), unity-settings-daemon is not running, and this appears to cause the greeter to fall back to the horizontal layout, replacing what xorg.conf requested and ignoring the Unity display settings.

Я также нашел эту тему для пользователей, страдающих от единства. Https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/915468 И, к сожалению, исправления нет даже для ubuntu-14.04. VasyaNovikov 9 лет назад 0
ОП прав, единственник все портит. Установка lightdm-gtk-greeter устраняет проблемы для меня. gpo 9 лет назад 0
0
Kamil

I think it's something wrong with current X-org or with current NVidia drivers and software, or it's about 64-bit versions.

I had a bit simiar issue (not reading settings?) with NVidia Quadro NVS140M on 64-bit Debian 7.

It was something wrong with default video settings. I had horrible color hue offset (blue faces, red trees or something like that). I was able to correct them with nvidia-settings application, but colors were crazy after restart, until I started nvidia-settings again. When I started it - it looked like configuration file was read and colors were configured again without any change, just after starting nvidia-settings.

Few years ago I was using same hardware with some older driver, older linux (I think it was SuSE) and it was 32 bit version. Maybe try to uninstall xorg or video driver and try some older version. I guess that solution is not desireable too, but... I don't have any other ideas.

And one more tip for future - next time consider using more "serious" linux distribution, like SuSE Enterprise or maybe Debian 6.

Я думаю, что в моем случае это как-то связано с LightDM. Если я использую startx, экраны размещаются в соответствии с xorg.conf, но если я вместо этого делаю «sudo start lightdm», я получаю линейное расположение. Я также вижу несколько дополнительных строк в Xorg.0.log, предполагающих, что что-то меняет макет позже. Я просто не могу найти сценарий, который делает это! mtoossi 9 лет назад 0
Почему вы используете Lightdm? Проблемы с рендерингом OpenGL или Java под новым Gnome? Kamil 9 лет назад 0
Это по умолчанию поставляется с дистрибутивом. Я также использую i3 в качестве моего оконного менеджера. Я отредактировал вопрос, чтобы сделать его более специфичным для lightdm. mtoossi 9 лет назад 0
Я думаю, вы должны показать, как вы пытались это исправить с помощью `xrandr`. Вы не хотите помещать свою конфигурацию в `/ var / lib / lightdm / .config`? (что, вероятно, как-то переопределяет вашу конфигурацию) Kamil 9 лет назад 0
Я полностью удалил свое "xrandr" "исправление" перед созданием этих журналов. Я обновлю вопрос файлами в каталоге `/ usr / share / lightdm / lightdm.conf.d` на всякий случай, если что-то там есть. mtoossi 9 лет назад 0
ОК, похоже, это как-то связано с "единением". Изменение приветствия LightDM на другое устраняет проблему. mtoossi 9 лет назад 0
-1
Daniele

Я нашел этот список устранения неполадок, с возможным решением вашей проблемы. У меня тоже самое, LigthDM меняет порядок мониторов.

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