我已按照本HowTo中概述的步骤进行操作。
在我登录到 Gnome 之后,我可以来回移动鼠标,但是一旦加载任务栏,鼠标就会被困在屏幕中(不能在屏幕之间移动)。
这是我的 xorg.conf:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "DisplayLinkScreen" 0 0
Screen 1 "Screen0" LeftOf "DisplayLinkScreen"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0" #Could not get this to work it has to be disable
EndSection
Section "Files"
ModulePath "/usr/local/lib/xorg/modules/drivers"
ModulePath "/usr/lib/xorg/modules/drivers"
ModulePath "/usr/local/lib"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "dri2"
Load "extmod"
Load "glx"
Load "record"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
# Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Core Processor Integrated Graphics Controller"
BusID "PCI:0:2:0"
Option "DPMS"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Monitor"
Identifier "DisplayLinkMonitor"
EndSection
Section "Device"
Identifier "DisplayLinkDevice"
Driver "displaylink"
Option "fbdev" "/dev/fb0"
EndSection
Section "Screen"
Identifier "DisplayLinkScreen"
Device "DisplayLinkDevice"
Monitor "DisplayLinkMonitor"
SubSection "Display"
Depth 24
Modes "1920x1200" "1920x1080" "1680x1050" "1600x1200" "1440x900" "1366x768" "1280x1024" "1280x960" "1280x800" "1280x768" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
任何帮助,将不胜感激。我非常接近让它发挥作用!
我最好的猜测是右侧屏幕的位置导致了问题。您可以尝试像这样修改 ServerLayout 部分:
或者,如果您确实希望 DisplayLinkScreen 成为主屏幕,请对其进行修改,使坐标与 Screen0 的分辨率相匹配。例如 Screen0 的分辨率为 1900x1200:
问题的另一个可能位置可能是在 gnome 启动期间加载的 RandR 配置中。您可以通过删除来完全重置 RandR 配置
~/.config/monitors.xml
。我在这里找到了一个工具,它可以在分离的屏幕之间自动包裹鼠标。
当我无法让鼠标在屏幕之间移动时,它对我有用。
您有两种不同的图形设备,一种带有 -intel,一种带有 -displayport,并且想要将它们拼接在一起,以便鼠标在它们之间无缝移动。Xinerama 将多个屏幕拼接在一起,因此您需要启用它。
但是,-intel 的 Xinerama 模式并没有得到很好的支持(不过应该会变得更好)。也许你会很幸运,但据我所知,预计这不会奏效。
如果您使用 -nvidia 专有的二进制驱动程序,您可能可以让它工作。