我运行Ubuntu19.04(迪斯科)在一台机器上有两个显卡和三个显示器,一个NVidia 1080ti在顶部插槽和织女星64在底部插槽。其中两个显示器插入Vega 64的显示端口,一个在NVidia 1080ti中插入HDMI。
当我允许Ubuntu自动检测图形设置(没有xorg.conf文件)时,Gnome扩展到所有三个监视器,这两个视频卡都很好,但它只在其中一个上呈现(换句话说,在显示端口上运行的任何东西都使用nvidia或nouveau驱动程序--就像呈现正在传递一样)。
因此,我想出了一个xorg.conf文件(如下所示),这个文件非常接近我的需要,但也有一些问题。最大的问题是,当我在另一个屏幕DISPLAY=:0.1 xterm上启动xterm时,鼠标可以正常工作,但键盘不能工作。这个文件非常类似于Xorg -configure生成的内容。我做错了什么?如何使键盘在Screen1或Screen2上的windows中工作?
Section "InputDevice"
Identifier "keyboard0"
Option "Device" "/dev/input/event10"
Option "Xinerama" "On"
Driver "evdev"
EndSection
Section "InputDevice"
Identifier "mouse0"
Option "Device" "/dev/input/event4"
Driver "evdev"
EndSection
Section "Monitor"
Identifier "HDMI-1"
EndSection
Section "Monitor"
Identifier "DisplayPort-3"
EndSection
Section "Monitor"
Identifier "DisplayPort-4"
EndSection
Section "Device"
Identifier "Device1"
Driver "amdgpu"
BusID "PCI:41:00"
EndSection
Section "Device"
Identifier "Device0"
Driver "nouveau"
BusID "PCI:38:00"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "HDMI-1"
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "DisplayPort-3"
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device1"
Monitor "DisplayPort-4"
EndSection
Section "ServerLayout"
Identifier "seatx"
Screen 0 "Screen0"
Screen 1 "Screen1" LeftOf "Screen0"
Screen 2 "Screen2" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "ServerFlags"
Option "AutoAddGPU" "off"
Option "AutoAddDevices" "false"
EndSection发布于 2019-05-29 02:04:50
感谢您提供的额外信息。听起来,如果您在尝试之后成功地解决了呈现问题,并且没有提到键盘(这是主要的标题问题),那么您的新更改是否也解决了这个问题呢?多座位主要是我在这里的经验,这似乎也是唯一尚未解决的问题,所以我的答案是:
由于多座位是您的最终目标,我建议在那个时候跳过xorg.conf文件。xorg.conf是实现多座位工作的最困难的方法。您说您安装了Ubuntu,预装了带有loginctl实用程序的systemd。您可以使用loginctl设置座位,只需几个命令即可。
为了保持这个答案的清晰,我将参考Debian的wiki "Multi_Seat_Debian_HOWTO“(我是一个编辑)来获得更深入的指导。Ubuntu是基于Debian的,所以它是一样的。
或者你可以用我的EasySeats程序来创建座位。
希望现在可以将其标记为已回答/解决。不幸的是,我没有足够的声誉,不足以第一次问另一个单独的问题,作为一个补充评论。我过会儿再查,以确保一切都好。
https://unix.stackexchange.com/questions/518586
复制相似问题