Trying to compile Digimend into kernel

From this thread

https://www.reddit.com/r/krita/comments/3w6ohb/krita_huion_h610_tablet_on_dual_displays_issue/

If you wanted to do this all from the command line it would work by stripping out the parts that make it a script, otherwise you can copy and paste the below into a script with your favorite text editor, huion_drivers.sh:

[code]#!/bin/sh

Remove drivers with below commands

sudo rmmod hid-kye
sudo rmmod hid-uclogic
sudo rmmod hid-huion

wget will download the drivers for you into current directory

wget https://github.com/DIGImend/digimend-kernel-drivers/releases/download/v6/digimend-kernel-drivers-6.tar.gz

tar xvzf will untar and uncompress the source files

tar xvzf digimend-kernel-drivers-6.tar.gz

move to the correct directory and compile and install the drivers

cd digimend-kernel-drivers-6/
make
sudo make install

Disconnect and reconnect the tablet, or reboot

This will need to be done with every new kernel

[/code]
After you can run from the terminal: chmod +x huion_drivers.sh ./huion_drivers.sh
You can just run the commands and not have it as a script, the script will just make it easier should you upgrade the kernel to not have to remember all of the commands.

At the Make step as doing it manually I get

[code][orbmiser@Winterfell ~]$ cd digimend-kernel-drivers-6/

[orbmiser@Winterfell digimend-kernel-drivers-6]$ make
make -C /lib/modules/4.1.15-1-MANJARO/build SUBDIRS=/home/orbmiser/digimend-kernel-drivers-6 modules
make[1]: Entering directory ‘/usr/lib/modules/4.1.15-1-MANJARO/build’
make[1]: *** No rule to make target ‘modules’. Stop.
make[1]: Leaving directory ‘/usr/lib/modules/4.1.15-1-MANJARO/build’
Makefile:9: recipe for target ‘modules’ failed
make: *** [modules] Error 2[/code]

So how to I compile Digimend into current default LTS? Kernel.

Any help what I’m doing wrong or the individual giving wrong for manjaro answers?
As guess I need to re-compile kernel to get it to recognize my dedicated graphic tablet buttons.
As other scripts took care of mapping to just one display and changing for left-handed.

Thanks much! :smiley:

Did you already try asking philm in the Manjaro forums?
I’m sure Phillip would help you with this, he is the kernel maintainer.

Nope thought it might be just something simple different I wasn’t doing right.
And will post there if they can enlighten me further on the issue.

.

It looks like the kernel drivers are already in the kernel since version 3.5.x.
https://digimend.github.io/drivers/

You could also try this xorg driver:
https://aur.archlinux.org/packages/xf86-input-wizardpen

Yep that is what I thought also. And still confused as the guy stated when I asked.
1 point 24 days ago*

No, this means that if the kernel is greater than 3.17 the drivers will work, if you compile them. If the kernel was 3.16 the drivers may compile, but would not work. Think of it as the minimum requirements needed.
There may be kernel drivers for tablets in the kernel but you want different ones, the DIGImend ones.
You will need to compile the drivers to get this to work. You can download the source for these at:

So just scratching my head trying to figure it all out. As can boot to Win7 side and Krita works with buttons due to the proprietary software running in systray. Linux support is Abysmal unfortunetly with anything other than Wacom tablets.

Will take a look Wizard pen and believe I did tried that awhile back. But don’t see it so maybe mistaken and will take a look at it again.

Umm, your using a 4.1 or 4.2 not a 3.x kernel. yes?

Yep the default 4.1.15-1 and installed xf86-input-wizardpen

Description:
A Linux/HAL/udev/X11 driver for most non-Wacom graphics pads

And no entry in menu or system settings. So not a clue if it is loaded? working? Or how to use.

It’s all on the site I already linked to for the Digimend drivers.
https://digimend.github.io/support/howto/drivers/wizardpen/

Just skip down to configuring xorg, etc.

Not having issues with those as device is seen and mapped and works.
And appears that is what wizard-pen does. Generate the file below in it’s own directories.

[code]# Huion tablets
Section “InputClass”
Identifier “Huion class”
MatchProduct “HUION”
MatchIsTablet “on”
MatchDevicePath “/dev/input/event*”
Driver “wacom”
EndSection

Section “InputClass”
Identifier “Huion buttons”
MatchProduct “HUION”
MatchIsKeyboard “on”
MatchDevicePath “/dev/input/event*”
Driver “evdev”
EndSection

Section “InputClass”
Identifier “Huion scroll”
MatchProduct “HUION”
MatchIsPointer “off”
MatchIsKeyboard “off”
MatchIsTouchpad “off”
MatchIsTablet “off”
MatchIsTouchscreen “off”
MatchDevicePath “/dev/input/event*”
Driver “evdev”
EndSection[/code]

