sway icon indicating copy to clipboard operation
sway copied to clipboard

relative mode does nothing for Wacom Intous tablet

Open iamkarlson opened this issue 1 year ago • 3 comments

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

iamkarlson avatar Jul 05 '23 20:07 iamkarlson

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

jaklec avatar Nov 26 '23 21:11 jaklec

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
}

sanjeevprasad avatar Jan 01 '24 13:01 sanjeevprasad

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

  • Set tool_mode to relative with swaymsg
  • Switch to a different console (Ctrl+Alt+F3, in my case)
  • Switch back to sway

Now the changes are applied.

mredlek avatar Feb 20 '24 05:02 mredlek