触摸板按钮在搭载 Ubuntu 20.04.4 的联想 Yoga 2-11 上不起作用

触摸板按钮在搭载 Ubuntu 20.04.4 的联想 Yoga 2-11 上不起作用

我决定在我的旧联想 Yoga 2-11 上安装 Ubuntu。与 Windows 相比,它在性能方面有很大的差别,但还有最后一个我无法修复的烦人问题。集成在触摸板下部的按钮不起作用。有没有什么办法可以修复它们?我尝试使用其他帖子中建议的 evemu-tools,但没有成功。

xinput -list 的输出

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Atmel Atmel maXTouch Digitizer            id=11   [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=14   [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)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Power Button                              id=9    [slave  keyboard (3)]
    ↳ Lenovo EasyCamera: Lenovo EasyC           id=10   [slave  keyboard (3)]
    ↳ Ideapad extra buttons                     id=12   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]

xinput list-props 14 的输出

Device 'ETPS/2 Elantech Touchpad':
    Device Enabled (174):   1
    Coordinate Transformation Matrix (176): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Tapping Enabled (315): 1
    libinput Tapping Enabled Default (316): 0
    libinput Tapping Drag Enabled (317):    1
    libinput Tapping Drag Enabled Default (318):    1
    libinput Tapping Drag Lock Enabled (319):   0
    libinput Tapping Drag Lock Enabled Default (320):   0
    libinput Tapping Button Mapping Enabled (321):  1, 0
    libinput Tapping Button Mapping Default (322):  1, 0
    libinput Natural Scrolling Enabled (323):   1
    libinput Natural Scrolling Enabled Default (324):   0
    libinput Disable While Typing Enabled (325):    1
    libinput Disable While Typing Enabled Default (326):    1
    libinput Scroll Methods Available (327):    1, 1, 0
    libinput Scroll Method Enabled (328):   0, 0, 0
    libinput Scroll Method Enabled Default (329):   1, 0, 0
    libinput Click Methods Available (330): 1, 1
    libinput Click Method Enabled (331):    0, 1
    libinput Click Method Enabled Default (332):    1, 0
    libinput Middle Emulation Enabled (333):    0
    libinput Middle Emulation Enabled Default (334):    0
    libinput Accel Speed (335): 0.000000
    libinput Accel Speed Default (336): 0.000000
    libinput Left Handed Enabled (337): 0
    libinput Left Handed Enabled Default (338): 0
    libinput Send Events Modes Available (296): 1, 1
    libinput Send Events Mode Enabled (297):    0, 0
    libinput Send Events Mode Enabled Default (298):    0, 0
    Device Node (299):  "/dev/input/event4"
    Device Product ID (300):    2, 14
    libinput Drag Lock Buttons (339):   <no items>
    libinput Horizontal Scroll Enabled (340):   1

evemu-record 的输出

kitten@kitten-Yoga-2-11:~$ sudo evemu-record
Available devices:
/dev/input/event0:  Lid Switch
/dev/input/event1:  Power Button
/dev/input/event2:  Power Button
/dev/input/event3:  AT Translated Set 2 keyboard
/dev/input/event4:  ETPS/2 Elantech Touchpad
/dev/input/event5:  Atmel Atmel maXTouch Digitizer
/dev/input/event6:  Ideapad extra buttons
/dev/input/event7:  Lenovo EasyCamera: Lenovo EasyC
/dev/input/event8:  Video Bus
/dev/input/event9:  Video Bus
/dev/input/event10: HDA Intel PCH Mic
/dev/input/event11: HDA Intel PCH Headphone
/dev/input/event12: HDA Intel PCH HDMI/DP,pcm=3
Select the device event number [0-12]: 

选择设备 4 并按下按钮后的输出(虽然我感觉 evemu 检测到我触摸了触摸板而不是我按下了按钮所在的下侧) evemu 输出

答案1

你的设置有误

Click Method Enabled (331):    0, 1

此设置表示“按按钮手指”

默认设置为

Click Method Enabled Default (332):    1, 0

设置为“buttonareas”。

您已在某处更改了默认设置。

跑步

 xinput set-prop 14 331 1 0

并测试其工作原理。

相关内容