As shown in my usr/share/X11/xorg.conf.d/50-huion.conf

What I’m having issues with is not seeing or getting the buttons on tablet assigned.
Even tho part of the script for which monitor and flipping coordinates for left-handed works fine.

[code]#!/bin/sh
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 b”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 8 “key +”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 9 “key -”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 10 “key ]”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 11 “key [”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 12 “key p”

The below value was gathered using xrandr and xinput to determine the monitor as well as which

number the HUION PenTablet Pen stylus device id listed as.

↳ HUION PenTablet Pen stylus id=15 [slave pointer (2)]

xinput map-to-output 13 VGA-0

Left handed stylus

xsetwacom set ‘HUION PenTablet Pen stylus’ rotate half

[/code]

I’m just too confused now. It’s in the kernel it’s not in the kernel. Need wizard pen you don’t need wizard pen as has digimend instead.
And Linux diehards out there saying the terminal and writing configs is the best way to do it.

Not in my specific case scenario. A simple Gui App that allows me to click on settings and be done with already.

Thanks for all your help AJ as you are always the best in trying to solve users problems.
But giving up for now. And re-iterate that tablet support in Linux is Abysmal.
Guess that is due to the lower numbers of Graphic tablet users in Linux.

Tho this shows to be ported to 5 but not seeing it in the repos.
wacom tablet 3.0.0~beta1
http://kde-apps.org/content/show.php?content=114856&forumpage=14
.

Sorry for re drudging up an old thread but:
https://aur.archlinux.org/packages/kcm-wacomtablet-frameworks-git/

Thanks for the heads up and installed but still no proper assigning function keys

See’s My tablet but just funky assigns all buttons to button 0

So lost of where to go from here. And frustrating why I been spending more time on the Evil Windoze Darkside.
As just works. And seems to not give any options for Left-handed and specific assigned monitor.

Have a script that does that when I run it.

[code]#!/bin/sh

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 b”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 8 “key +”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 9 “key -”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 10 “key ]”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 11 “key [”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 12 “key p”

The below value was gathered using xrandr and xinput to determine the monitor as well as which

number the HUION PenTablet Pen stylus device id listed as.

↳ HUION PenTablet Pen stylus id=15 [slave pointer (2)]

xinput map-to-output 13 VGA-0

Left handed stylus

xsetwacom set ‘HUION PenTablet Pen stylus’ rotate half[/code]

But even the script for the tablet keys doesn’t work using xsetwacom --set.
So seems no matter how many hoops can’t get tablet function keys assigned.

.

Refresh my memory, what version of the ISO did you use to install this machine?
If it was 2015.11 you may need to remove the xf86-input-libinput driver package from your system to be able to assign buttons.
The xf86-input-libinput takes over all the other input drivers xf86-input-keyboard, xf86-input-mouse, xf86-input-synaptic, xf86-input-elographics, etc., this leaves the GUI utilities for these devices to not have access to all of their features.

Also, since that AUR entry is a frameworks based KCM, shouldn’t you now have a GUI under System Settings.

I uninstalled xf86-input-libinput driver package then rebooted.
Still no joy. But when I run script above then the buttons get assigned numbers.

Still don’t know what that means as want to assign keyboard shortcuts like “Ctrl Z” for undo to Button 1 example.

Yes do have the Gui that is what is shown in images above. Must be dense as getting pretty confusing on where to assign keyboard functions as are set in the script but not invoked trying to use them.

[code]
#!/bin/sh

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 b”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 4 “key +”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 5 “key -”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 6 “key ]”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 7 “key [”
xsetwacom --set ‘HUION PenTablet Pad pad’ Button 8 “key p”[/code]

.

You would need to make sure those keyboard shortcuts are not already being used by Plasma:

System Settings > Shortcuts.
The GUI your showing is wacom-utility, I was asking about the KCM under System Settings:
https://aur.archlinux.org/packages/kcm-wacomtablet-frameworks-git/
http://kde-apps.org/content/show.php/wacom+tablet?content=114856

I don’t have a tablet but this would show up under System Settings > Input Devices > Graphic Tablet
[attachment=848]

Thanks for clearing it up. As was using the wacom and didn’t realize that there was a setting in system settings>Input devices>tablet. As didn’t see it there last time I checked there.

Guess that is what the kcm-wacomtablet-frameworks-git adds to system settings?

I’m so confused and any word on when that Bio-Neural Gel pack will reach the Repo’s?
As need to update my Outdated & Buggy one badly! ::slight_smile:

Will tackle setting it up tomorrow and chime back in on success and mark solved.