按下触控板的右侧时如何禁用右键单击?


10

我试图弄清楚如何在Ubuntu中禁用触控板的右侧。默认的行为是从右到右单击。但是,我希望在触摸板上的任何位置单击都可以单击,而用两根手指按下则可以像单击鼠标右键一样。

我也有一个索尼vaio T系列SVT13122CXS,正在运行12.10。

谢谢你的帮助。


只是想知道是否还有其他建议?
— BioGuy 2012年

编辑标题。我以为您在问如何在触控板的右侧进行触摸,而不是移动鼠标。
— user3113723 2015年

Answers:


12

这对我有用:http : //kernpanik.com/geekstuff/2015/01/12/disable-rightclick-synaptics.html

对我来说,这禁用了右侧单击区域,而没有禁用两个手指的“右键单击”。

本质上,运行以下命令:

synclient RightButtonAreaLeft=0
synclient RightButtonAreaTop=0

要保留,请在“启动应用程序”中添加执行此操作的脚本。


大!一个问题...您知道如何安装synclient吗?我目前正在使用Ubuntu GNOME。谢谢!
— BioGuy 2015年

WFM!谢谢!@bioguy,在Linux Mint 17.3上,它是xserver-xorg-input-synaptics-lts-vivid
— mrm

2

这就是我所做的:(13是我的突触设备所在的位置)-我将左,中和右设置为左键单击,但没有禁用滚动。

xinput设置按钮映射13 1 1 1 4 5 6 7 8 9


1
嗯....太近了。进行滚动操作,然后在触摸板上的任意位置单击或单击都相当于单击鼠标左键。但是,用两根手指触摸打击垫不再是右键单击。
— BioGuy 2014年

是的,此方法实际上将重新映射两个手指的单击和右击的鼠标。至少那件事发生在我身上。(我在下面添加了另一个解决方案)
— worldsayshi 2015年

0

首先运行命令

xinput

您将获得看起来像的输出

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Multi-Input Device                        id=13   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=16   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
....

触摸板是ID为16的设备。检查适用于您的情况的正确ID。

然后,运行命令

 xinput set-button-map 16 1 2 3 0 0 6 7 8 9

哪里

 16 is in my case the ID for the touchpad
 1 is the left click
 2 is the middle click
 3 is the right click
 0 we disable the scroll up (otherwise it would be 4)
 0 we disable the scroll down (otherwise it would be 5)
 6 ... we leave the rest as they are so we do not disable something important

现在,触摸板的右侧已禁用,并且不响应滚动。


嗯...好了,几乎可以用了。我仍然希望能够上下滚动。当我单击键盘右侧时,只需禁用右键单击即可。
— BioGuy 2012年

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.