How to setup the HUION 430P drawing tablet on Ubuntu 20.04

Update 6 Feb 2021: Added instructions to enable the HUION H430P to use the wacom driver. Verified on Ubuntu 18.04 and Ubuntu 20.04.

If you want to draw on your computer, you can always use your mouse. But if you want to really draw, you can upgrade to a drawing tablet (also known as graphics tablets). Here is one below. It is an entry level drawing tablet, has a pressure-sensitive pen that does not require batteries, and the actual tablet to draw on, looks like an over-sized laptop touchpad. Instead of your fingers, you use the pen to move the pointer on your screen.

An entry-level drawing tablet.

In this post we are using the Huion Inspiroy 430P, an entry-level drawing tablet that is supported on Ubuntu. There is mainline support in the Linux kernel for this tablet since 2015, therefore the following should work with Ubuntu 16.04 or newer. They have been tested on Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. It is suggested to use a recent version of Ubuntu as there is drawing tablet support in the system settings.

Setting up the the Huion 430P on Ubuntu 20.04

Connect the drawing tablet to a USB port on your computer. Then, run the following. You should get the following two lines, for the pad and the stylus. If not, continue reading to setup your X server to recognize the Huion 430P.

$ xsetwacom --list devices
HUION Huion Tablet Pen stylus id: 15 type: STYLUS
HUION Huion Tablet Pad pad id: 16 type: PAD
$ 

The X server has a wacom driver that can be used for the Huion 430P. In Ubuntu, this driver is loaded by default. But the driver needs help to recognize which USB devices are to be used by the wacom driver. You provide this help by editing the file /usr/share/X11/xorg.conf.d/70-wacom.conf and referencing the Huion drawing tablet.

First, reconnect the drawing tablet and run dmesg to view the most recent kernel messages.

$ dmesg
...
[ +3,067195] usb 3-7: new full-speed USB device number 6 using xhci_hcd
[ +0,149539] usb 3-7: New USB device found, idVendor=256c, idProduct=006d, bcdDevice= 1.00
[ +0,000003] usb 3-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ +0,000003] usb 3-7: Product: Huion Tablet
[ +0,000001] usb 3-7: Manufacturer: HUION
[ +0,002723] input: HUION Huion Tablet Pen as /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:256C:006D.0006/input/input32
[ +0,000206] input: HUION Huion Tablet Pad as /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:256C:006D.0006/input/input33
[ +0,000216] uclogic 0003:256C:006D.0006: input,hidraw0: USB HID v1.11 Keypad [HUION Huion Tablet] on usb-0000:00:14.0-7/input0
[ +0,012709] uclogic 0003:256C:006D.0007: No inputs registered, leaving
[ +0,000114] uclogic 0003:256C:006D.0007: hidraw1: USB HID v1.11 Device [HUION Huion Tablet] on usb-0000:00:14.0-7/input1

Now we have enough information to write the rule that will match our drawing tablet and load the wacom X11 driver. Here is the addition to the file /usr/share/X11/xorg.conf.d/70-wacom.conf The identifier is a free-text description of the device. We match the product name and the USBID. We picked the values from the output of the dmesg command. In the MatchProduct, we match the product name HUION. This should work with other Huion tablets as well. Then, in MatchUSBID we match the vendor part of the USB ID, so that other Huion tablets should work as well.

# Huion H430P drawing tablet
Section "InputClass"
	Identifier "Huion H430P drawing tablet"
	MatchProduct "HUION"
        MatchUSBID "256c:*"
	MatchDevicePath "/dev/input/event*"
	Driver "wacom"
EndSection

At this point, you need to restart the X server (either logout and log in again) or restart your computer. The X server checks the configuration only when it starts. Once you restart the X server, verify you get the following output.

$ xsetwacom --list devices
HUION Huion Tablet Pen stylus id: 15 type: STYLUS
HUION Huion Tablet Pad pad id: 16 type: PAD
$ 

Configuring the Huion 430P on Ubuntu 20.04

There are settings in GNOME Shell to configure a drawing tablet. There is no specific configuration for the Huion 430P but there are for other Huion models. It is easy to add support for the 430P and I have some configuration. For now, we accept the default setup. If we want to perform specific configuration, we can always use the xsetwacom utility.

