Skip to content

bigbigmdm/GAOMON-M106K-PRO-in-LINUX

Repository files navigation

GAOMON M106K Pro in LINUX

Configuring the GAOMON M106K Pro graphics tablet in Linux MINT / DEBIAN / UBUNTU / MX / openSUSE

Out of the box the device works immediately. Positions normally, but is detected by the system as some variant of the touchpad in the SETUP/Mouse and Touchpad menu. Pressing force is displayed correctly in the Krita graphical editor, but the function keys don't work.

The lsusb command identifies it as 256c:006d.

The following is required for the device to work fully:

  1. change file /usr/share/X11/xorg.conf.d/70-wacom.conf for openSUSE /etc/X11/xorg.conf.d/70-wacom.conf (for older versions of LM - 50-wacom.conf. This software does not work with buttons. You can update the wacom driver from the Wacom page on github: https://github.com/linuxwacom/input-wacom/wiki/Installing-input-wacom-from-source ), added to the end of file:
#Gaomon M106K_Pro
Section "InputClass"
Identifier "GAOMON Gaomon Tablet"
MatchUSBID "256c:006d"
MatchDevicePath "/dev/input/event*"
Driver "wacom"
EndSection

Note that another person, @speculatrix, found his tablet has usb ID 256c:006e, so use "lsusb" and check what you see and amend the above pattern if required.

  1. After rebooting, the xsetwacom --list command will output the following:
GAOMON Gaomon Tablet Pen stylus id: XX type: STYLUS    
GAOMON Gaomon Tablet Pad pad id: XX type: PAD 

Accordingly, the SETUP/MUSIC and TACHPAD menus now have two GAOMON items instead of one.

  1. the buttons can now be reassigned using xsetwacom:

For stylus:

xsetwacom --set 'GAOMON Gaomon Tablet Pen stylus' Button 1 "***"  - is the stylus pen response, best not to change, otherwise the stylus will stop working
xsetwacom --set 'GAOMON Gaomon Tablet Pen stylus' Button 2 "***" - bottom stylus button
xsetwacom --set 'GAOMON Gaomon Tablet Pen stylus' Button 3 "***" - top stylus button

where *** is combination of the "key" word and pressed keys. In the case of function keys (CTRL, ALT, SHIFT, etc.), you will first write the + symbol, then the name of the function key (this symbolises the key being pressed), then the desired key in combination with the function key, then the - symbol, then the function key (this symbolises the key being released). For example, [CTRL] V, will be written as "key +ctrl v -ctrl". To press and release Enter use: key 0xff0d.

For four tablet keys:

xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 1 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 2 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 3 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 8 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 9 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 10 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 11 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 12 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 13 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 14 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 15 "***"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 16 "***"

where *** is the combination described above.

CH341A programmer device

From these commands you can create a BASH file and run it before using the tablet:

#!/bin/bash
# TABLET KEY SETTINGS GAOMON M106K
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 1 "key +ctrl - -ctrl"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 2 "key +ctrl + -ctrl"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 3 "key +ctrl c -ctrl"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 8 "key +ctrl v -ctrl"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 9 "key +ctrl z -ctrl"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 10 "key +ctrl +shift z -shift -ctrl"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 11 "key +ctrl e -ctrl"
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 12 "key +ctrl +shift e -shift -ctrl"
# GAOMON M106K PEN KEY SETTINGS
xsetwacom --set 'GAOMON Gaomon Tablet Pen stylus' Button 2 "key del"
  • file that reassigns the lower pen key to Del (for easy erasing of selected fragment), four tablet keys for copy, paste, reduce scaling, enlarge scaling, undo, redo, merging layers functions (for Krita).

A list of supported keys can be seen with the command xsetwacom --list modifiers

More examples

# press a, press shift, press and release b, release shift, release a, then press and release enter
xsetwacom --set 'GAOMON Gaomon Tablet Pad pad' Button 1 "key +a +shift b -shift -a 0xff0d"

# right click of mouse (read more: https://askubuntu.com/questions/729564/wacom-button-and-mouse-button-setting)
xsetwacom --set 'GAOMON Gaomon Tablet Pen stylus' Button 2 3

See also https://github.com/bigbigmdm/GAOMON-S620-in-LINUX

About

Configuring the GAOMON M106K-Pro graphics tablet in Linux MINT / DEBIAN / UBUNTU / MX / openSUSE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages