swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.65k stars 1.11k forks source link

relative mode does nothing for Wacom Intous tablet #7661

Open iamkarlson opened 1 year ago

iamkarlson commented 1 year ago

According to docs, this code should turn on relative mode for wacom tablet:

 swaymsg input "1386:889:Wacom_Intuos_BT_M_Pen" tool_mode pen relative

this is a responsible code for the function: https://github.com/swaywm/sway/blob/master/sway/commands/input.c#L35

However, tool mode doesn't change, it's still acting in absolute values e.g. when I pointing pen to top left corner - mouse cursor jumps to the top left part of the screen, if I over the air move pen to the bottom right corner - it jumps to bottom right corner. Using relative mode, I would expect cursor to remain at almost the same position, and move it by delta of positions of the pen when it in close proximity to the pad. It's also described in libinput docs: https://wayland.freedesktop.org/libinput/doc/latest/tablet-support.html

jaklec commented 11 months ago

I'm also struggling with this ThinkPad Z13 Gen 1 Kernel: 6.6.2-arch1-1 swaymsg input "1386:21220:Wacom_HID_52E4_Pen" tool_mode "*" relative

sanjeevprasad commented 10 months ago

Try this in your config file. It is now working for me. Dont forget to replace the device identifier with yours.

input "1386:890:Wacom_One_by_Wacom_S_Pen" {
    tool_mode pen relative
}
mredlek commented 8 months ago

I think this is related to applying the changes. I can use the following workaround:

Now the changes are applied.