How to Map a Wacom Tablet to a Single Monitor on Linux
Vložit
- čas přidán 21. 08. 2024
- In this video, I show you how to map the surface of a graphics tablet to a single monitor or display on Linux.
By default, absolute positioned devices such as graphics tablets (including my Wacom tablet) are mapped from the input area of the tablet to the full resolution of the X11 display. On modern systems, all of your physical monitors are part of the same X11 output, so the area of the tablet is split over all screens.
See my page on this subject for the exact commands!
wiki.tonytasci...
To use a graphics tablet as we normally would, we need to limit the tablets input area to a single monitor. This can be done easily in 2 ways as shows in the video, either using xinput or xsetwacom if you have the Wacom utilities installed. They both do the same thing.
The commands used in the video are on my website at wiki.tonytasci... under the Linux Scripts section.
This video is available under a CC-BY-NC-SA license on Peertube.
Watch this video on Peertube: peertube.tonyt...
Thanks for Watching!
Produced by Tony Tascioglu
tonytascioglu.com
Put off figuring out how to do this because I thought it'd be annoying and take ages, but you got right to the point and solved my problem in minutes, thanks!
Thanks, glad it worked!
unsung hero of the internet
So quick, clear and efficient. Thank you so much man!
Thanks for the kind words!
Thank you very much for that, Tony! Much appreciated.
you are a godsend as now I can redraw my pfp as many times as it takes to get a decent output!
Thank you very much!
Worked like a charm.
Awesome! Worked perfectly. Thank you!
Glad it helped!
I've been looking for this for the past year or so and just couldn't do it. Now i can draw with proper mapping, thank you so much.
Glad I could help!
Thank you! Saved me days of trying to figure this out myself
Glad I could help!
Was close to yanking my hair out of my head figuring this out on my own. Very quick and helpful tutorial. Thank you so much!
Glad it helped!
Thank you for this very informative video!
I feel as if I learned more about both my tablet and my Linux system. :)
Glad it was helpful!
solved my problems, thanks
love you dude, saved my life!
Glad I could help!
Thank you so much for the video :)
Thank you so much! I recently got a duel monitor setup and I saw that my tablet wasnt sticking to my main monitor I use.
This really helped, liked and subbed.
Thanks! Glad it helped!
Thanks Tony
Thank you this is just awesome, now i can switch to linux defently
It works!
Thank you so much!
Glad it worked!
Thanks a lot, this was really helpful
Glad I could help!
Thank you for making this
This helped a lot
Glad it helped!
I am subscribing! Great video. I used to use another method that I don't remember, this feels more natural.
Thank you, good sir.
Glad I could help!
Thank you so much!
you are nothing less than a god
Lol, thanks, glad it helped
Thank you so much!!!!!!
worked like a charm, thank you!
Wow thank you! It worked.
glad it helped!
IIRC gnome has this in their wacom settings, but recently I switched over to KDE thinking it would be more stable (which it is not), which seems to have far worse support for wacom... I didn't find option for this anywhere so I assumed it can't be done. But the video helped! Omw makeing it a shortcut because I assume reboot will reset the setting. Thanks!
So quick, clear and efficient. Thank you so much man! (02)
Thanks!
Nice video and website brother, thanks!
you, the best.
it works! thanks
Glad I could help!
Thank you thank you thank you!
Glad I could help!
Thank you!
Glad I could help!
thanks man.
Thanks bro
Thank you! Saved my day.
Thanks, glad it worked!
I have to see it this works with my XPen tablet
thx
worked pretty easy and mine is a xp-pen tablet.
Glad it worked!
Hi Tony, first of all, great video, thank you!. I have one question, my problem is that i just want to use half of my screen, i usually (on windows) split it in half and use half of screen to take notes and the other to look at the videos or classes, the thing is that i cant find a way to do this on linux and its to anoying because it leaves me with just half tablet to use. You know if it's possible to do what i want?
cool! Do you maybe know how to map the screen to only a portion of the wacom tablet surface?
i did it , thank you, i guess it would be too much to ask if its possible to switch between monitors?
Generally, to switch, I just map it to the other monitor. I just set 2 of the macro buttons to switch to either of my monitors, since those just show up as normal key inputs that can be binded.
On my tablet, all it does is stop it from going to the other monitor. My pen only works for half of the tablet.
Edit: I have a Wacom Intuos Bluetooth tablet if that matters at all.
one more thing, how to set up the keys of the pencil?
Sorry for the late reply, I have set up the keys.
If you're using KDE, they have a nice GUI that's easy to configure as an extra package.
I just used xsetwacom following the Arch guide here: wiki.archlinux.org/title/wacom_tablet#Remapping_buttons
I believe you mentioned that you don't have xsetwacom in your distro. I haven't tried mapping keys with xinput though, since xsetwacom has worked for me.
The package on most distros is something like "xf86-input-wacom", not "xsetwacom". Have you tried searching for a general xf86-input-wacom package?
Hi, I'm trying to do this on Ubuntu with my Wacom Intuos connected but it doesn't seem to work, what could it be?
Great, is there a metodh to map the full wacom tablet to right half display ? I have the video of the lesson on the left. On the right I would like to write, therefore using half the screen but without giving up half the tablet.
edit: I tried this command and I can use the right side of the screen to write but the cursor goes backwards, how could I solve it? xsetwacom --set "Wacom One by Wacom S Pen stylus" area 30400 0 0 9500
edit edit: this works fine for writing on the left side of the screen, but it's exactly the opposite of what I wanted. xsetwacom --set "Wacom One by Wacom S Pen stylus" area 0 0 34000 9500
I managed to get it to work normally, but now when I turn on the system it simply goes back to the previous configuration. Do you have any suggestions to avoid this thing of always resetting the command after restarting? By the way, thanks for the help.
If you want it on every plug, a udev rule would probably work, or if you already have an X11 config file, it could be added there. Otherwise, it can just be a startup script - many ways.
If you migrate from i3 to sway, I believe it will remember the mapping if you unplug and plug the tablet back in
I got a new Huion and three screens, so to prevent the cursor from moving around freely I tried mapping it to the center screen with this very method, but now it's not moving at all 😭 Please, help
Are you running Wayland by any chance? In that case, the X commands would be running within xwayland.
For Huion, mapping the tablet with OpenTabletDriver directly might also be simpler (especially with the GUI), so that could be worth a try.
After a long time that this worked fine, now when i type this to terminal i get this >>> X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 131 (XInputExtension)
Minor opcode of failed request: 57 ()
Serial number of failed request: 29
Current serial number in output stream: 30
You didn't switch to Wayland or something with an update, right? Your input/output names may have changed as well . I also had a fun issue where it wouldn't work on a PCIe USB3.0 card...
@@TonyTascioglu I fixed it, yes the devices for some reason have changed name, don't have a clue how that happened
after restart it doesnt save the xinput settings though
You can always put it in your startup scripts like .xinitrc to have it run on startup. You could also probably use udev to make it trigger every time the tablet is connected.
Now its just not working. Wonderful.
Wait no this shit isnt permanent, i have to redo it each time
Thank you so much !!!
Glad I could help!