Skip to content

Wrong mapping of drawing tablet area to output #3555

@mora-unie-youer

Description

@mora-unie-youer

When I enable drawing tablet mapping to specific output, it doesn't work correctly: not full area of tablet is used (whole X-axis is used, but only about 10% of Y-axis is used (around top area)).

If I use tablet without mapping to specific output, it behaves as it should: whole X-axis and Y-axis are used.

As I experimented - logical position of monitors doesn't change anything. I tried multiple output setups:

  1. My default setup (in Config section)
  2. Three outputs were set to FullHD, so they would be next one to each other.
  3. Only one monitor was enabled

Also, if I use OpenTabletDriver (without output mapping, of course), everything works fine. Unfortunately, I can't use OTD when my tablet is connected over Bluetooth, so that's not the solution for me.

Config
input {
  tablet {
    // off
    map-to-output "Beihai Century Joint Innovation Technology Co.,Ltd P275MV PLUS 0000000000000"
    // left-handed
    // calibration-matrix 1.0 0.0 0.0 0.0 1.0 0.0
  }
}

output "LG Electronics 22MP55 411NDUNAL262" {
  mode "1920x1080@60"
  scale 1.0
  transform "normal"
  position x=0 y=360
}

output "Beihai Century Joint Innovation Technology Co.,Ltd P275MV PLUS 0000000000000" {
  focus-at-startup
  mode "3840x2160@160"
  variable-refresh-rate
  scale 1.5 // 2560x1440
  transform "normal"
  position x=1920 y=0
}

output "Acer Technologies Acer H236HL LX1EE0064200" {
  mode "1920x1080@60"
  scale 1.0
  transform "normal"
  position x=4480 y=360
}

Also, I thought it would be useful to give you libinput debug-events of area of my tablet (I pressed in top-left corner and in the bottom-right).

