如何让两个触摸屏在 Debian 中工作?

如何让两个触摸屏在 Debian 中工作?

我试图让两个触摸显示器作为单独的显示器工作(但触摸分别在两个显示器上工作)。我首先设法设置两个屏幕与一个 ServerLayout 一起使用(但触摸只能在一个屏幕上工作)。我读到您需要将输入设备绑定到ServerLayout,就我而言,这意味着我需要有两个 ServerLayouts 设置,如下所示:如何将一对鼠标/键盘锁定到每个屏幕?

由于某种原因,当我这样做时,我的另一个屏幕变黑并且似乎无法工作。仅Screen0是附加到 的工作ServerLayout0。我自己已经瞎了,看不到我的任何错误xorg.conf

Section "ServerLayout"
        Identifier     "ServerLayout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "touchscreen0" "CorePointer"
        Option "BlankTime" "0"
        Option "StandbyTime" "0"
        Option "SuspendTime" "0"
        Option "OffTime" "0
EndSection

Section "ServerLayout"
        Identifier     "ServerLayout1"
        Screen      1  "Screen1" 0 0
        InputDevice    "touchscreen1" "CorePointer"
        Option "BlankTime" "0"
        Option "StandbyTime" "0"
        Option "SuspendTime" "0"
        Option "OffTime" "0
EndSection

Section "Files"
        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     "built-ins"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
  Driver       "evdev"
  Identifier   "touchscreen0"
  Option       "Name" "Elo touch screen0"
  Option       "InvertY" "true"
  Option       "Calibration 0 1280 0 1024"
  Option       "Emulate3Buttons" "true"
  Option       "Emulate3Timeout"     "50"
  Option       "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection

Section "InputDevice"
  Driver       "evdev"
  Identifier   "touchscreen1"
  Option       "Name" "Elo touch screen1"
  Option       "InvertY" "true"
  Option       "Calibration 0 1280 0 1024"
  Option       "Emulate3Buttons" "true"
  Option       "Emulate3Timeout"     "50"
  Option       "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
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"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
    Option "RightOf" "Monitor0"
EndSection

Section "Device"
        Option      "AccellMethod" "SNA"
        Option      "ZaphodHeads" "HDMI1"
        Option      "TearFree" "true"
        Identifier  "Device0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
        Screen      0
EndSection

Section "Device"
        Option      "AccellMethod" "SNA"
        Option      "ZaphodHeads" "HDMI2"
        Option      "TearFree" "true"
        Identifier  "Device1"
        Driver      "intel"
        BusID       "PCI:0:2:0"
        Screen      1
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Device0"
        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 "Screen"
        Identifier  "Screen1"
        Device      "Device1"
        Monitor     "Monitor1"
        SubSection     "Display"
             Depth       24
        EndSubSection
EndSection

编辑:

为了更好地澄清我的问题:我的用例是,将有两个单独的用户同时使用该设备。他们应该有自己的会议。两个监视器中都运行相同的软件,但它的实例不同。我希望触摸输入能够在各自的屏幕区域中注册输入。就好像它们在同一 ServerLayer 中运行一样,来自 Screen1 的触摸将转发到 Screen0。这是我不想要的。

相关内容