Graphic tablet resolution misconfiguration and Linux fix

Hi Krita people!
I wanted to share something I just discovered with my tablet configuration and might be making more difficult for me to draw (98% I’m bad and 2% misconfiguration problem :smiley: )
I took an stencil I used in school to draw circles to draw a gray circle and found out this:


The gray ellipse is what should be a circle, only it isn’t, and the red square I draw with the Rectangle Tool in Krita to make the difference more obvious.
This means that my tablet resolution configuration is wrong, the relationship between height and width in the monitor is different than on the tablet (the ratio).
So, in order to draw a circle on the screen I should physically draw a vertical oval, that can’t be good.
I have a Huion H950P and I’m using Linux and used the command xsetwacom, you probably have this one installed from drivers configuration (in Windows you might have an app that came with the tablet to do the configuration)

Here’s the xsetwacom page:

xsetwacom --list
to find the stylus device name:
HID 256c:006e Pen stylus id: 18 type: STYLUS
HID 256c:006e Pad pad id: 19 type: PAD

xsetwacom get “HID 256c:006e Pen stylus” area
to return the area used by the tablet:
0 0 44200 27600

So, the screen area is 1920x1080, 1920 divided by 1080 results in a ratio of more or less 1.77
Tablet resolution is 44200x27600, 44200 divided by 27600 results in a ratio of more or less 1.60

Both rations should be the same, so I divided 44200 by ( 1920 / 1080 ) and got 24862, which is the value I have to set the height resolution for the tablet.

xsetwacom set “HID 256c:006e Pen stylus” Area 0 0 44200 24862
will set the new resolution and now I get:

image

Still not exact, but much better result. Adjusting a bit the height of the tablet resolution is a quick fix from there.

Hope this helps if you find yourself having the same issue.
Cheers!

1 Like

If you have KDE plasma this is even more easily done by clicking on the set screen proportion button in the settings.

Go to Input devices > Graphic Tablet > Tablet tab > Map Tablet Area to Screen and click set screen proportions

What distro are you using? Some Linux distributions do come with a GUI tool for tablet settings, such as Linux Mint with the Cinnamon desktop. I use a Cintiq and calibrating the cursor position would be pretty much impossible with xsetwacom, so having access to the GUI tool is a must and personally I just wouldn’t use a distro without it.

I’m using Ubuntu, all I see in the settings is a Wacom tablet option on the settings list and a “No stylus found” on the screen

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.