iovxw

Linux下Wacom数位板相对定位画笔移动速度的设置

折腾

新买的Wacom CTL680,因为折腾驱动还换了几遍linux内核

具体驱动折腾过程就不说了,旧版内核害死人啊。

好不容易弄好驱动和数位板设置成相对定位模式之后(实在不习惯绝对定位)

发现xsetwacom貌似没有提供设置画笔移动速度的选项?

又是各种查资料

找到了如下设置办法:


首先找到画笔的ID

xsetwacom --list

Wacom Intuos P M Pen stylus             id: 17        type: STYLUS    
Wacom Intuos P M Pen eraser             id: 18        type: ERASER    
Wacom Intuos P M Pad pad                id: 19        type: PAD  

我这里的ID是17

然后xinput watch-props 17

输出:

Device 'Wacom Intuos P M Pen stylus':
        Device Enabled (137):        1
        Coordinate Transformation Matrix (139):        1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        Device Accel Profile (261):        0
        Device Accel Constant Deceleration (262):        1.000000
        Device Accel Adaptive Deceleration (263):        1.000000
        Device Accel Velocity Scaling (264):        10.000000
        Device Node (257):        "/dev/input/event15"
        Wacom Tablet Area (637):        0, 0, 21600, 13500
        Wacom Rotation (638):        0
        Wacom Pressurecurve (639):        0, 0, 100, 100
        Wacom Serial IDs (611):        803, 1, 0, 0, 0
        Wacom Serial ID binding (612):        0
        Wacom Pressure Threshold (613):        27
        Wacom Sample and Suppress (614):        4, 4
        Wacom Enable Touch (615):        0
        Wacom Hover Click (640):        1
        Wacom Enable Touch Gesture (616):        0
        Wacom Touch Gesture Parameters (617):        0, 0, 250
        Wacom Tool Type (399):        "STYLUS" (395)
        Wacom Button Actions (618):        "Wacom button action 0" (619), "Wacom button action 1" (620), "Wacom button action 2" (621)
        Wacom button action 0 (619):        1572865
        Wacom button action 1 (620):        1572866
        Wacom button action 2 (621):        1572867
        Device Product ID (256):        1386, 803
        Wacom Debug Levels (636):        0, 0

找到我们要设置的Device Accel Constant Deceleration后面括号里的数字

xinput set-prop 17 262 2.5

就搞定啦

后面的值(就是那个2.5)设置的越大笔移动速度就越慢