尝试通过 xinput 针对 Xwayland 服务器禁用触摸屏

尝试通过 xinput 针对 Xwayland 服务器禁用触摸屏

我正在尝试通过 xinput 禁用触摸屏,这是我的 cmd 输出:

WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ xwayland-pointer:16                       id=6    [slave  pointer  (2)]
⎜   ↳ xwayland-relative-pointer:16              id=7    [slave  pointer  (2)]
⎜   ↳ xwayland-pointer-gestures:16              id=8    [slave  pointer  (2)]
⎜   ↳ xwayland-tablet stylus:16                 id=11   [slave  pointer  (2)]
⎜   ↳ xwayland-tablet eraser:16                 id=12   [slave  pointer  (2)]
⎜   ↳ xwayland-tablet cursor:16                 id=13   [slave  pointer  (2)]
⎜   ↳ xwayland-touch:16                         id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ xwayland-keyboard:16                      id=9    [slave  keyboard (3)]

我尝试过运行:

xinput disable [id]

对于 ID 2,4 和 6

但我收到以下错误:

WARNING: running xinput against an Xwayland server. See the xinput man page for details.
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Serial number of failed request:  21
  Current serial number in output stream:  22

有任何想法吗?

我正在运行 Ubuntu 版本 22.04.3 LTS

相关内容