什么会阻止鼠标在xrandr屏幕之间移动?[关闭]


9

我已经按照本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

任何帮助,将不胜感激。我已经很接近要开始工作了!


@Tim祝你好运,我的朋友。我仍然没有得到它的工作。希望司机神会向你微笑。
泰勒

Answers:


6

我最好的猜测是,右侧屏幕的位置导致了问题。您可以尝试像这样修改ServerLayout部分:

Section "ServerLayout"
        Identifier     "Layout0"
        Screen         0 "Screen0" 0 0
        Screen         1 "DisplayLinkScreen" RightOf "Screen0"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
        Option         "Xinerama" "0"
EndSection

或者,如果您确实希望将DisplayLinkScreen用作主屏幕,请对其进行修改,以使坐标与Screen0的分辨率匹配。例如Screen0的分辨率为1900x1200:

Section "ServerLayout"
        Identifier     "Layout0"
        Screen         0  "DisplayLinkScreen" 1900 0
        Screen         1  "Screen0" LeftOf "DisplayLinkScreen"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
        Option         "Xinerama" "0"
EndSection

问题的另一个可能位置可能是在gnome启动期间加载的RandR配置中。您可以通过删除来完全重置RandR配置~/.config/monitors.xml



2

您有两种不同的图形设备,一种带有-intel,另一种带有-displayport,并且想要将它们缝合在一起,以便鼠标在它们之间无缝移动。Xinerama是将多个屏幕拼接在一起的功能,因此您需要启用该功能。

但是,-intel的Xinerama模式并没有得到很好的支持(不过应该会变得更好)。也许您会很幸运的,但是据我所知,这并不可行。

但是,如果使用-nvidia专有的二进制驱动程序,则可能可以使其工作。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.