我想(暂时)禁用在键盘上打字时禁用触摸板点击的功能,以便能够玩需要通过鼠标和键盘同时进行交互的游戏,而不必使用物理外接鼠标。
换句话说,如何在同时按下键盘上的键的同时使用触摸板单击内容?
到目前为止,我在Ask Ask Ubuntu上可以找到的所有内容都是相反的,如何在键入时禁用触摸板。
一些系统信息,我正在运行Ubuntu 16.04,并将xinput
触摸板列出为
SYN1B7F:00 06CB:7406 Touchpad
更新:阅读ElementaryOS上的这篇文章后我尝试了什么。
首先,由xinput
和列出的属性synclient
:
$ xinput | grep Touchpad
⎜ ↳ SYN1B7F:00 06CB:7406 Touchpad id=11 [slave pointer (2)]
$ xinput list-props 11
Device 'SYN1B7F:00 06CB:7406 Touchpad':
Device Enabled (169): 1
Coordinate Transformation Matrix (171): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (294): 1
Device Accel Constant Deceleration (295): 2.500000
Device Accel Adaptive Deceleration (296): 1.000000
Device Accel Velocity Scaling (297): 12.500000
Synaptics Edges (298): 49, 1187, 48, 850
Synaptics Finger (299): 25, 30, 0
Synaptics Tap Time (300): 180
Synaptics Tap Move (301): 67
Synaptics Tap Durations (302): 180, 100, 100
Synaptics ClickPad (303): 1
Synaptics Middle Button Timeout (304): 0
Synaptics Two-Finger Pressure (305): 282
Synaptics Two-Finger Width (306): 7
Synaptics Scrolling Distance (307): 30, 30
Synaptics Edge Scrolling (308): 0, 0, 0
Synaptics Two-Finger Scrolling (309): 1, 1
Synaptics Move Speed (310): 1.000000, 1.750000, 0.130976, 0.000000
Synaptics Off (311): 2
Synaptics Locked Drags (312): 0
Synaptics Locked Drags Timeout (313): 5000
Synaptics Tap Action (314): 2, 3, 0, 0, 1, 3, 2
Synaptics Click Action (315): 1, 3, 0
Synaptics Circular Scrolling (316): 0
Synaptics Circular Scrolling Distance (317): 0.100000
Synaptics Circular Scrolling Trigger (318): 0
Synaptics Circular Pad (319): 0
Synaptics Palm Detection (320): 0
Synaptics Palm Dimensions (321): 10, 200
Synaptics Coasting Speed (322): 20.000000, 50.000000
Synaptics Pressure Motion (323): 30, 160
Synaptics Pressure Motion Factor (324): 1.000000, 1.000000
Synaptics Resolution Detect (325): 1
Synaptics Grab Event Device (326): 0
Synaptics Gestures (327): 1
Synaptics Capabilities (328): 1, 0, 0, 1, 1, 0, 0
Synaptics Pad Resolution (329): 12, 12
Synaptics Area (330): 0, 0, 0, 0
Synaptics Soft Button Areas (331): 618, 0, 736, 0, 0, 0, 0, 0
Synaptics Noise Cancellation (332): 7, 7
Device Product ID (289): 1739, 29702
Device Node (290): "/dev/input/event12"
$ synclient
Parameter settings:
LeftEdge = 49
RightEdge = 1187
TopEdge = 48
BottomEdge = 850
FingerLow = 25
FingerHigh = 30
MaxTapTime = 180
MaxTapMove = 67
MaxDoubleTapTime = 100
SingleTapTimeout = 180
ClickTime = 100
EmulateMidButtonTime = 0
EmulateTwoFingerMinZ = 282
EmulateTwoFingerMinW = 7
VertScrollDelta = 30
HorizScrollDelta = 30
VertEdgeScroll = 0
HorizEdgeScroll = 0
CornerCoasting = 0
VertTwoFingerScroll = 1
HorizTwoFingerScroll = 1
MinSpeed = 1
MaxSpeed = 1.75
AccelFactor = 0.130976
TouchpadOff = 2
LockedDrags = 0
LockedDragTimeout = 5000
RTCornerButton = 2
RBCornerButton = 3
LTCornerButton = 0
LBCornerButton = 0
TapButton1 = 1
TapButton2 = 3
TapButton3 = 2
ClickFinger1 = 1
ClickFinger2 = 3
ClickFinger3 = 0
CircularScrolling = 0
CircScrollDelta = 0.1
CircScrollTrigger = 0
CircularPad = 0
PalmDetect = 0
PalmMinWidth = 10
PalmMinZ = 200
CoastingSpeed = 20
CoastingFriction = 50
PressureMotionMinZ = 30
PressureMotionMaxZ = 160
PressureMotionMinFactor = 1
PressureMotionMaxFactor = 1
ResolutionDetect = 1
GrabEventDevice = 0
TapAndDragGesture = 1
AreaLeftEdge = 0
AreaRightEdge = 0
AreaTopEdge = 0
AreaBottomEdge = 0
HorizHysteresis = 7
VertHysteresis = 7
ClickPad = 1
RightButtonAreaLeft = 618
RightButtonAreaRight = 0
RightButtonAreaTop = 736
RightButtonAreaBottom = 0
MiddleButtonAreaLeft = 0
MiddleButtonAreaRight = 0
MiddleButtonAreaTop = 0
MiddleButtonAreaBottom = 0
所以从我已阅读,TouchpadOff
在synclient
和Synaptics Off (311)
中xinput
应该有趣的设置:0 =“始终启用”,1 =“总是禁用”,2 =“已禁用,而输入”
我尝试更改它(仅通过xinput
或仅通过synclient
,以及同时通过几次):
$ xinput set-prop 11 311 0
$ synclient TouchpadOff=0
但是,这些设置不是永久性的。设置后立即检查回该值,显示更改为0,如预期的那样:
$ xinput list-props 11 | grep Off
Synaptics Off (311): 0
$ synclient | grep TouchpadOff
TouchpadOff = 0
但是仅几秒钟后,这些值将自动重新重置为2:
$ xinput list-props 11 | grep Off
Synaptics Off (311): 2
$ synclient | grep TouchpadOff
TouchpadOff = 2
但是请注意,其他设置(如synclient TapButton3=2
)可用于中键单击,因此我可以启用3指点击来正常工作,并且不会重置。
我不知道这里发生了什么,为什么。请帮助我正确而持久地设置此配置,以便即使在键入时也能启用我的触摸板。
通过简单地取消syndaemon
进程,即使在键入时,我也可以始终为当前会话启用触摸板。这会自动将TouchpadOff=0
在synclient
太。
killall syndaemon
但是,这不会阻止syndaemon
下次重新启动(或登录?)时自动重新启动。
要在再次输入时禁用触摸板,因此可以重新启动或syndaemon
通过运行再次重新启动
syndaemon -i 1.0 -t -K -R -d
同样,这会自动处理TouchpadOff=2
设置synclient
本身。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句