Limiting a Wacom Stylus to one screen in Ubuntu 24.04
I've been trying to switch from Windows to Linux, because Windows 10 is going out of support soon and they refuse to let me keep using my older, but perfectly functional PC. Much of my day-to-day development can be done on Linux with no problem. However, some of my tools need to change.
To that end, I have a Wacom stylus tablet that I like to use for writing notes. In order to use it properly, it needs to be limited to one screen. I have 5, and I'm using an NVidia driver, so many of the online solutions to make this work, did not work for me.
This did.
To find the active Wacom devices, make sure you either plug your Wacom device in, or configure it with a bluetooth adapter.
Then, open a terminal and type
xsetwacom --list devices
This will give you a list like this.
Yours will look different.
Yours will look different.
Next, you might want to see a list of your monitors.
To do that, you us
To do that, you us
xrandr --listactivemonitors
This will give you a list like this.
Again, yours will look different.
*IMPORTANT NOTE*
When you're mapping the device, you don't actually want to map the pad, since that
won't do anything. You map the stylus.
To set the Wacom device to a specific monitor, you use the command
xsetwacom --set "PUT YOUR WACOM DEVICE NAME HERE" MapToOuput "PUT YOUR MONITOR ID HERE"
Which in my case would look something like:
xsetwacom --set "Wacom Intous BT S Pen stylus" MapToOutput "DP-5"
However, this won't work if you use NVidia for some reason. So your monitor descriptions
are going to be "HEAD-1", "HEAD-2", "HEAD-3, etc.
So, in my case setting my Wacom Stylus to only function on Monitor 3 of my multi monitor
dislay was this command:
xsetwacom --set "Wacom Intous BT S Pen stylus" MapToOutput "HEAD-3"
That worked for me.
Good luck, and Happy Coding!
~Tom
Comments
Post a Comment