libinput TabletToolAreaRatio pins cursor to 0,0

Peter Hutterer peter.hutterer at who-t.net
Mon Nov 4 21:17:37 UTC 2024


Hi Edmund,

Please file a bug against the xorg libinput driver here:
https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/ 

This feature is implemented in that driver so any bug will be in that
code. Description is good enough, you can copy/paste that in there but
it'll be easier to handle than over email. 

Best to attach a `libinput record` output for a sequence too, that'll
make it immediately possible to reproduce as if I had your tablet.

Thanks.

Cheers,
  Peter


On Mon, Nov 04, 2024 at 03:25:13PM +0000, Edmund Raile wrote:
> Hello Mr. Hutterer,
> 
> you added the TabletToolAreaRatio option into libinput back in 2017:
> https://lists.freedesktop.org/archives/xorg-devel/2017-January/052266.html
> 
> I've tried to use it on arch but hit a bug: when I set it, I can not
> use the tablet to move the cursor from the top-left corner any more.
> I can use a mouse to move the cursor but as soon as the pen gets close
> to the tablet, the cursor snaps back into the top-left corner.
> 
> My /usr/share/X11/xorg.conf.d/40-libinput.conf has the default tablet
> section:
> ```
> Section "InputClass"
>         Identifier "libinput tablet catchall"
>         MatchIsTablet "on"
>         MatchDevicePath "/dev/input/event*"
>         Driver "libinput"
> EndSection
> ```
> 
> My tablet:
> libinput list-devices
> Device:           Wacom Intuos S Pen
> Kernel:           /dev/input/event10
> Group:            7
> Seat:             seat0, default
> Size:             152x95mm
> 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:      n/a
> Scroll methods:   none
> Click methods:    none
> Disable-w-typing: n/a
> Disable-w-trackpointing: n/a
> Accel profiles:   none
> Rotation:         n/a
> 
> I've created /usr/share/X11/xorg.conf.d/41-wacom.conf with the
> contents:
> ```
> Section "InputClass"
>         Identifier "libinput wacom intuos calibration"
>         MatchIsTablet "on"
>         MatchProduct "Wacom Intuos S Pen"
>         MatchDevicePath "/dev/input/event*"
>         Option "TabletToolAreaRatio" "5:4"
> EndSection
> ```
> 
> Where 5:4 is due to 2x 16:10 (1920x1200) vertical displays.
> Changing to the "proper" 20:16 ratio does not help.
> 
> I've run `libinput debug-events --device /dev/input/event10` and the
> values comming from the driver are still in the range of 0..152 and
> 0..95 but the cursor won't budge.
> 
> Is there anything you could do to help me?
> Maybe some commits after yours broke it again?
> 
> Kind regards,
> Edmund Raile.
> 
> 


More information about the xorg-devel mailing list