You can use the drawing tablet as a mouse. The small area of the drawing tablet (4.3″ diagonally) is mapped directly to your full display. That is, unlike a mouse where you can lift it to move the pointer further away, on a tablet instead pointer is mapped directly to the full display. Which means that a small 4.3″ active tablet area might be too dense/sensitive for your FullHD or 4K display. Each application like GIMP, Inkscape and Blender have support to configure input devices like drawing tablets. You can configure in them whether you want to map the active area to the whole screen, or the window’s drawing area.

Configuring GIMP

We have installed GIMP 2.10 (snap package) and we have started drawing with the Brush tool. We use the default settings and switched the Dynamics to Pressure Size. This meas that the pen, which detects the pressure, should draw a line that has a variable size, depending on the pressure. But it does not. The first line has been drawn with the mouse, and the second with the drawing tablet. At this stage, the drawing tablet is just smoother than the mouse. We need to properly configure the drawing tablet.

Drawing in GIMP. First line is with the mouse, the second with the drawing tablet.
We have not configured the drawing tablet yet.

In the above screenshot there is a tab called Device Status. It looks like the following. It only shows the Core Pointer and has not information about the drawing tablet. This means that the drawing tablet is not configured. It also means that the drawing tablet will probably work, but only as a mouse. The pressure sensitivity of the stylus will not be taken into account when we draw.

Device Status. Here it shows only the Core Pointer (mouse) and no drawing tablet.

Let’s look into Edit → Input Settings in GIMP to activate the drawing tablet. There are two input devices for the Huion tablet, one for the Pad and one for the Stylus. By default, their Mode was both Disabled. In the following, I switched them to Screen, as shown below. It says the the X axis has no curve, meaning that this drawing tablet has no tilt support. In addition, we have not configured yet any of the buttons on the drawing tablet. Note that both the stylus and the pad have buttons. We just want to draw already!

Configuring the input devices in GIMP for the Huion 430P drawing tablet.

Let’s see again the Device Status tab in GIMP. There are entries for the Tab and the Pen (Stylus). Ignore for now the Tab settings (in red). We have the Core Pointer (Mouse) and the Pen, both with the exact same drawing settings.

Device Status showing both the Mouse (Core Pointer) and the Pen (Huion Tablet Pen).

It is time to draw again, with the mouse and then the pen, and compare. The pen is smoother, and evidently the line understands the pressure. The thickness depends on the pressure we exert to the pen!

The line on the left was drawn with the mouse. The one on the right, with the pen of the drawing tablet.

Drawing with the pen

We are going to draw with the pen using the Paintbrush tool. And we are going to experiment with the Dynamics option of the Paintbrush tool. And here is the most important tip of the day:

When you change the settings of a tool in the GIMP with the mouse, you are changing the mouse settings for this tool. You need to use the pen to change the pen settings!

Here I tried all the stock Dynamics presets in GIMP (see bottom left). I used black and white, and black to white gradient. Some are really colorful if you use other colors. You can also create your own dynamics!
We switched to the Ink tool. When we draw, we feel like we are using a calligraphy pen.

Another tool is the MyPaint Brush. It has many types of brushes. The following screenshot shows about half of them.

Different types of brushes. The one selected, is a 2B pencil.

Conclusion

Apart from using the drawing tablet in GIMP, you can also use it in Inkscape and Blender. It is especially useful in Grease Pencil in Blender.

A drawing tablet is a big upgrade to drawing on your Ubuntu desktop.You can start off with a Huion drawing tablet such as the Huion 430P. It is available from Aliexpress at around €20 from the official Huion Store.

The Huion 430P drawing tablet is supported in Linux thanks to the effort of the DIGImend project. They have done an amazing work adding Linux support to various brands to drawing tablets.

If you end up loving your drawing tablet, please consider donating to the maintainer of the DIGImend project, Nikolai Kondrashov, on Patreon, on Liberapay, or just buy him a coffee.

Permanent link to this article: https://blog.simos.info/how-to-setup-the-huion-430p-drawing-tablet-on-ubuntu-20-04/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.