Bonjour.
Pour installer ma tablette Huion 1060 plus new, j'ai utilisé le .deb
ici. Puis, pour la configuration des boutons (12 en tout) j'ai suivit la fin de ce tuto
ici. J'ai copier le fichier /usr/share/X11/xorg.conf.d/50-huion.conf tel quel. Par contre pour le fichier de conf .sh qui concerne les boutons du stylet et de la tablette, j'ai changer les lignes tabletstylus= et tabletpad= par le retour de la commande xinput --list. Ce qui donne chez moi : tabletstylus="HID 256c:006e Pad pad" et tabletpad="HID 256c:006e Pen stylus". Il faut aussi modifier les réglage de la taille de la tablettex= et tablettey= . Ensuite on peut définir les 12 boutons comme on veux. Dans le tuto il y a un lien vers la définition de chaque touche. On peut aussi assigner un bouton a un clic de la souris avec xsetwacom --set "$tabletpad" Button 1 "Button 2" par exemple(bien pratique sous linux...). En ajoutant le signe "+" à xsetwacom --set "$tabletpad" Button 3 "key +BackSpace" on obtient la répétition de la touche en gardant le doigt dessus.
Pour le reste, je n'ai pas mis le scripte au démarrage du pc mais dans ~/.local/share/nemo/scripts. Comme ça on peut avoir un scripte différent pour chaque logiciel (gimp, blender, inkscape...) Un clic droit sur le bureau ou dans nemo (ou autre...) et on change de configuration.
Test sur linux mint 19.2 et ubuntu 18.04.
Bon amusement 🙂
Voici un exemple de fichier de configuration des boutons et du stylet:
#! /bin/bash
# Setup HUION WH1409, after bridged to wacom driver with Digimend Kernel module.
# License: CC-0/Public-Domain license
# author: deevad
##### Tablet definition
#tabletstylus="TABLET Pen Tablet Pen stylus"
#tabletpad="TABLET Pen Tablet Pad pad"
tabletstylus="HID 256c:006e Pen stylus"
tabletpad="HID 256c:006e Pad pad"
# Reset
xsetwacom --set "$tabletstylus" ResetArea
xsetwacom --set "$tabletstylus" RawSample 4
# Mapping
# get maximum size geometry with:
# xsetwacom --get "$tabletstylus" Area
# 0 0 55200 34500
#tabletX=55200
tabletX=49200
tabletY=34500
# screen size:
screenX=1920gdsg
screenY=1080
# map to good screen (dual nvidia)
xsetwacom --set "$tabletstylus" MapToOutput "HEAD-0"
# setup ratio :
newtabletY=$(( $screenY * $tabletX / $screenX ))
xsetwacom --set "$tabletstylus" Area 0 0 "$tabletX" "$newtabletY"
# Buttons
# =======
xsetwacom --set "$tabletstylus" Button 2 3
xsetwacom --set "$tabletstylus" Button 3 2
# ---------------------
# | 1 | 2 | | 1 | 2 |
# |---|---| |-------|
# | 3 | 8 | | 3 | 8 |
# |=======| |-------|
# | 9 |10 | | 9 |10 |
# |---|---| |=======|
# |11 |12 | |11 | 12|
# |=======| |-------|
# |13 | ? | |13 |14 |
# |---|---| |---|---|
# | ? | ? | |15 |16 |
# |=======| |=======|
##### ATTENTION CLAVIER QWARTY #####
xsetwacom --set "$tabletpad" Button 1 "Button +1" # clic gauche ok
xsetwacom --set "$tabletpad" Button 2 "key F2" # renommer
xsetwacom --set "$tabletpad" Button 3 "Button +2" # clic du milieu ok
xsetwacom --set "$tabletpad" Button 8 "key +BackSpace" # <-- ok
xsetwacom --set "$tabletpad" Button 9 "key tab" # tab ok
xsetwacom --set "$tabletpad" Button 10 "key 0xff0d" # Enter ok
xsetwacom --set "$tabletpad" Button 11 "key Ctrl C" # ok
xsetwacom --set "$tabletpad" Button 12 "key Ctrl V" # ok
xsetwacom --set "$tabletpad" Button 13 "key Ctrl S" # ok
xsetwacom --set "$tabletpad" Button 14 "key Ctrl Z" # ok
xsetwacom --set "$tabletpad" Button 15 "key +Down" # ok
xsetwacom --set "$tabletpad" Button 16 "key +Up" # ok
# Xinput optionkey
# =============
# for the list:
# xinput --list
# xinput list-props 'TABLET Pen Tablet Mouse'
xinput set-prop 'TABLET Pen Tablet Mouse' "Evdev Middle Button Emulation" 0
# alternate way to map to a single screen
# execute "xrander" in a terminal to get the screen name ( DVI-D-0 in this example )
# xinput set-prop 'TABLET Pen Tablet Pen stylus' DVI-D-0
Merci à David Revoy qui a fait le tuto.