Xorg.conf 选项不保留

Xorg.conf 选项不保留

我正在尝试在触控板上默认启用点击功能。设备名称是“bcm5974”。xinput --set-prop "bcm5974" "libinput Tapping Enabled" "1"很有魅力,但是像这样更改的属性在重新启动后不会保留。

根据此处的其他答案,我修改了/usr/share/X11/xorg.conf.d/40-libinput.conf.首先我运行xinput list,我的设备作为指针出现,因此相关部分40-libinput.conf变为:

Section "InputClass"
    Identifier "libinput pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "Tapping" "on"
EndSection

这不起作用,所以我查看了/var/log/Xorg.0.log,它表明该设备实际上被识别为触摸板。我改为40-libinput.conf添加Option "Tapping" "on"到触摸板InputClass。

重新启动后,点击点击仍然未启用,但确实Xorg.0.log显示了正在设置的选项,然后设备被删除,然后显然是在没有读取的情况下读取的40-libinput.conf

[    73.350] (II) config/udev: Adding input device bcm5974 (/dev/input/event6)
[    73.350] (**) bcm5974: Applying InputClass "libinput touchpad catchall"
[    73.350] (II) Using input driver 'libinput' for 'bcm5974'
[    73.350] (**) bcm5974: always reports core events
[    73.350] (**) Option "Device" "/dev/input/event6"
[    73.350] (**) Option "_source" "server/udev"
[    73.357] (II) event6  - bcm5974: is tagged by udev as: Touchpad
[    73.358] (II) event6  - bcm5974: device is a touchpad
[    73.358] (II) event6  - bcm5974: device removed
[    73.394] (**) Option "Tapping" "on"
[    73.394] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:04.0/usb3/3-6/3-6:1.2/input/input6/event6"
[    73.394] (II) XINPUT: Adding extended input device "bcm5974" (type: TOUCHPAD, id 11)
[    73.395] (**) Option "AccelerationScheme" "none"
[    73.395] (**) bcm5974: (accel) selected scheme none/0
[    73.395] (**) bcm5974: (accel) acceleration factor: 2.000
[    73.395] (**) bcm5974: (accel) acceleration threshold: 4
[    73.402] (II) event6  - bcm5974: is tagged by udev as: Touchpad
[    73.403] (II) event6  - bcm5974: device is a touchpad
[    73.404] (II) config/udev: Adding input device bcm5974 (/dev/input/mouse0)
[    73.404] (II) No input driver specified, ignoring this device.
[    73.404] (II) This device may have been added with another device file.

我在这里超出了我的知识水平。 udev 是否​​将其自己的配置应用于我的设备?如果是,配置文件位于何处以及如何修改它?或者我还缺少其他东西吗?

我在一台 2008 年末的 Macbook 上运行 Lubuntu 20.04.5,触控板是笔记本电脑原来的内置触控板。谢谢你尽你所能的帮助!

相关内容