Lubuntu 20.04 RedmiBook 15 中点击打开项目不起作用

Lubuntu 20.04 RedmiBook 15 中点击打开项目不起作用

我在 RedmiBook 15 上安装了 Lubuntu 20.04,并且勾选了单击激活项目,但仍然不起作用(无法点击打开项目)。不过我仍然需要使用触摸板的左键单击来打开项目。

我该如何解决?

答案1

运行xinput以显示触摸板名称。然后使用输出触摸板名称运行,并将值从更改为xinput list-props "touchpad name"libinput Tapping Enabled (322)01

xinput命令开始确定您的系统上有哪些设备。如果 xinput 未安装,请运行sudo apt install xinput以进行安装。

输出示例xinput

➜ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=12   [slave  pointer  (2)]
⎜   ↳ TPPS/2 Elan TrackPoint                    id=13   [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)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=9    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated I           id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=11   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=14   [slave  keyboard (3)]

触摸板是第一组中的第二个条目:SynPS/2 Synaptics TouchPad。现在,您可以使用 ID 号(此例中为 12)或全名列出此设备的所有属性:

➜ xinput list-props "SynPS/2 Synaptics TouchPad"
Device 'SynPS/2 Synaptics TouchPad':
    Device Enabled (187):   1
    Coordinate Transformation Matrix (189): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Tapping Enabled (322): 0
    libinput Tapping Enabled Default (323): 0
    libinput Tapping Drag Enabled (324):    1
    libinput Tapping Drag Enabled Default (325):    1
    libinput Tapping Drag Lock Enabled (326):   0
    libinput Tapping Drag Lock Enabled Default (327):   0
    libinput Tapping Button Mapping Enabled (328):  1, 0
    libinput Tapping Button Mapping Default (329):  1, 0
    libinput Natural Scrolling Enabled (330):   0
    libinput Natural Scrolling Enabled Default (331):   0
    libinput Disable While Typing Enabled (332):    1
    libinput Disable While Typing Enabled Default (333):    1
    libinput Scroll Methods Available (334):    1, 1, 0
    libinput Scroll Method Enabled (335):   1, 0, 0
    libinput Scroll Method Enabled Default (336):   1, 0, 0
    libinput Click Methods Available (337): 1, 1
    libinput Click Method Enabled (338):    1, 0
    libinput Click Method Enabled Default (339):    1, 0
    libinput Middle Emulation Enabled (340):    0
    libinput Middle Emulation Enabled Default (341):    0
    libinput Accel Speed (342): 0.000000
    libinput Accel Speed Default (343): 0.000000
    libinput Accel Profiles Available (344):    1, 1
    libinput Accel Profile Enabled (345):   1, 0
    libinput Accel Profile Enabled Default (346):   1, 0
    libinput Left Handed Enabled (347): 0
    libinput Left Handed Enabled Default (348): 0
    libinput Send Events Modes Available (307): 1, 1
    libinput Send Events Mode Enabled (308):    0, 0
    libinput Send Events Mode Enabled Default (309):    0, 0
    Device Node (310):  "/dev/input/event4"
    Device Product ID (311):    2, 7
    libinput Drag Lock Buttons (349):   <no items>
    libinput Horizontal Scroll Enabled (350):   1

输出中最重要的一行是:

libinput Tapping Enabled (322): 0  

打开触摸板的点击功能:

xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1

现在,您的点击功能应该可以正常工作了。如果不行,请返回输入设备列表,并再次检查是否存在其他触摸板。有些笔记本电脑会显示多个触摸板,但系统中只有一个触摸板。这是因为有些笔记本电脑上的额外按钮被标记为触摸板。

来源:在 i3 中启用触摸板点击

相关内容