Skip to content

Instantly share code, notes, and snippets.

@asaushkin
Created November 23, 2016 18:52
Show Gist options
  • Save asaushkin/e42cba7d0561126b71a0531d92b9a828 to your computer and use it in GitHub Desktop.
Save asaushkin/e42cba7d0561126b71a0531d92b9a828 to your computer and use it in GitHub Desktop.
https://github.com/DIGImend/digimend-kernel-drivers/issues/26
SOLUTION:
Installing digimend-kernel-drivers-6 from source followings the instructions.
Creating 52-tablet.conf because it didn't exist:
cd /etc/X11
sudo mkdir xorg.conf.d
cd xorg.conf.d
sudo gedit 52-tablet.conf
Copy and paste the following in that file:
Section "InputClass"
Identifier "Huion on wacom"
# MatchIsTablet "on"
MatchProduct "HUION"
MatchDevicePath "/dev/input/event*"
Driver "wacom"
EndSection
Saving the file and restart.
Open the terminal and put the following: xsetwacom --list
You should see something like this:
HUION PenTablet Pad pad id: 13 type: PAD
HUION PenTablet Pen stylus id: 14 type: STYLUS
The buttons are: 1,2,3,8,9,10,11,12.
Put this in the terminal, defining the desired keys for each button (Top-down on the tablet Huion H610 Pro) :
xsetwacom --set "HUION PenTablet Pad pad" Button 1 "key +ctrl +z -z -ctrl"
xsetwacom --set "HUION PenTablet Pad pad" Button 2 “key e”
xsetwacom --set "HUION PenTablet Pad pad" Button 3 "key +ctrl"
xsetwacom --set "HUION PenTablet Pad pad" Button 8 "key +shift"
xsetwacom --set "HUION PenTablet Pad pad" Button 9 "key +ctrl + -ctrl"
xsetwacom --set "HUION PenTablet Pad pad" Button 10 "key +ctrl - -ctrl"
xsetwacom --set "HUION PenTablet Pad pad" Button 11 "key b"
xsetwacom --set "HUION PenTablet Pad pad" Button 12 "key space"
And ready, the buttons will function. :)
@zqxyz
Copy link

zqxyz commented Aug 21, 2021

Thanks for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment