压力灵敏度 Huion 220 GT Ubuntu 16.04

压力灵敏度 Huion 220 GT Ubuntu 16.04

触摸屏目前的工作原理就像鼠标一样。

输出evtest

Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x256c product 0x6e version 0x111
Input device name: "Tablet Monitor Pen"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 320 (BTN_TOOL_PEN)
    Event code 330 (BTN_TOUCH)
    Event code 331 (BTN_STYLUS)
    Event code 332 (BTN_STYLUS2)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value  24537
      Min        0
      Max    37540
      Resolution     157
    Event code 1 (ABS_Y)
      Value  17217
      Min        0
      Max    21120
      Resolution     157
    Event code 24 (ABS_PRESSURE)
      Value      0
      Min        0
      Max     2047
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Properties:

当我将笔推到屏幕时,压力显示在 0 到 2047 之间变化:

Event: time 1495431796.081707, -------------- SYN_REPORT ------------
Event: time 1495431796.085756, type 3 (EV_ABS), code 0 (ABS_X), value 19517
Event: time 1495431796.085756, type 3 (EV_ABS), code 1 (ABS_Y), value 17467
Event: time 1495431796.085756, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 399
Event: time 1495431796.085756, -------------- SYN_REPORT ------------
Event: time 1495431796.087752, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042
Event: time 1495431796.087752, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1495431796.087752, type 3 (EV_ABS), code 0 (ABS_X), value 19515
Event: time 1495431796.087752, type 3 (EV_ABS), code 1 (ABS_Y), value 17463
Event: time 1495431796.087752, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 1495431796.087752, -------------- SYN_REPORT ------------

但是,xinput test "Tablet Monitor Pen"仅显示motion a[0]=22722 a[1]=17156与屏幕上的 x 和 y 坐标相对应的轴的线条。

编辑:我发现了其他信息

当我将触控笔按到屏幕上时,xinput test寄存器的输出button press 1以及当我抬起触控笔时的输出button release 1。我之前没有看到过它们。

此外,xinput list "Tablet Monitor Pen"输出

Tablet Monitor Pen                          id=11   [slave  pointer  (2)]
    Reporting 4 classes:
        Class originated from: 11. Type: XIButtonClass
        Buttons supported: 7
        Button labels: "Button Unknown" "Button Unknown" "Button Unknown" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
        Button state:
        Class originated from: 11. Type: XIValuatorClass
        Detail for Valuator 0:
          Label: Abs X
          Range: 0.000000 - 37540.000000
          Resolution: 157000 units/m
          Mode: absolute
          Current value: 22722.000000
        Class originated from: 11. Type: XIValuatorClass
        Detail for Valuator 1:
          Label: Abs Y
          Range: 0.000000 - 21120.000000
          Resolution: 157000 units/m
          Mode: absolute
          Current value: 17156.000000
        Class originated from: 11. Type: XIValuatorClass
        Detail for Valuator 2:
          Label: Abs Pressure
          Range: 0.000000 - 2047.000000
          Resolution: 0 units/m
          Mode: absolute
          Current value: 0.000000

我注意到Resolution: 0 units/m上面的内容,这似乎可能相关?对 xinput 的东西不太了解。

答案1

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1675473,它可以在 17.04 上开箱即用。

相关内容