如何设置触控板多指轻敲function?

我正在尝试按以下方式设置我的多指点击:

  • 单指 – 左键单击
  • 两根手指 – 中间点击
  • 三根手指 – 右键单击

我现在拥有的是:

  • 单指 – 左键单击
  • 两根手指 – 右键单击
  • 三根手指 – 没有

我在Ask Ubuntu上查了几个问题,以及关于这个主题的Ubuntu wiki(以及一些一般的谷歌搜索),但找不到任何可以帮助我的东西。 我知道xinput ,但我不知道该改变什么以及如何改变。

如果有人能够指出我正确的方向,我将不胜感激并给予他25个shiny的代表点,一个大的绿色刻度线和一些cookies。

这可以使用synclient完成。

要按会话执行此操作(并测试它在您的系统上是否正常工作),请在终端中键入以下命令:

 synclient "TapButton2"=2 synclient "TapButton3"=3 

TapButtonx选项的TapButtonx是“用x个手指敲击,不在角落里”,而后面的数字1,2和3分别对应左,中,右点击。

要使这些更改成为永久更改,请导航到/usr/share/X11/xorg.conf.dls在名称中找到带有“synaptics.conf”的文件(在我的例子中是50-synaptics.conf )。 然后, sudo gedit 50-synaptics.conf ,并将以下行添加到第一个InputClass部分的末尾:

 Option "TapButton2" "2" Option "TapButton3" "3" 

然后重启你的机器,你应该好好去。

如果编辑50-synaptics.conf文件不起作用,请执行以下操作:打开dconf-editor并导航到org/gnome/settings-daemon/plugins/mouse 。 取消选中标记为“活动”的复选框,然后重新启动。 这将允许突触设置优先。

这是我们需要做的:

  1. 首先,我们收集触控板/鼠标垫的ID。

     $ xinput --list Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ PS/2 Generic Mouse id=10 [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)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=9 [slave keyboard (3)] ↳ HP WMI hotkeys id=12 [slave keyboard (3)] 
  2. 现在突出显示的是我的设备ID,在我的情况下11

  3. 列出属性,从而根据ID配置属性

     $ xinput --list-props 11 Device 'SynPS/2 Synaptics TouchPad': Device Enabled (132): 1 Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Accel Profile (253): 1 Device Accel Constant Deceleration (254): 2.500000 Device Accel Adaptive Deceleration (255): 1.000000 Device Accel Velocity Scaling (256): 12.500000 Synaptics Edges (276): 1769, 5431, 1653, 4671 Synaptics Finger (277): 25, 30, 256 Synaptics Tap Time (278): 180 Synaptics Tap Move (279): 242 Synaptics Tap Durations (280): 180, 180, 100 Synaptics ClickPad (281): 0 Synaptics Tap FastTap (282): 0 Synaptics Middle Button Timeout (283): 75 Synaptics Two-Finger Pressure (284): 282 Synaptics Two-Finger Width (285): 7 Synaptics Scrolling Distance (286): 110, 110 Synaptics Edge Scrolling (287): 1, 0, 0 Synaptics Two-Finger Scrolling (288): 0, 0 Synaptics Move Speed (289): 1.000000, 1.750000, 0.036265, 40.000000 Synaptics Edge Motion Pressure (290): 30, 160 Synaptics Edge Motion Speed (291): 1, 441 Synaptics Edge Motion Always (292): 0 Synaptics Off (293): 0 Synaptics Locked Drags (294): 0 Synaptics Locked Drags Timeout (295): 5000 Synaptics Tap Action (296): 2, 3, 0, 0, 1, 3, 0 Synaptics Click Action (297): 1, 1, 0 Synaptics Circular Scrolling (298): 0 Synaptics Circular Scrolling Distance (299): 0.100000 Synaptics Circular Scrolling Trigger (300): 0 Synaptics Circular Pad (301): 0 Synaptics Palm Detection (302): 0 Synaptics Palm Dimensions (303): 10, 200 Synaptics Coasting Speed (304): 20.000000, 50.000000 Synaptics Pressure Motion (305): ... of unknown type CARDINAL Synaptics Pressure Motion Factor (306): 1.000000, 1.000000 Synaptics Resolution Detect (307): 1 Synaptics Grab Event Device (308): 1 Synaptics Gestures (309): 1 Synaptics Capabilities (310): 1, 0, 1, 1, 1, 1, 1 Synaptics Pad Resolution (311): 85, 45 Synaptics Area (312): 0, 0, 0, 0 Synaptics Noise Cancellation (313): 8, 8 Device Product ID (249): 2, 7 Device Node (250): "/dev/input/event8" 
  4. 现在找到要点,在这种情况下是285,288。使用命令,您可以在触摸板上配置相同的命令。

     $xinput set-int-prop  
  5. 希望这可以帮助