WRITTEN_BY David REVOY -
-
23 comments
## A very original book
A few months ago I wrote a short comic, a four-page one-shot, not about Pepper&Carrot, but about Christmas for [Le Lombard publishing](https://en.wikipedia.org/wiki/Le_Lombard).
It was a great opportunity for me to work with a new team and set new standards. It was also a privilege to work for this publisher, famous in the Franco-Belgian comics world for such iconic titles as the Smurfs, Tintin, Blake and Mortimer, BlueBerry, Léonard and many others. I was also honoured to contribute to this collection of 25 short stories by many special guests, famous authors in the French and Belgian comic industry
The principle of this book is original: each story comes with bound pages that are impossible to read before cutting the edge. The idea is like an "Advent calendar", but this time without little windows to reveal a present or a chocolate: you have to cut out the pages and discover a new story every day in December before Christmas.
All the stories in this book are in French, for the French-speaking market and sold in bookshops. The book is already published and available. You can find it in your bookshop or read more about it on [the product page on Le Lombard's website](https://www.lelombard.com/bd/bd-de-lavent/bd-de-lavent-2024).
## CC-By and made with FLOSS
As you can imagine, I've negotiated with the publisher to release my story under a [Creative Commons Attribution licence (CC-By)](https://creativecommons.org/licenses/by/4.0/deed.en), so that I can share it with you, make it part of free culture, and open it up to translation. However, we did agree on one exception to my release: it must be after the book has been released in stores, and I think it's very fair to give this first publication exclusivity to the company that fully financed the making of this story.
On a technical level, I unfortunately had to do a lot of Bash scripting with CLI tools to be able to deliver a correct CMYK PDF and TIFF in their specifications (mostly based on Adobe Photoshop and Indesign), and I kept all the specifications to report to the Krita developers when the text tool refactor is ready. As it stands, the software can't deliver the format this publisher requires from the save or export menu. Still, I was happy to be able to tweak something and still be using only FLOSS (Free(libre) and Open Source) even though it might have taken me twice or more as long to make my comic as it did for other authors. A big thank you also goes to my publisher for their patience with my testing of the file formats.
## Online Soon?
But where to host this comic online?
That's why I'm currently refactoring the Pepper&Carrot site in a git branch called 'When-Worlds-Collide', a very complex refactor, especially on a site that has had more than 10 years of incremental changes. It's more like untying spaghetti knots to make a change at such a fundamental low level. But once done, this new structure will also be used to publish other stories on the Pepper&Carrot site, such as my MiniFantasyTheatre episodes or small one-shots like this one. And with a translation system, of course. Thanks to this improvement, I should be able to publish it on the redesigned site before the end of December.
### Video trailer (in French):
[youtube]XYiMu4InMMY[/youtube]
WRITTEN_BY David REVOY -
-
8 comments
[youtube]M9VbiVJX-J4[/youtube]
**Useful links**:
- Review video on Youtube: https://youtu.be/M9VbiVJX-J4
- Review video on Peertube: https://peertube.touhoppai.moe/w/cBzMxbdD1J2kiRBKKShRSL
- [Official store page](https://store.huion.com/products/kamvas-pro-19)
- [Official product page](https://www.huion.com/products/pen_display/KamvasPro/Kamvas-Pro-19.html)
**Technical:**
- [udev-hid-bpf thread](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/issues/36)
- [udev-hid-bpf thread (Kdial remote)](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/issues/35)
- [libwacom PR (Kdial remote)](https://github.com/linuxwacom/libwacom/pull/827)
**Special Offer/Promo code**
Black Friday (Nov.21th~Dec.2nd): KamvasPro19 will have a 20% discount on Amazon and Store.
- Huion Store: https://bit.ly/40J0aSv
- Huion Amazon: https://amzn.to/4aCPIhE
## Intro
Here is my video review of the [Huion Kamvas Pro 19](https://www.huion.com/products/pen_display/KamvasPro/Kamvas-Pro-19.html) pen display tablet.
Everything about my feelings, and tests about the hardware is in the video above.
This blog post here is a list of my installation method, scripts and tweaks to install the device under a GNU/Linux operating system.
I spent a lot of time to do research on this unit, but at the end of the day, I'm just a tweaker: all the credits for improving the support of this tablet goes to [Joshua Goins (restrate)](https://redstrate.com/), [José Expósito](https://github.com/JoseExposito), [Benjamin Tissoires (bentiss)](https://gitlab.freedesktop.org/bentiss) and [Peter Hutterer (whot)](https://gitlab.freedesktop.org/whot) (and probably many more I forgot, sorry).
## The proprietary driver
I don't use the proprietary driver provided by Huion for ethical reasons, but I know that many users will be happy to know of its existence and will probably make an exception for this binary in order to "simplify their lives". I don't blame them.
Link: https://www.huion.com/download/
## Wayland
Wayland is the default session on all major GNU/Linux distributions. Unfortunately, it is currently very difficult to set up this type of tablet in Wayland. In Wayland, all this kind of input and configuration has been delegated to the desktop environment developers. So now you understand that there will never be a single Wayland method to configure a tablet under any desktop environment, but a Gnome-on-Wayland method, a KDE/Plasma-on-Wayland method, a Sway-on-Wayland method, etc.
On a recent Fedora GNOME 41 Gnome or Plasma, you'll get very basic options, out-of-the-box and you might even access more thanks to CLI tools like [gsetwacom](https://github.com/linuxwacom/gsetwacom) for GNOME or [ktabletconfig](https://invent.kde.org/redstrate/ktabletconfig) for Plasma. But you might also hit a wall as soon as you'll want to configure something not exposed to the GUI or this CLI tool.
Great progress is being made and if you install the latest [udev-hid-bpf](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/releases) and [libwacom](https://github.com/linuxwacom/libwacom) you may soon see all the features of this tablet exposed in the system settings (even with the remote control!). However, it is not yet available via the usual packages, and it may take some time for it to spread downstream to all GNU/Linux distributions. So, it is painful to say, but in most cases your best option for Wayland now might be to use [Huion's proprietary driver](https://www.huion.com/download/) temporarily:
## X11
I'm using a [Debian 12 KDE on X11 setup](https://www.davidrevoy.com/article1030/debian-12-kde-plasma-2024-install-guide). On it, I could setup the tablet correctly (almost a perfect support) with a collection of xsetwacom command-lines executed at system boot via a script.
### Remaining issues
1. The Kdial remote will be a pain to customise, but you can do it with [this method](https://www.davidrevoy.com/article989/how-to-customise-a-usb-numeric-keypad-under-gnulinux) for all keys except for the dial, but big progress and even an official support are made [on the udev-hid-bpf project](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/issues/35)
### Fix unwanted Eraser mode on stylus
By default, the second button of the stylus will simulate a stylus flip to eraser while holding it. You'll prefer a right-click to that.
You'll also have no possibility to setup the extra button on the thick stylus.
For that, you need to apply the rules contained in the [udev-hid-bpf](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/) project. That one contains a rule to make it work again as a right-click (or any button because it will be exposed to xsetwacom for customization after that).
To install it, download the [latest package of udev-hid-bpf](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/releases) (packages, not source code or asset), and unpack it somewhere. Then go to the directory and execute the bash script `./install.sh`.
Reboot your system. You can check if everything is correctly loaded with the CLI command line tool `tree`:
```
sudo tree /sys/fs/bpf/hid/
```
Note: On my [GNU/Linux installation based on Debian 12 Bookworm](https://www.davidrevoy.com/article1030/debian-12-kde-plasma-2024-install-guide), you'll need a newer kernel to load [BPF programs](https://lwn.net/Articles/970702/) with eBPF. To do this, I install the `curl` package and then the [Liquorix](https://liquorix.net/) kernel using the one-liner command line provided on their website.
### Setup X11 to put xsetwacom in control
For that, we need the ID of the tablet first.
Plug the tablet and run in a terminal:
```
lsusb
```
This command will list all usb devices connected to your computer and their ID.
My line looks like that:
```
Bus 001 Device 002: ID 256c:006b HUION Huion Tablet_GT1902
```
Copy your ID somewhere, mine here is `256c:006b`, and if we have the exact same model, your might be the same.
Then change directory (cd) to the place where X11 stores its rules:
```
cd /usr/share/X11/xorg.conf.d/
```
I'll create a new file in this directory (note it require your system root password because we are editing a system file with 'sudo'). I'm using here the text-editor "micro", but you can use your favorite. "nano" is often installed anywhere, but has less user-friendly keyboard shortcut and color syntax by default.
```
sudo micro 70-huion.conf
```
We can copy/paste the paragraph under at the end of the file; if your USB identifier differs, you'll need to adjust the line starting with MatchUSBID:
```
Section "InputClass"
Identifier "Huion Kamvas Pro 19 Tablet"
MatchIsTablet "on"
Driver "wacom"
MatchUSBID "256c:006b"
MatchDevicePath "/dev/input/event*"
EndSection
```
Save and then reboot your system.
At this point, you should see your Huion tablet stylus listed if you write in a terminal:
```
xsetwacom --list
```
Bravo! Xsetwacom is now in charge of your tablet, and that's a good news because you can setup almost any aspect of your tablet with this CLI tool.
### Create an Xsetwacom script
Don't be affraid of the word "script"; it is just a series of command written line by line on a text file so the computer will execute all of them at once. Each line will setup one aspect of your tablet. Line starting by the character # are not interpreted by your computer, so I added some notes on them to guide you in the customisation of the script. Open a non-rich text editor (eg. Micro, Kate, Geany, Gnome text also called Gedit, etc...) and copy/paste the script under, and then read it and try to customise it to your needs. On this script you'll find my own settings as an example:
```
#! /bin/bash
# -------------------
# Huion Kamvas Pro 19
# -------------------
# License: CC-0/Public-Domain license
# author: deevad
# Tablet definition
# Identifier obtained using the 'xsetwacom --list' command line
# The tablet appears after creating a special rule for Xorg.
# See blog post on https://www.davidrevoy.com/index.php?tag/hardware for it.
tabletstylus="HUION Huion Tablet_GT1902 Pen stylus"
tableteraser="HUION Huion Tablet_GT1902 Pen eraser"
# Constrain the stylus to use it's own monitor
# Monitor name here "HDMI-A-0" was obtained
# using the 'xrandr' command-line. Your monitor's name might be different (eg. "HDMI-1", "DisplayPort-3", etc...).
output="HDMI-A-0"
xsetwacom --set "$tabletstylus" MapToOutput $output
xsetwacom --set "$tableteraser" MapToOutput $output
# Calibration (reset)
# Start by reseting calibration to default area
xsetwacom --set "$tabletstylus" ResetArea
# Default area is '0 0 32767 32767'
# You can obtain it with the command line:
# xsetwacom --get "HUION Huion Tablet_GT1902 Pen stylus" Area
# Calibration (set)
# Calibrate your device manually with tweaking the numbers under
# and then re-run the script. Add 50 here, substract 50 there, and see the effects.
# (you can also use a tool like `xinput_calibrator`)
# The number are set like this: "MinX" "MinY" "MaxX" "MaxY"
# default: Area 0 0 32767 32767
xsetwacom --set "$tabletstylus" Area 100 120 32794 32797
xsetwacom --set "$tableteraser" Area 100 120 32794 32797
# Pressure sensitivity calibration
# You can use this widget online here to create your curve
# https://linuxwacom.github.io/bezier.html
# The number are set like this: "X1" "Y1" "X2" "Y2"
# default: PressureCurve 0 0 100 100
xsetwacom --set "$tabletstylus" PressureCurve 30 30 35 100
# Styluse's buttons:
# First button on the stylus
# I like to get the Control key to pick color on this one.
# default: button 2 2
xsetwacom set "$tabletstylus" button 2 key Ctrl
# Second button on the stylus
# I leave the default right-click
xsetwacom set "$tabletstylus" button 3 3
# Third button on the thick stylus
# The key of your choice? "e" for eraser mode?
xsetwacom set "$tabletstylus" button 8 key e
# Data trimming and suppression
# Better to not filter or delete any data of this device for increasing its precision
# data pt.s filtered (0-100)
# default is 2
xsetwacom --set "$tabletstylus" Suppress 0
# data pt.s trimmed (1-20)
# default is 4
xsetwacom --set "$tabletstylus" RawSample 1
# Mapping touchscreen
# This is tricky, and I had to make a workaround to capture the good ID among three identical
# It re-use the $output parameter set on "Constrain the stylus to use it's own monitor"
id=`xinput --list | grep -F 'HUION Huion Tablet_GT1902 ' | grep -Po '(?<=id=)dd?' | tail -2 | head -n 1`
xinput map-to-output ${id} ${output}
id=`xinput --list | grep -F 'HUION Huion Tablet_GT1902 ' | grep -Po '(?<=id=)dd?' | tail -1 | head -n 1`
xinput map-to-output ${id} ${output}
```
Save your script under the name of your choice, I saved mine as huion_Kamvas-Pro-19.sh (using the extension .sh at the end of the file will ease identifying the file as a Bash script later). To run it, after saving the file you need to give this text file execution permission. You can do so with many desktop environment by right clicking on the file, go to the property of the files, and in a permission tab add the "execute" checkbox. Another way to do it is via command line in the same directory:
```
chmod +x huion_Kamvas-Pro-19.sh
```
Now, if you run:
```
./huion_Kamvas-Pro-19.sh
```
The script should run and apply your preference. If your desktop environment is modern enough; you should have a way to add a script at autostart (usually in Settings > Autostart). This way, the preferences will be applied each time you start your computer. You can of course change options, and execute the script as many time you want to test and adjust.
You might also create a shortcut on your main menu to execute quickly the script.
### Monitor Luminosity/Brightness and OSD
Some desktop environment will propose you an icon and a slider to manage the screen luminosity. If it works this way, then you are all set.
But if you can't access a simple slider, or you need all other options of this display, you can do it [via ddcutil](https://www.davidrevoy.com/article710/cintiqs-on-gnu-linux-how-to-setup-brightness-contrast-and-more):
initiate modprobe and ddcutil:
```
sudo modprobe i2c-dev
sudo ddcutil detect
```
In the list, the monitor will be detected as `HAT`, you can list all its options with:
```
sudo ddcutil --mfg=HAT capabilities
```
For example, if you want to reduce the brightness, first check it with:
```
sudo ddcutil --mfg=HAT getvcp 10
VCP code 0x10 (Brightness ): current value = 100, max value = 100
```
Then you can set it to 75% or back to 100% this way:
```
sudo ddcutil --mfg=HAT setvcp 10 75
sudo ddcutil --mfg=HAT setvcp 10 100
```
## Conclusion: contribute?
That's all, this guide can be of course continued or updated!
You can send me your tips via comments, or on various Gitlab or Githubs thread mentionned in this article or via email.
WRITTEN_BY David REVOY -
-
11 comments
[youtube]d8Ft3b002LM[/youtube]
**Video**:
- Youtube: https://youtu.be/d8Ft3b002LM
- Peertube: https://peertube.touhoppai.moe/w/vdjYvJUC9JQCkLeK6pVWj1
**Useful links**:
- Review video on Youtube: https://youtu.be/d8Ft3b002LM
- Review video on Peertube: [link]
- [Official store page](https://www.xp-pen.com/store/buy/artist-pro-19-gen2.html)
- [Official product page](https://www.xp-pen.com/product/artist-pro-19-gen-2.html)
- [Official store: the "classic" stylus](https://www.xp-pen.com/store/buy/x3-pro-stylus.html)
- [Official store: the adjustable stand](https://www.xp-pen.com/product/acs18-adjustable-stand.html)
Technical:
- [udev-hid-bpf thread](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/issues/38)
- [udev-hid-bpf thread(ACK05 remote)](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/issues/32)
- [ACK05 remote definition on libwacom](https://github.com/linuxwacom/libwacom/blob/master/data/xp-pen-ack05-remote.tablet)
**Special Offer/Promo code**
10% additional discount for the Artist Pro 19 (Gen 2)
code: DAVID10 (valid from November 15 to December 6).
- FR : https://bit.ly/4fqCnva
- ES : https://bit.ly/3OaWTnu
- DE : https://bit.ly/4euwKuv
- UK : http://bit.ly/4fInVyR
- IT : https://bit.ly/3Oa2SZF
- PT : https://bit.ly/40P4fo1
→ Also check offers on XPpen store for the Black Friday :
- the tablet: https://www.xp-pen.com/store/buy/artist-pro-19-gen2.html
- the classic stylus: https://www.xp-pen.com/store/buy/x3-pro-stylus.html
- the adjustable stand: https://www.xp-pen.com/product/acs18-adjustable-stand.html
## Intro
Here is my video review of the [XPPen Artist Pro 19 (Gen 2)](https://www.xp-pen.com/store/buy/artist-pro-19-gen2.html) pen display tablet.
Everything about my feelings, and tests about the hardware is in the video above.
This blog post here is a list of my installation method, scripts and tweaks to install the device under a GNU/Linux operating system.
I spent a lot of time to do research on this unit, but at the end of the day, I'm just a tweaker: all the credits for improving the support of this tablet goes to [Joshua Goins (restrate)](https://redstrate.com/), [José Expósito](https://github.com/JoseExposito), [Benjamin Tissoires (bentiss)](https://gitlab.freedesktop.org/bentiss) and [Peter Hutterer (whot)](https://gitlab.freedesktop.org/whot) (and probably many more I forgot, sorry).
## The proprietary driver
I don't use the proprietary driver provided by XPpen for ethical reasons, but I know that many users will be happy to know of its existence and will probably make an exception for this binary in order to "simplify their lives". I don't blame them.
Link: https://www.xp-pen.com/download
## Wayland
Wayland is the default session on all major GNU/Linux distributions. Unfortunately, it is currently very difficult to set up this type of tablet in Wayland. In Wayland, all this kind of input and configuration has been delegated to the desktop environment developers. So now you understand that there will never be a single Wayland method to configure a tablet under any desktop environment, but a Gnome-on-Wayland method, a KDE/Plasma-on-Wayland method, a Sway-on-Wayland method, etc.
On a recent Fedora GNOME 41 Gnome or Plasma, you'll get very basic options out-of-the-box and you might even access more thanks to CLI tools like [gsetwacom](https://github.com/linuxwacom/gsetwacom) for GNOME or [ktabletconfig](https://invent.kde.org/redstrate/ktabletconfig) for Plasma. But you might also hit a wall as soon as you'll want to configure something not exposed to the GUI or this CLI tool.
Great progress is being made and if you install the latest [udev-hid-bpf](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/releases) and [libwacom](https://github.com/linuxwacom/libwacom) you may soon see all the features of this tablet exposed in the system settings (even with the remote control!). However, it is not yet available via the usual packages, and it may take some time for it to spread downstream to all GNU/Linux distributions. So, it is painful to say, but in most cases your best option for Wayland now might be to use [XPpen's proprietary driver](https://www.xp-pen.com/download) temporarily:
## X11
I'm using a [Debian 12 KDE on X11 setup](https://www.davidrevoy.com/article1030/debian-12-kde-plasma-2024-install-guide). On it, I could setup the tablet correctly with a collection of xsetwacom command-lines executed at system boot via a script.
### Remaining issues
1. The XPpen ACK05 remote is still a pain to customise, but big progress are made [on the udev-hid-bpf project](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/issues/32). You can also check my workarounds and way to customise it anyway on my full [blog-post about the ACK05](https://www.davidrevoy.com/article1047/configuring-the-xppen-ack05-remote-with-only-floss-on-gnulinux-my-investigation-and-workarounds).
2. The thin stylus has a 1.5 or 2mm extra offset between the tip of the stylus and the cursor. This is because the height of the "Tilt compensation" is different on this stylus. [Work is in progress on this topic](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/issues/38).
3. The keyboard shortcut of the scroll-wheel on the thick stylus can't be configured yet (default: Ctrl+ and Ctrl-), but it is possible to temporary deactivate it. [Work is in progress on this topic](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/issues/38).
### Fix unwanted Eraser mode on stylus
By default, the second button of the stylus will simulate a stylus flip to eraser while holding it. You'll prefer a right-click to that. For that, you need to apply the rules contained in the [udev-hid-bpf](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/) project. That one contains a rule to make it work again as a right-click (or any button because it will be exposed to xsetwacom for customization after that).
To install it, download the [latest package of udev-hid-bpf](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/releases) (packages, not source code or asset), and unpack it somewhere. Then go to the directory and execute the bash script `./install.sh`.
Reboot your system. You can check if everything is correctly loaded with the CLI command line tool `tree`; the name of the rule is for the "16" but it works also for the "19":
```
~ »»» sudo tree /sys/fs/bpf/hid/
[sudo] password for deevad:
/sys/fs/bpf/hid/
└── 0003_28BD_096A_0010
└── 0019-XPPen__ArtistPro16Gen2_bpf
├── hid_fix_rdesc_xppen_artistpro16gen2
└── xppen_artist_pro_16_device_event
```
Note: On my [GNU/Linux installation based on Debian 12 Bookworm](https://www.davidrevoy.com/article1030/debian-12-kde-plasma-2024-install-guide), you'll need a newer kernel to load [BPF programs](https://lwn.net/Articles/970702/) with eBPF. To do this, I install the `curl` package and then the [Liquorix](https://liquorix.net/) kernel using the one-liner command line provided on their website.
### Setup X11 to put xsetwacom in control
For that, we need the ID of the tablet first.
Plug the tablet and run in a terminal:
```
lsusb
```
This command will list all usb devices connected to your computer and their ID.
My line looks like that:
```
Bus 001 Device 006: ID 28bd:096a XP-Pen Artist Pro 19(Gen2)
```
Copy your ID somewhere, mine here is `28bd:096a`, and if we have the exact same model, your might be the same.
Then change directory (cd) to the place where X11 stores its rules:
```
cd /usr/share/X11/xorg.conf.d/
```
I'll create a new file in this directory (note it require your system root password because we are editing a system file with 'sudo'). I'm using here the text-editor "micro", but you can use your favorite. "nano" is often installed anywhere, but has less user-friendly keyboard shortcut and color syntax by default.
```
sudo micro 60-xppen.conf
```
We can copy/paste the paragraph under at the end of the file; if your USB identifier differs, you'll need to adjust the line starting with MatchUSBID:
```
Section "InputClass"
Identifier "XP-Pen Artist Pro 19 (Gen2) Tablet"
MatchIsTablet "on"
Driver "wacom"
MatchUSBID "28bd:096a"
MatchDevicePath "/dev/input/event*"
EndSection
```
Save and then reboot your system.
At this point, you should see your XPPen tablet stylus listed if you write in a terminal:
```
xsetwacom --list
```
Bravo! Xsetwacom is now in charge of your tablet, and that's a good news because you can setup almost any aspect of your tablet with this CLI tool.
### Create an Xsetwacom script
Don't be affraid of the word "script"; it is just a series of command written line by line on a text file so the computer will execute all of them at once. Each line will setup one aspect of your tablet. Line starting by the character # are not interpreted by your computer, so I added some notes on them to guide you in the customisation of the script. Open a non-rich text editor (eg. Micro, Kate, Geany, Gnome text also called Gedit, etc...) and copy/paste the script under, and then read it and try to customise it to your needs. On this script you'll find my own settings as an example:
```
#! /bin/bash
# ---------------------------
# XP-Pen Artist Pro 19 (Gen2)
# ---------------------------
# License: CC-0/Public-Domain license
# author: deevad
# Tablet definition
# Identifier obtained using the 'xsetwacom --list' command line
# The tablet appears after creating a special rule for Xorg.
# See blog post on https://www.davidrevoy.com/index.php?tag/hardware for it.
tabletstylus="XPPen Artist Pro 19(Gen2) stylus"
tableteraser="XPPen Artist Pro 19(Gen2) eraser"
# Constrain the stylus to use it's own monitor
# Monitor name here "HDMI-A-0" was obtained
# using the 'xrandr' command-line. Your monitor's name might be different (eg. "HDMI-1", "DisplayPort-3", etc...).
output="HDMI-A-0"
xsetwacom --set "$tabletstylus" MapToOutput $output
xsetwacom --set "$tableteraser" MapToOutput $output
# Calibration (reset)
# Start by reseting calibration to default area
xsetwacom --set "$tabletstylus" ResetArea
# Default area is '0 0 32767 32767'
# You can obtain it with the command line:
# xsetwacom --get "XPPen Artist Pro 19(Gen2) stylus" Area
# Calibration (set)
# Calibrate your device manually with tweaking the numbers under
# and then re-run the script. Add 50 here, substract 50 there, and see the effects.
# (you can also use a tool like `xinput_calibrator`)
# The number are set like this: "MinX" "MinY" "MaxX" "MaxY"
# default: Area 0 0 32767 32767
xsetwacom --set "$tabletstylus" Area 0 0 32680 32680
xsetwacom --set "$tableteraser" Area 0 0 32680 32680
# Pressure sensitivity calibration
# You can use this widget online here to create your curve
# https://linuxwacom.github.io/bezier.html
# The number are set like this: "X1" "Y1" "X2" "Y2"
# default: PressureCurve 0 0 100 100
xsetwacom --set "$tabletstylus" PressureCurve 95 90 20 100
# Styluse's buttons:
# First button on the stylus
# I like to get the Control key to pick color on this one.
# default: button 2 2
xsetwacom --set "$tabletstylus" button 2 key Ctrl
# Second button on the stylus
# I leave the default right-click
xsetwacom --set "$tabletstylus" button 3 3
# Data trimming and suppression
# Better to not filter or delete any data of this device for increasing its precision
# data pt.s filtered (0-100)
# default is 2
xsetwacom --set "$tabletstylus" Suppress 0
# data pt.s trimmed (1-20)
# default is 4
xsetwacom --set "$tabletstylus" RawSample 1
# Bonus:
# Deactivate the scroll-wheel on stylus
xinput set-prop "XPPen Artist Pro 19(Gen2) Keyboard" "Device Enabled" 0
```
Save your script under the name of your choice, I saved mine as xppen_Artist-Pro-19-Gen2.sh (using the extension .sh at the end of the file will ease identifying the file as a Bash script later). To run it, after saving the file you need to give this text file execution permission. You can do so with many desktop environment by right clicking on the file, go to the property of the files, and in a permission tab add the "execute" checkbox. Another way to do it is via command line in the same directory:
```
chmod +x xppen_Artist-Pro-19-Gen2.sh
```
Now, if you run:
```
./xppen_Artist-Pro-16-Gen2.sh
```
The script should run and apply your preference. If your desktop environment is modern enough; you should have a way to add a script at autostart (usually in Settings > Autostart). This way, the preferences will be applied each time you start your computer. You can of course change options, and execute the script as many time you want to test and adjust.
You might also create a shortcut on your main menu to execute quickly the script.
### Monitor Luminosity/Brightness and OSD
In the video, I setup my monitor "Brightness" to 75 to reduce the heat of the device, I also demo how you can hold down 'Brightness +' and press 'Power' to enter into the OSD menu. It's a very good option because I wasn't able to access this display [via ddcutil](https://www.davidrevoy.com/article710/cintiqs-on-gnu-linux-how-to-setup-brightness-contrast-and-more) ("DDC communication failed") so far.
## Conclusion: contribute?
That's all, this guide can be of course continued or updated!
You can send me your tips via comments, or on various Gitlab or Githubs thread mentionned in this article or via email.
WRITTEN_BY David REVOY -
-
10 comments
I’ve been working hard on my video review of the Huion Kamvas 19 Pro using only Free/Libre and Open Source Software.
Can’t wait to share it with you next week!
In the meantime, here’s a piece I painted with it! 🎨
[Full resolution & sources here](https://www.peppercarrot.com/en/viewer/misc__2024-11-03_for_Huion_by-David-Revoy.html)
#krita
WRITTEN_BY David REVOY -
-
12 comments
✏️ Mark your calendars!
In just two weeks, I’ll be offering a free Krita workshop (in French) at Capitole du Libre 2024. This session will be a perfect blend of exploring Krita’s features and sharing valuable drawing tips.
I can’t wait to see you there and create together! 🎨 :krita:
More info: https://cfp.capitoledulibre.org/cdl-2024/talk/KLHKLR/
https://capitoledulibre.org/