在两个显示器上显示 lxdm 登录屏幕

在两个显示器上显示 lxdm 登录屏幕

我希望我的 lxdm 登录屏幕出现在两个显示器上,以便我可以登录任何打开的显示器,而 xrandr 似乎无法确定。

使用 xdm,我可以通过添加一行来实现

xrandr --output DP-2 --auto --pos 0x0 --output DP-1 --auto --pos 0x0

到 /etc/X11/xdm/Xsetup,DP-1 和 DP-2 是两个显示器的 xrandr 名称。

使用 lxdm,我尝试将此行添加到 /etc/lxdm/LoginReady 和 /etc/lxdm/PreLogin,但这没有任何区别。在 DP-1 上,我可以看到登录屏幕,而 DP-2 仍然是黑色的,尽管我可以将鼠标指针移到它上面。

Ubuntu 版本 20.04。作为 Lubuntu 安装,但现在已删除大部分 lxqt,并使用 fvwm 作为窗口管理器。

答案1

我设法通过 xorg 解决了这个问题,文件 /etc/X11/xorg.conf.d/10-monitor.conf 内容如下:

Section "Monitor"
  Identifier  "DP-1"
  Option      "Position" "0 0"
EndSection

Section "Monitor"
  Identifier  "DP-2"
  Option      "Position" "0 0"
EndSection

其中 DP-1 和 DP-2 再次是视频输出的 xrandr 名称。

相关内容