希望哪位有经验的能帮忙看看,如何解决?
我的网络有问题,无法注册AskUbuntu无法登录提问,或者哪位英语好的、有时间的,帮忙转贴问问?
网上有一篇《两步搞定Ubuntu下Multiseat设置》
他这个是用同一个桌面分屏显示的“假双用户”,他用 xinput 来修改两套鼠标键盘令两个人可以分别操作,
但这造成的问题是:如果一个人在用鼠标猛点狂按玩游戏时,另一个人想写文章,中文输入法就打不上字了,
因为“活动窗口”总是被玩游戏的那家伙的“鼠标点击”抢占去了。若两人同时鼠标或同时键盘就还能应付。
于是我网上找了一些资料(有些资料太旧,不适用于新版Ubuntu 14.04)自己摸索,可以参考:
http://www.linuxtoys.org/multiubuntu/multiubuntu.html
https://help.ubuntu.com/community/MultiseatX
https://wiki.ubuntu.com/MultiseatTeam/Instructions
我使用的是 UbuntuStudio 14.04 版 64位系统;
一个 Nvidia 显卡,两个显示器,一个接 DVI 口,另一个接 VGA 口;
两套鼠标键盘。其中一套鼠标键盘都是 PS/2口,没有直接插机箱,而是接在“USB一分二PS/2”的转换线上,
另一套鼠标键盘,一个是USB鼠标,直接插机箱,一个是PS/2键盘,也直接插机箱。
我现在已经能实现的是:在 xorg.conf 的 ServerLayout 里定义有 seat0 和 seat1,
只要修改 ServerFlags 里的 Option "DefaultServerLayout" "seat0" 改为 "seat1" ,
重新启动后,就能在另一台显示器上,用另一套鼠标键盘,登录系统并正常使用,
与原鼠标键盘不会互相干涉,但是两个显示器总有一个是黑屏没有信号的。
——我尝试了多种配置,都无法让两台显示器同时亮起,也就无法让两用户同时登录各自的桌面。
从 Log 日志上看,我觉得问题有可能出在:
lightdm.log 文件提示的 Seat 0: Stopping greeter; display server will be re-used for user session
或者 x-0.log 文件提示的 setversion 1.4 failed: Permission denied
但我不知道应该如何解决?
后面跟帖有我的配置文件 xorg.conf、lightdm.conf,以及启动后的 Log 文件:
Xorg.0.log、Xog.1.log、lightdm.log、x-0.log、x-1.log,这几个日志文件。
另外 x-0-greeter.log 和 x-1-greeter.log 都是空文件,0字节,就不放上来了。
xorg.conf 文件
代码: 全选
# 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 "ServerFlags"
Option "DefaultServerLayout" "seat0"
Option "AllowMouseOpenFail" "true"
Option "AutoAddDevices" "false"
Option "AutoEnableDevices" "false"
Option "DontZap" "false"
EndSection
####################################################
Section "ServerLayout"
Identifier "seat0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Option "Xinerama" "1"
EndSection
Section "ServerLayout"
Identifier "seat1"
Screen 0 "Screen1" 0 0
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
####################################################
Section "InputDevice"
Identifier "Keyboard0"
Driver "evdev"
Option "Device" "/dev/input/event2"
Option "XkbRules" "xorg"
Option "XkbModel" "evdev"
Option "XkbLayout" "us"
Option "GrabDevice" "yes"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mouse0"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "evdev"
Option "Device" "/dev/input/event3"
Option "XkbRules" "xorg"
Option "XkbModel" "evdev"
Option "XkbLayout" "us"
Option "GrabDevice" "yes"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mouse1"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
####################################################
Section "Monitor"
Identifier "Monitor0"
VendorName "LG-DVI"
ModelName "LG Electronics 24MP55"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "SEG-VGA"
ModelName "SEG RM170"
HorizSync 30.0 - 80.0
VertRefresh 58.0 - 75.0
Option "DPMS"
EndSection
####################################################
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 650"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 650"
BusID "PCI:1:0:0"
Screen 0
EndSection
####################################################
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-1"
Option "metamodes" "DVI-D-0: nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "CRT-0"
Option "metamodes" "VGA-0: nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
####################################################
Section "Extensions"
Option "Composite" "Disable"
EndSection
代码: 全选
[LightDM]
minimum-display-number=0
minimum-vt=7
[SeatDefaults]
xserver-command=/usr/bin/X
greeter-session=lightdm-gtk-greeter
greeter-show-manual-login=true
user-session=default
exit-on-failure=true
[Seat:0]
xserver-command=/usr/bin/X :0 vt7
xserver-layout=seat0
[Seat:1]
xserver-command=/usr/bin/X :1 vt8
xserver-layout=seat1
autologin-user=xyz
autologin-user-timeout=15
[XDMCPServer]
[VNCServer]