【问题标题】:Cannot set Tapping Enabled Default on Archlinux无法在 Archlinux 上设置 Tapping Enabled Default
【发布时间】:2020-11-09 10:24:22
【问题描述】:

当我在 Dell Vostro 5590 上登录 Archlinux 时,如果我想用触摸板“点击”某些东西,我必须按下触摸板,因为点击它是不够的,因为我想要它成为。

运行以下

xinput set-prop 11 "libinput Tapping Enabled" 1

正确启用我想要的行为。 (我通过检查xinput list 的输出和通过检查xinput list-props 11 的输出得到那个字符串。)

但是,此设置更改不会在注销/重新启动后继续存在。

我的理解是我应该跑

xinput set-prop 11 "libinput Tapping Enabled Default" 1

但这会出现以下错误

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

我知道我可以在启动 WM 之前将非Default 命令放入我的~/.xinit,但我认为这不是一个干净的解决方案。

【问题讨论】:

    标签: archlinux touchpad xinput


    【解决方案1】:

    /etc/X11/xorg.conf.d/ 中创建名为 40-libinput.conf 的配置文件并粘贴

    Section "InputClass"
        Identifier "libinput touchpad catchall"
        Driver "libinput"
        Option "Tapping" "on"
    EndSection
    

    然后在重新启动后,您将可以点击。 也请查看this page

    【讨论】:

      【解决方案2】:

      根据Libinput - Arch Wiki,必须先安装。但大部分是默认安装的:

      $ pacman -sS libinput
        extra/libinput 1.18.1-1 [installed] # This is the newer
          Input device management and event handling library
        extra/xf86-input-libinput 1.1.0-1 (xorg-drivers) [installed] # This is older
          Generic input driver for the X.Org server based on libinput
      

      然后运行sudo libinput list-devices 以了解触摸板在内核上的路径在哪里:

      $ sudo libinput list-devices
        Device:           SYNA0001:00 06CB:CE2D Touchpad
        Kernel:           /dev/input/event7 # Here is mine
      

      这是我的配置:/etc/X11/xorg.conf.d/40-libinput.conf:

      Section "InputClass"
              Identifier "libinput touchpad catchall"
              Driver "libinput"
              MatchIsTouchpad "on"
              MatchDevicePath "/dev/input/event7"
              Option "Tapping" "on"
              Option "ClickMethod" "clickfinger"
              Option "TappingDrag" "on"
              Option "ScrollMethod" "twofinger"
              Option "DisableWhileTyping" "on"
              Option "TappingButtonMap" "lmr"
      EndSection
      

      重启

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-04-15
        • 2023-01-09
        • 2013-03-28
        • 1970-01-01
        • 2022-08-14
        • 1970-01-01
        • 2019-01-05
        • 1970-01-01
        相关资源
        最近更新 更多