`libinput debug-events`
 event266  TABLET_TOOL_PROXIMITY        +0.000s         0.00*/5.50*     tilt: -14.11*/0.50*     pressure: 0.00* pen      (0, id 0) proximity-in axes:pt btn:S
 event266  TABLET_TOOL_PROXIMITY        +0.050s         0.00 /5.50      tilt: -14.11 /0.50      pressure: 0.00  pen      (0, id 0) proximity-out
 event266  TABLET_TOOL_PROXIMITY        +0.263s         0.00*/7.32*     tilt: -14.11*/0.50*     pressure: 0.00* pen      (0, id 0) proximity-in axes:pt btn:S
 event266  TABLET_TOOL_TIP              +0.270s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.05* down
 event266  TABLET_TOOL_AXIS             +0.277s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.07*
 event266  TABLET_TOOL_AXIS          2  +0.277s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.12*
 event266  TABLET_TOOL_AXIS          3  +0.285s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.16*
 event266  TABLET_TOOL_AXIS          4  +0.292s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.20*
 event266  TABLET_TOOL_AXIS          5  +0.292s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.24*
 event266  TABLET_TOOL_AXIS          6  +0.300s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.27*
 event266  TABLET_TOOL_AXIS          7  +0.307s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.29*
 event266  TABLET_TOOL_AXIS          8  +0.307s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.31*
 event266  TABLET_TOOL_AXIS          9  +0.310s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.33*
 event266  TABLET_TOOL_AXIS         10  +0.316s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.34*
 event266  TABLET_TOOL_AXIS         11  +0.322s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.36*
 event266  TABLET_TOOL_AXIS         12  +0.330s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.37*
 event266  TABLET_TOOL_AXIS         13  +0.338s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.38*
 event266  TABLET_TOOL_AXIS         14  +0.338s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.40*
 event266  TABLET_TOOL_AXIS         15  +0.338s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.41*
 event266  TABLET_TOOL_AXIS         16  +0.346s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.42*
 event266  TABLET_TOOL_AXIS         17  +0.353s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.43*
 event266  TABLET_TOOL_AXIS         18  +0.353s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.45*
 event266  TABLET_TOOL_AXIS         19  +0.361s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.46*
 event266  TABLET_TOOL_AXIS         20  +0.368s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.47*
 event266  TABLET_TOOL_AXIS         21  +0.368s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.48*
 event266  TABLET_TOOL_AXIS         22  +0.376s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.49*
 event266  TABLET_TOOL_AXIS         23  +0.382s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.50*
 event266  TABLET_TOOL_AXIS         24  +0.382s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.50*
 event266  TABLET_TOOL_AXIS         25  +0.390s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.51*
 event266  TABLET_TOOL_AXIS         26  +0.397s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.51*
 event266  TABLET_TOOL_AXIS         27  +0.397s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.51*
 event266  TABLET_TOOL_AXIS         28  +0.405s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.52*
 event266  TABLET_TOOL_AXIS         29  +0.412s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.52*
 event266  TABLET_TOOL_AXIS         30  +0.412s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.52*
 event266  TABLET_TOOL_AXIS         31  +0.420s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.52*
 event266  TABLET_TOOL_AXIS         32  +0.427s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.51*
 event266  TABLET_TOOL_AXIS         33  +0.427s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.51*
 event266  TABLET_TOOL_AXIS         34  +0.435s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.50*
 event266  TABLET_TOOL_AXIS         35  +0.442s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.49*
 event266  TABLET_TOOL_AXIS         36  +0.442s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.47*
 event266  TABLET_TOOL_AXIS         37  +0.450s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.45*
 event266  TABLET_TOOL_AXIS         38  +0.457s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.41*
 event266  TABLET_TOOL_AXIS         39  +0.457s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.33*
 event266  TABLET_TOOL_AXIS         40  +0.465s         0.00 /7.32      tilt: -14.11 /0.50      pressure: 0.27*
 event266  TABLET_TOOL_AXIS         41  +0.472s         0.00 /7.21*     tilt: -14.11 /0.50      pressure: 0.16*
 event266  TABLET_TOOL_TIP              +0.472s         0.00 /6.89*     tilt: -14.11 /0.50      pressure: 0.00* up
 event266  TABLET_TOOL_AXIS             +0.480s         0.00 /6.89      tilt: -14.11 /0.50      pressure: 0.00*
 event266  TABLET_TOOL_PROXIMITY        +0.530s         0.00 /6.89      tilt: -14.11 /0.50      pressure: 0.00  pen      (0, id 0) proximity-out
 event266  TABLET_TOOL_PROXIMITY        +0.577s         0.00*/1163.36*  tilt: 0.00*/0.00*       pressure: 0.00* pen      (0, id 0) proximity-in axes:pt btn:S
 event266  TABLET_TOOL_AXIS             +4.507s         67.69*/1165.07* tilt: -3.53*/0.13*      pressure: 0.00
 event266  TABLET_TOOL_TIP              +4.755s         270.80*/1170.25*        tilt: -14.11 /0.50      pressure: 0.05* down
 event266  TABLET_TOOL_AXIS             +4.762s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.07*
 event266  TABLET_TOOL_AXIS          2  +4.762s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.11*
 event266  TABLET_TOOL_AXIS          3  +4.770s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.14*
 event266  TABLET_TOOL_AXIS          4  +4.777s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.18*
 event266  TABLET_TOOL_AXIS          5  +4.777s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.20*
 event266  TABLET_TOOL_AXIS          6  +4.785s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.23*
 event266  TABLET_TOOL_AXIS          7  +4.792s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.25*
 event266  TABLET_TOOL_AXIS          8  +4.792s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.28*
 event266  TABLET_TOOL_AXIS          9  +4.801s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.30*
 event266  TABLET_TOOL_AXIS         10  +4.807s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.32*
 event266  TABLET_TOOL_AXIS         11  +4.807s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.34*
 event266  TABLET_TOOL_AXIS         12  +4.815s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.36*
 event266  TABLET_TOOL_AXIS         13  +4.822s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.37*
 event266  TABLET_TOOL_AXIS         14  +4.822s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.39*
 event266  TABLET_TOOL_AXIS         15  +4.831s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.40*
 event266  TABLET_TOOL_AXIS         16  +4.837s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.41*
 event266  TABLET_TOOL_AXIS         17  +4.837s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.42*
 event266  TABLET_TOOL_AXIS         18  +4.839s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.43*
 event266  TABLET_TOOL_AXIS         19  +4.845s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.44*
 event266  TABLET_TOOL_AXIS         20  +4.852s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.44*
 event266  TABLET_TOOL_AXIS         21  +4.860s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.45*
 event266  TABLET_TOOL_AXIS         22  +4.867s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.46*
 event266  TABLET_TOOL_AXIS         23  +4.867s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.46*
 event266  TABLET_TOOL_AXIS         24  +4.869s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.46*
 event266  TABLET_TOOL_AXIS         25  +4.875s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.47*
 event266  TABLET_TOOL_AXIS         26  +4.882s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.47*
 event266  TABLET_TOOL_AXIS         27  +4.882s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.47*
 event266  TABLET_TOOL_AXIS         28  +4.890s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.48*
 event266  TABLET_TOOL_AXIS         29  +4.897s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.48*
 event266  TABLET_TOOL_AXIS         30  +4.897s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.48*
 event266  TABLET_TOOL_AXIS         31  +4.906s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.48*
 event266  TABLET_TOOL_AXIS         32  +4.912s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.49*
 event266  TABLET_TOOL_AXIS         33  +4.912s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.49*
 event266  TABLET_TOOL_AXIS         34  +4.920s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.49*
 event266  TABLET_TOOL_AXIS         35  +4.927s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.49*
 event266  TABLET_TOOL_AXIS         36  +4.927s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.49*
 event266  TABLET_TOOL_AXIS         37  +4.936s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.49*
 event266  TABLET_TOOL_AXIS         38  +4.942s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.48*
 event266  TABLET_TOOL_AXIS         39  +4.942s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.47*
 event266  TABLET_TOOL_AXIS         40  +4.951s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.44*
 event266  TABLET_TOOL_AXIS         41  +4.957s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.41*
 event266  TABLET_TOOL_AXIS         42  +4.957s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.35*
 event266  TABLET_TOOL_AXIS         43  +4.966s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.28*
 event266  TABLET_TOOL_AXIS         44  +4.972s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.23*
 event266  TABLET_TOOL_AXIS         45  +4.972s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.14*
 event266  TABLET_TOOL_TIP              +4.981s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.00* up
 event266  TABLET_TOOL_AXIS             +4.987s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.00*
 event266  TABLET_TOOL_PROXIMITY        +5.062s         270.80 /1170.25         tilt: -14.11 /0.50      pressure: 0.00  pen      (0, id 0) proximity-out
 event266  TABLET_TOOL_PROXIMITY        +5.062s         270.80*/0.00*   tilt: 0.00*/0.00*       pressure: 0.00* pen      (0, id 0) proximity-in axes:pt btn:S

System Information

  • niri version: niri 25.11 (v25.11-119-ge708f546)
  • Distro: Arch Linux
  • GPU: AMD RX 5700XT + Intel Arc A380
  • CPU: AMD Ryzen 7 5700G

  • Drawing tablet: XP-Pen Deco Pro XLW (Gen 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:inputKeyboard, mouse, touchpad, tablet, gestures, pointer

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions