使用 xinput 和相关工具启用双输入对

使用 xinput 和相关工具启用双输入对

我无法让它工作,只有第二个指针出现并闪烁。请注意,我有双显示器、单 GPU 布局。我不确定问题是否与 XOrg 配置(如图所示)有关。任何帮助和鼓励都值得赞赏。谢谢。

这是xinput插入无线 USB 设备后的情况。

⎡ Virtual core pointer                              id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                    id=4    [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=10   [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=11   [slave  pointer  (2)]
⎜   ↳ PixArt USB Optical Mouse                      id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                             id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                   id=5    [slave  keyboard (3)]
    ↳ Power Button                                  id=6    [slave  keyboard (3)]
    ↳ Power Button                                  id=7    [slave  keyboard (3)]
    ↳ Sleep Button                                  id=8    [slave  keyboard (3)]
    ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=9    [slave  keyboard (3)]
    ↳ CHICONY USB Keyboard                          id=13   [slave  keyboard (3)]
    ↳ CHICONY USB Keyboard                          id=14   [slave  keyboard (3)]
    ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=15   [slave  keyboard (3)]

然后我输入以下命令,并查看结果xinput,我看到屏幕上的另一个指针,无论是光标还是标准指针,它都在闪烁,当我在第一个有线 USB 键盘上打字时它会抖动,但无线设备的触摸板或键盘都没有按预期工作。这是一款 Microsoft 一体式媒体键盘。我使用的是 Ubuntu 18.04.1(我觉得我应该注意,我从一开始就选择了“最小安装”。)还值得注意的是,我使用的是来自 1 个 16 通道 GPU 的两个显示器。感谢您提供的任何帮助。

$ xinput create-master wireless
$ xinput reattach 10 16
$ xinput reattach 11 16
$ xinput reattach 9 17
$ xinput reattach 15 17


⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ PixArt USB Optical Mouse                  id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ CHICONY USB Keyboard                      id=13   [slave  keyboard (3)]
    ↳ CHICONY USB Keyboard                      id=14   [slave  keyboard (3)]
⎡ wireless pointer                                  id=16   [master pointer  (17)]
⎜   ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=10   [slave  pointer  (16)]
⎜   ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=11   [slave  pointer  (16)]
⎜   ↳ wireless XTEST pointer                        id=18   [slave  pointer  (16)]
⎣ wireless keyboard                                 id=17   [master keyboard (16)]
    ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=9    [slave  keyboard (17)]
    ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=15   [slave  keyboard (17)]
    ↳ wireless XTEST keyboard                       id=19   [slave  keyboard (17)]

/etc/X11/xorg.com

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 396.54  (buildd@lgw01-amd64-044)  Tue Aug 21 18:18:46 UTC 2018

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 396.54  (buildmeister@swio-display-x64-rhel04-14)  Wed Aug 15 00:22:27 PDT 2018

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

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Acer AL2223W"
    HorizSync       31.0 - 82.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "31"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "HDMI-0: nvidia-auto-select +1440+0, DVI-D-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

答案1

刚刚注意到右侧的电源开关。很好。

相关内容