Bug 389881 - [HUOIN] pen pressure not recognised
Summary: [HUOIN] pen pressure not recognised
Status: RESOLVED LATER
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 3.3.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-04 17:56 UTC by kdebug
Modified: 2018-03-11 10:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kdebug 2018-02-04 17:56:52 UTC
using a huion kamvas gt191 tablet.
pen is working but no pressure sensitivity in krita.
pressure sensitivity is working in gimp.

please let me know any debug information required, hope this issue can be solved.
Comment 1 Halla Rempt 2018-02-04 18:58:27 UTC
Please first update to the latest stable version of Krita, 3.3.3 and try again. If Debian doesn't have that, use the appimage. 

Still, in pretty much all cases where Krita doesn't get pressure info, it's a driver or system setup problem, and not a bug in Krita. Whether or not Gimp works or not is completely irrelevant.
Comment 2 kdebug 2018-02-05 20:19:02 UTC
I have upgraded to 3.3.3, and debian testing but the problem remains the same.
Pressure is working in gimp, inkscape and xournal.
Comment 3 kdebug 2018-02-07 15:50:41 UTC
I have upgraded to 3.3.3, and debian testing but the problem remains the same.
Pressure is working in gimp, inkscape and xournal.

Please let me know any debug information required, hope this issue can be solved.
Comment 4 Halla Rempt 2018-02-07 16:12:31 UTC
As I said, whether or not gimp works is irrelevant: those are GTK-based applications. You could try to add a tablet log: https://docs.krita.org/KritaFAQ#What_if_your_tablet_is_not_recognized_by_Krita.3F , but chances are slim that we can do anything about it.
Comment 5 kdebug 2018-02-07 16:59:27 UTC
I understand, here is all the information asked for.
Please let me know if you have any suggestions.
Thanks very much.

lsmod : https://pastebin.com/RsyvcLMv
xinput list : https://pastebin.com/iu5zwyJh
xinput list-props : https://pastebin.com/Nf9gwFTA
log of the tablet events : https://pastebin.com/WQsAFALb
Comment 6 Quiralta 2018-02-07 19:20:28 UTC
(In reply to kdebug from comment #5)
> I understand, here is all the information asked for.
> Please let me know if you have any suggestions.
> Thanks very much.
> 
> lsmod : https://pastebin.com/RsyvcLMv
> xinput list : https://pastebin.com/iu5zwyJh
> xinput list-props : https://pastebin.com/Nf9gwFTA
> log of the tablet events : https://pastebin.com/WQsAFALb

Your xinput doesn't even show a "Pad pad" device (usually the one that shows tablets are working) or stylus, which makes it odd that actually works somewhere else, I would recommend to go to the Digimend site and see if someone is sharing the same issues you have, as far as I know the kernels have borrowed what ever Digimend drivers had made to make tablets work (non wacom) your tablet may be too knew for your kernel, trying Digimend drivers would be one of my first choices.

Hopefully you find something there: https://github.com/DIGImend
Comment 7 kdebug 2018-02-08 03:37:54 UTC
> > lsmod : https://pastebin.com/RsyvcLMv
> > xinput list : https://pastebin.com/iu5zwyJh
> > xinput list-props : https://pastebin.com/Nf9gwFTA
> > log of the tablet events : https://pastebin.com/WQsAFALb
> 
> Your xinput doesn't even show a "Pad pad" device (usually the one that shows
> tablets are working) or stylus, which makes it odd that actually works
> somewhere else, I would recommend to go to the Digimend site and see if
> someone is sharing the same issues you have, as far as I know the kernels
> have borrowed what ever Digimend drivers had made to make tablets work (non
> wacom) your tablet may be too knew for your kernel, trying Digimend drivers
> would be one of my first choices.
> 
> Hopefully you find something there: https://github.com/DIGImend

Unfortunately the kamvas gt191 is a newer tablet and is not supported by digimend. It does not look like this will change any time soon.
I am using the following driver which was written in C, 
https://github.com/TheJackiMonster/HuionGT191LinuxDriver

this is based off of a userspace driver that was written in python to deal
with the digimend not supporting this newer tablet.
https://github.com/benthor/HuionKamvasGT191LinuxDriver
I could not get the python driver to work but the C driver seems to work
fine other than pen pressure in Krita.
Comment 8 Halla Rempt 2018-02-08 08:43:50 UTC
I guess that kis_x11_atomnames in kis_tabet_support_x11.cpp could be extended to recognize the way this driver advertises itself, but figuring out without access to the actual hardware is going to be rather tricky. From your output, it looks like you've also got a wacom tablet connected?
Comment 9 kdebug 2018-02-08 09:18:56 UTC
> From your output, it looks like you've also got a wacom tablet connected?

I have the wacom express key remote as the huion graphics tablet does not have any buttons.
Comment 10 Halla Rempt 2018-02-16 13:50:59 UTC
This really needs someone who can build Krita and has access to the hardware. Specifically, void QXcbConnection::xi2SetupDevices() needs to be debugged, so we can figure out what name to react to. Even then, given that your xinput list output doesn't show any stylus pointer means that the driver isn't doing its job. 

Note that Nikolaoi is working on Digiment again. He's received a bunch of hardware from Huion. I think it would be a good idea to support his work: https://www.patreon.com/posts/huion-tablets-17016636 -- for now, I'm closing this bug as LATER because we cannot do anything about it at the moment.
Comment 11 kdebug 2018-03-11 10:53:23 UTC
(In reply to Boudewijn Rempt from comment #10)
> This really needs someone who can build Krita and has access to the
> hardware. Specifically, void QXcbConnection::xi2SetupDevices() needs to be
> debugged, so we can figure out what name to react to. Even then, given that
> your xinput list output doesn't show any stylus pointer means that the
> driver isn't doing its job. 
> 
> Note that Nikolaoi is working on Digiment again. He's received a bunch of
> hardware from Huion. I think it would be a good idea to support his work:
> https://www.patreon.com/posts/huion-tablets-17016636 -- for now, I'm closing
> this bug as LATER because we cannot do anything about it at the moment.

I have access to the hardware and am happy to build krita (or at least try to).
Yes Nikolai has been doing sterling work, but the tablets supplied to him by Huion so far are not the type with a screen built in.