Ubuntu – How to map wacom correctly to monitor

monitorwacom

I am using Ubuntu 12.10 and I am running dual screens(23inch and 15 inch). I have a wacom intuos 2 9×12 that will will not map correctly to my second monitor which is also 9×12(1400×1050). The reason I need to solve this is because I have created a homemade cintiq and I draw on the screen (you can see what I'm talking about here: http://forum.bongofish.co.uk/index.php?topic=2096.0). The pen matches quite accurately on the x axis of my screen, so I believe the width of my wacom tablet area is okay. I think the problem is the y axis of my wacom. The cursor matches my pen towards the bottom of the screen, but as I move to the top of the screen, the distance from my pen tip to the cursor increases(the cursor is about 1 inch below pen when at top of screen).

I have looked on the Internet for hours trying to find a solution and I cannot find any.

Also, I want to say that this problem only happens in Ubuntu, I also have Windows 7 installed, and the wacom matches the screen perfectly. I'm also a complete noob to linux so I don't know much about navigating terminal.

Best Answer

First, determine how your system recognizes your tablet.
In a terminal enter: xsetwacom --list devices

Wacom BambooPT 2FG 4x5 Pen stylus id: 10 type: STYLUS
Wacom BambooPT 2FG 4x5 Finger touch id: 11 type: TOUCH
Wacom BambooPT 2FG 4x5 Pad pad id: 12 type: PAD
Wacom BambooPT 2FG 4x5 Pen eraser id: 17 type: ERASER

Next determine which display or "output" to map your tablet to in your systems display settings or in the terminal with xrandr --listactivemonitors
on my system that shows:

0: +*HDMI-2 1920/521x1080/293+1600+0 HDMI-2
1: +HDMI-1 1600/443x900/249+0+0 HDMI-1

Finally, using the information you just gathered, use xsetwacom --set "[YourWacomDevice]" MapToOutput [your display] (repeat for each device listed ).

[YourWacomDevice] = device name or id:#

so, for me that would be

xsetwacom --set "10" MapToOutput HDMI-2
xsetwacom --set "11" MapToOutput HDMI-2
xsetwacom --set "12" MapToOutput HDMI-2
xsetwacom --set "17" MapToOutput HDMI-2

Since these settings aren't kept after a reboot, you may want to save them in a script that runs on startup.


Using xsetwacom --help lists possible options and commands. With the --list parameters command, we can see a list of all the supported parameters. Near the end of that list is MapToOutput - Map the device to the given output.

man xsetwacom will display it's manual entry or you can read it here

for more information about identifying and configuring displays with xrandr read this question

Thanks to @RyanWC and @user1355 for pointing me in the right direction.