本文介绍通过运行xinput命令的方法在Manjaro系统中启用Tap-to-click功能,它可以实现你在Manjaro中的触摸板有点按即点击功能。
启用Tap-to-click功能的方法 1、以下是在系统终端上启用触摸板(参考:在Deepin Linux 15.7系统中开启或关闭触摸板的方法)的语法: # xinput set-prop [device number] [option number] [setting] 2、要获取[device number]的值,请在终端上输入以下内容: # xinput list 你将获得类似于以下内容: Virtual core pointer id=2 [master pointer (3)] | ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] | ↳ SynPS/2 Synaptics TouchPad id=11 [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)] ↳ Power Button id=8 [slave keyboard (3)] ↳ HP Webcam-101: HP Webcam-101 id=9 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)] ↳ HP WMI hotkeys id=12 [slave keyboard (3)] 仔细观察,你将从输出中看到与Synaptics相关的内容,我的是“SynPS/2 Synaptics TouchPad”,它的id为11,因为它可以清楚地看到,这是[device number]值。 3、要获取设备的[option number]的值,请执行以下操作: # xinput list-props 11 以下是输出内容: Device 'SynPS/2 Synaptics TouchPad': Device Enabled (142): 1 Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 libinput Tapping Enabled (278): 0 libinput Tapping Enabled Default (279): 0 libinput Tapping Drag Enabled (280): 1 libinput Tapping Drag Enabled Default (281): 1 libinput Tapping Drag Lock Enabled (282): 0 libinput Tapping Drag Lock Enabled Default (283): 0 libinput Tapping Button Mapping Enabled (284): 1, 0 libinput Tapping Button Mapping Default (285): 1, 0 libinput Natural Scrolling Enabled (286): 0 libinput Natural Scrolling Enabled Default (287): 0 libinput Disable While Typing Enabled (288): 1 libinput Disable While Typing Enabled Default (289): 1 libinput Scroll Methods Available (290): 1, 1, 0 libinput Scroll Method Enabled (291): 1, 0, 0 libinput Scroll Method Enabled Default (292): 1, 0, 0 libinput Accel Speed (293): 0.000000 libinput Accel Speed Default (294): 0.000000 libinput Left Handed Enabled (295): 0 libinput Left Handed Enabled Default (296): 0 libinput Send Events Modes Available (263): 1, 1 libinput Send Events Mode Enabled (264): 0, 0 libinput Send Events Mode Enabled Default (265): 0, 0 Device Node (266): "/dev/input/event5" Device Product ID (267): 2, 7 libinput Drag Lock Buttons (297): libinput Horizontal Scroll Enabled (298): 1 查看输出并找到“Tapping enabled”选项,从上面的输出我们有“libinput Tapping Enabled (278): 0”。 4、从那里,我们得到[option number]的值和值分别为278和0,0是二进制值,表示它被禁用,检查是否已禁用或启用了Tapping选项,另一种方法是在终端上输入以下内容: # sudo libinput list-devices 你将获得一长串输出信息,为了本文的目的,我已经提取了与触摸板相关的部分: ---- Device: SynPS/2 Synaptics TouchPad Kernel: /dev/input/event5 Group: 8 Seat: seat0, default Size: 82x42mm Capabilities: pointer Tap-to-click: disabled Tap-and-drag: enabled Tap drag lock: disabled Left-handed: disabled Nat.scrolling: disabled Middle emulation: n/a Calibration: n/a Scroll methods: *two-finger edge Click methods: none Disable-w-typing: enabled Accel profiles: none Rotation: n/a ---- 从输出中,你可以看到Tap-to-click已禁用。 5、回到启用Tap-to-click功能,我们现在拥有启用它所需的所有变量。 执行以下操作以启用Tap-to-click: # xinput set-prop 11 278 1 说明: 11是设备号。 278是设备选项号和。 1是二进制“True”以启用Tap-to-click。 6、检查一下是否启用了该功能,请像以前一样在终端上输入以下命令: # xinput list-props 11 输出如下内容: Device 'SynPS/2 Synaptics TouchPad': Device Enabled (142): 1 Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 libinput Tapping Enabled (278): 1 libinput Tapping Enabled Default (279): 0 libinput Tapping Drag Enabled (280): 1 libinput Tapping Drag Enabled Default (281): 1 libinput Tapping Drag Lock Enabled (282): 0 libinput Tapping Drag Lock Enabled Default (283): 0 libinput Tapping Button Mapping Enabled (284): 1, 0 libinput Tapping Button Mapping Default (285): 1, 0 libinput Natural Scrolling Enabled (286): 0 libinput Natural Scrolling Enabled Default (287): 0 libinput Disable While Typing Enabled (288): 1 libinput Disable While Typing Enabled Default (289): 1 libinput Scroll Methods Available (290): 1, 1, 0 libinput Scroll Method Enabled (291): 1, 0, 0 libinput Scroll Method Enabled Default (292): 1, 0, 0 libinput Accel Speed (293): 0.000000 libinput Accel Speed Default (294): 0.000000 libinput Left Handed Enabled (295): 0 libinput Left Handed Enabled Default (296): 0 libinput Send Events Modes Available (263): 1, 1 libinput Send Events Mode Enabled (264): 0, 0 libinput Send Events Mode Enabled Default (265): 0, 0 Device Node (266): "/dev/input/event5" Device Product ID (267): 2, 7 libinput Drag Lock Buttons (297): libinput Horizontal Scroll Enabled (298): 1 说明:从输出中,“libinput Tapping Enabled (278): 1”声明启用了Tap-to-click。
相关主题 |