在触控板上点击鼠标中键,我该怎么设置它?

我刚刚更新到Ubuntu 11.10并且我正在使用Unity。 自更新以来,我不能再使用Track Pad的“中间点击”。 Firefox中的标签浏览已经变得很痛苦:(

我曾经交换了“三指点击”中间点击和“双指点按”右键点击,因为我几乎从不使用右键点击。 这是通过我猜的鼠标配置完成的,但我现在找不到它。

我在哪里可以设置这个?

更糟糕的是,三指点击没有任何作用,因此自更新以来根本无法进行中间点击。

我怎样才能解决这个问题?

我知道我可以删除安装(我有一个单独的主分区)并安装旧版本,但我想使用实际的软件和最近的Unity,如果可能的话。

要修复中间单击,您可以使用以下命令:

xinput set-int-prop NN 266 8 2 3 0 0 1 2 3

其中NN是鼠标垫设备的id,您可以使用命令xinput list查看它。 266是属性“Synaptics Tap Action”的id,你可以用xinput list-props NN看到它。 例:

xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 8, 9, 0, 0, 1, 2, 3 

您必须在每次简历后运行该命令。 要在恢复后保留您的synaptics配置,您可以按照以下步骤操作(从wiki.archlinux.org):

Gnome设置守护程序可能会覆盖任何图形配置实用程序中没有等效项的现有设置(例如,在xorg.conf.d中设置的设置)。 可以阻止gnome触摸鼠标设置:

 1. Run dconf-editor 2. Edit /org/gnome/settings-daemon/plugins/mouse/ 3. Uncheck the active setting It will now respect your system's existing synaptics configuration. 

它在Ubuntu 11.10上对我有用,现在我有:

 Two-finger scrolling. Middle Click with two fingers tap. Right Click (tap at bottom right of scroll area). 

leoperbo的答案对我来说对Ubuntu 12.04起作用,但是我不得不在leoperbo建议的命令中更改266号码。 如果不仔细查找3位数字,则不应使用此命令

 xinput set-int-prop NN 266 8 2 3 0 0 1 2 3 

另一个命令应该没有问题(设置的数字没有意义,因此我改变了它们)

 xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 2, 3, 0, 0, 1, 2, 3 

以防万一我写了以下指南,为你的触摸板找到你的NN和266。 最后,我还解释了您设置的值,以便您可以选择最佳设置。 你也应该阅读leoperbo的答案来永久地设置它

1在终端中使用以下命令

 xinput list 

你会得到这样的东西

 ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ ETPS/2 Elantech Touchpad 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)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ 1.3M WebCam id=10 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)] ↳ Acer WMI hotkeys id=12 [slave keyboard (3)] 

我们需要的是触摸板的id(在我的例子中是13)

第二步在终端中使用以下命令将XX替换为您在上面找到的ID号

 xinput list-props XX 

你会得到这样的东西

 Device 'ETPS/2 Elantech Touchpad': Device Enabled (144): 1 Coordinate Transformation Matrix (146): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Accel Profile (269): 1 Device Accel Constant Deceleration (270): 2.500000 Device Accel Adaptive Deceleration (271): 1.000000 Device Accel Velocity Scaling (272): 12.500000 Synaptics Edges (273): 56, 1352, 34, 606 Synaptics Finger (274): 1, 1, 256 Synaptics Tap Time (275): 180 Synaptics Tap Move (276): 68 Synaptics Tap Durations (277): 180, 180, 100 Synaptics ClickPad (278): 0 Synaptics Tap FastTap (279): 1 Synaptics Middle Button Timeout (280): 75 Synaptics Two-Finger Pressure (281): 282 Synaptics Two-Finger Width (282): 7 Synaptics Scrolling Distance (283): 30, 30 Synaptics Edge Scrolling (284): 0, 0, 0 Synaptics Two-Finger Scrolling (285): 1, 0 Synaptics Move Speed (286): 1.000000, 1.750000, 0.129366, 40.000000 Synaptics Edge Motion Pressure (287): 30, 160 Synaptics Edge Motion Speed (288): 1, 123 Synaptics Edge Motion Always (289): 0 Synaptics Off (290): 2 Synaptics Locked Drags (291): 0 Synaptics Locked Drags Timeout (292): 5000 Synaptics Tap Action (293): 2, 3, 0, 0, 1, 3, 0 Synaptics Click Action (294): 1, 1, 0 Synaptics Circular Scrolling (295): 0 Synaptics Circular Scrolling Distance (296): 0.100000 Synaptics Circular Scrolling Trigger (297): 0 Synaptics Circular Pad (298): 0 Synaptics Palm Detection (299): 0 Synaptics Palm Dimensions (300): 10, 200 Synaptics Coasting Speed (301): 20.000000, 50.000000 Synaptics Pressure Motion (302): ... of unknown type CARDINAL Synaptics Pressure Motion Factor (303): 1.000000, 1.000000 Synaptics Resolution Detect (304): 1 Synaptics Grab Event Device (305): 1 Synaptics Gestures (306): 1 Synaptics Capabilities (307): 1, 0, 1, 1, 1, 1, 1 Synaptics Pad Resolution (308): 1, 1 Synaptics Area (309): 0, 0, 0, 0 Synaptics Noise Cancellation (310): 7, 7 Device Product ID (263): 2, 14 Device Node (264): "/dev/input/event11" 

我们上面需要找到的就是这一行

  Synaptics Tap Action (293): 2, 3, 0, 0, 1, 3, 0 

并记下()中的数字,在我的情况下是293

终端的第3个也是最后一个命令(将XX替换成id,将YYY替换为()里面的数字,我的笔记本电脑的数字是XX = 13,YYY = 293)

 xinput set-int-prop XX YYY 8 2 3 0 0 1 2 3 

值2 3 0 0 1 2 3按正确顺序进行以下设置0 =禁用1 =左键单击2 =中间3 =右侧

 Option "RTCornerButton" Which mouse button is reported on a right top corner tap. Option "RBCornerButton" Which mouse button is reported on a right bottom corner tap. Option "LTCornerButton" Which mouse button is reported on a left top corner tap. Option "LBCornerButton" Which mouse button is reported on a left bottom corner tap. Option "TapButton1" Which mouse button is reported on a non-corner one-finger tap. Option "TapButton2" Which mouse button is reported on a non-corner two-finger tap. Option "TapButton3" Which mouse button is reported on a non-corner three-finger tap.