在触控板上的鼠标中键仿真,如何设置?


10

我刚刚更新到Ubuntu 11.10,并且正在使用Unity。从更新开始,我不能再在触控板上使用“中间点击”。在Firefox中进行标签浏览已成为一种痛苦:(

因为我几乎从不使用右键单击,所以我经常将“三指点击”中键和“两指点击”中键互换。我是通过鼠标配置完成此操作的,但现在找不到。

我在哪里可以设置?

更糟的是,三指点击不执行任何操作,因此自更新以来根本无法点击中间键。

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

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


Answers:


4

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

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

您必须在每次恢复后运行该命令。要在恢复后保留您的突触配置,可以按照以下步骤操作(来自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).

您能解释一下命令'xinput set-int-prop NN 266 8 2 3 0 0 1 2 3'吗?
2012年

6

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)

2在终端中使用以下命令将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

终端上的第三个也是最后一个命令(将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.

我是Ubuntu的新手,刚下载了12.04,并且真的想更改触摸板设置。因此,在终端输入后:xinput set-int-prop 13 291 8 2 3 0 0 1 2 3那又是什么呢?重新启动后如何使它保持打开状态?干杯
MrMule 2012年

这个答案更好。我还想补充一点,可以在x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html#toc4
lpanebr
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.