OpenTabletDriver / OpenTabletDriver

Open source, cross-platform, user-mode tablet driver
https://opentabletdriver.net/
GNU Lesser General Public License v3.0
2.75k stars 343 forks source link

Add support for Wacom HID 52FA #2949

Open asluizh opened 1 year ago

asluizh commented 1 year ago

Manufacturer

Wacom

Product Name

HID 52FA

Device Width

286

Device Height

179

Pressure Levels

No response

Lines per Inch (LPI)

No response

Additional Information

This is the device integrated into the Lenovo Yoga 6. Here's the output of libinput list-devices:

Device:           Wacom HID 52FA Pen
Kernel:           /dev/input/event5
Group:            6
Seat:             seat0, default
Size:             286x179mm
Capabilities:     tablet 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   none
Rotation:         n/a

Device:           Wacom HID 52FA Finger
Kernel:           /dev/input/event6
Group:            6
Seat:             seat0, default
Size:             286x179mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

evtest event5 (pen):

Input device ID: bus 0x18 vendor 0x56a product 0x52fa version 0x100
Input device name: "Wacom HID 52FA Pen"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 320 (BTN_TOOL_PEN)
    Event code 321 (BTN_TOOL_RUBBER)
    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      0
      Min        0
      Max    28604
      Fuzz       4
      Resolution     100
    Event code 1 (ABS_Y)
      Value      0
      Min        0
      Max    17878
      Fuzz       4
      Resolution     100
    Event code 24 (ABS_PRESSURE)
      Value      0
      Min        0
      Max     4095
    Event code 26 (ABS_TILT_X)
      Value      0
      Min    -9000
      Max     9000
      Resolution    5730
    Event code 27 (ABS_TILT_Y)
      Value      0
      Min    -9000
      Max     9000
      Resolution    5730
    Event code 40 (ABS_MISC)
      Value      0
      Min        0
      Max      255
  Event type 4 (EV_MSC)
    Event code 0 (MSC_SERIAL)
    Event code 5 (MSC_TIMESTAMP)

evtest event 6 (touch):

Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x56a product 0x52fa version 0x100
Input device name: "Wacom HID 52FA Finger"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 330 (BTN_TOUCH)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value   9676
      Min        0
      Max    11440
      Resolution      40
    Event code 1 (ABS_Y)
      Value   7151
      Min        0
      Max     7152
      Resolution      40
    Event code 47 (ABS_MT_SLOT)
      Value      0
      Min        0
      Max        9
    Event code 53 (ABS_MT_POSITION_X)
      Value      0
      Min        0
      Max    11440
      Resolution      40
    Event code 54 (ABS_MT_POSITION_Y)
      Value      0
      Min        0
      Max     7152
      Resolution      40
    Event code 57 (ABS_MT_TRACKING_ID)
      Value      0
      Min        0
      Max    65535
  Event type 4 (EV_MSC)
    Event code 5 (MSC_TIMESTAMP)
Properties:
  Property type 1 (INPUT_PROP_DIRECT)

Diagnostic Information

diag.txt

Acknowledgements

jamesbt365 commented 1 year ago

If I remember correctly somebody tried parsing the data from one of these a while ago, but has yet to open a pull request. Until a pull request has been opened I am not personally putting any effort to create a configuration for this tablet.

gonX commented 1 year ago

The linked diagnostics does not have any HID devices in it. According to the PR adding support for it in libwacom, the pen is I2C and not USB, which means that this relies on #1205