我设置了一个简单的脚本来向左或向右旋转屏幕(使用 xrandr),并且它还可以旋转笔记本电脑上的触摸板。这样,物理旋转笔记本电脑就可以让触摸板直观地工作。例如:
#rotate left
xrandr --output left
xinput set-prop "$TOUCHPAD" "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
但是,使用此命令无法正确旋转两指滚动手势。对于左旋转,我希望能够左右移动两根手指来控制垂直滚动,同样上下移动来控制水平滚动。
我是否需要通过 xinput 更改某个属性来改变两根手指滚动的方向?
以下是我的触摸板当前所有属性的列表:
Device 'AlpsPS/2 ALPS GlidePoint':
Device Enabled (138): 1
Coordinate Transformation Matrix (140): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (262): 1
Device Accel Constant Deceleration (263): 2.500000
Device Accel Adaptive Deceleration (264): 1.000000
Device Accel Velocity Scaling (265): 12.500000
Synaptics Edges (290): 614, 3481, 307, 1740
Synaptics Finger (291): 25, 30, 0
Synaptics Tap Time (292): 180
Synaptics Tap Move (293): 201
Synaptics Tap Durations (294): 180, 100, 100
Synaptics ClickPad (295): 0
Synaptics Middle Button Timeout (296): 75
Synaptics Two-Finger Pressure (297): 282
Synaptics Two-Finger Width (298): 7
Synaptics Scrolling Distance (299): -91, -91
Synaptics Edge Scrolling (300): 0, 0, 0
Synaptics Two-Finger Scrolling (301): 1, 1
Synaptics Move Speed (302): 1.000000, 1.750000, 0.043687, 0.000000
Synaptics Off (303): 2
Synaptics Locked Drags (304): 0
Synaptics Locked Drags Timeout (305): 5000
Synaptics Tap Action (306): 2, 3, 0, 0, 1, 3, 2
Synaptics Click Action (307): 1, 3, 2
Synaptics Circular Scrolling (308): 0
Synaptics Circular Scrolling Distance (309): 0.100000
Synaptics Circular Scrolling Trigger (310): 0
Synaptics Circular Pad (311): 0
Synaptics Palm Detection (312): 0
Synaptics Palm Dimensions (313): 10, 200
Synaptics Coasting Speed (314): 20.000000, 50.000000
Synaptics Pressure Motion (315): 30, 160
Synaptics Pressure Motion Factor (316): 1.000000, 1.000000
Synaptics Resolution Detect (317): 1
Synaptics Grab Event Device (318): 0
Synaptics Gestures (319): 1
Synaptics Capabilities (320): 1, 1, 1, 1, 1, 0, 0
Synaptics Pad Resolution (321): 38, 40
Synaptics Area (322): 0, 0, 0, 0
Synaptics Noise Cancellation (323): 22, 22
Device Product ID (256): 2, 8
Device Node (257): "/dev/input/event6"