小编ism*_*tur的帖子

Xorg 双头仅将键盘和鼠标输入映射到特定屏幕

下面是我们用于双头显示器配置的 xorg.conf 文件。我们只需要将键盘和鼠标映射到特定屏幕,因为另一个屏幕用于视频播放。通过提供的配置,尽管有明确的指示,鼠标仍能正确映射。键盘也被正确映射。然而一段时间后它会切换到另一个屏幕。有没有办法将键盘和鼠标输入显式映射到特定屏幕?

Section "ServerLayout"
    Identifier     "Layout1"
    Screen         0 "Screen0" 0 0
    Screen         1 "Screen1" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option "StandbyTime" "0"
    Option "SuspendTime" "0"
    Option "OffTime"     "0"
    Option "BlankTime"   "0"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc/"
    FontPath     "/usr/share/fonts/TTF/"
    FontPath     "/usr/share/fonts/OTF/"
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor" …
Run Code Online (Sandbox Code Playgroud)

xorg keyboard x11 multi-monitor mouse

5
推荐指数
0
解决办法
1367
查看次数

标签 统计

keyboard ×1

mouse ×1

multi-monitor ×1

x11 ×1

xorg ×1