Bug 359642

Summary: [UC-LOGIC] Tablet Pressure sensitivity not working
Product: [Applications] krita Reporter: AndeOn <andeonbr-kde>
Component: Tablets (tablet issues are only very rarely bugs in Krita!)Assignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: animtim, dimula73, griffinvalley, halla
Priority: NOR    
Version: 3.0 Alpha   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
URL: https://forum.kde.org/viewtopic.php?f=288&t=130677
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: tablet-log of the reporter in a safe manner.
Tablet Log QT_LOGGING_RULES

Description AndeOn 2016-02-21 15:59:29 UTC
Pressure sensitivity not working on appimage.  I tested the following versions
3.0 Pre-alpha (http://files.kde.org/krita/3/linux/krita3-prealpha-f7f43f2-x86_64.appimage) 
and  3.0 pre -alpha 2 (http://files.kde.org/krita/3/linux/krita3-prealpha2-3c69a59-x86_64.appimage)

Tablet log  (3.0 pre -alpha 2)
https://paste.kde.org/prlkihtnc

System Ubuntu 14.04 LTS - 64 bits

Note: The same tablet works very well on krita 2.9.10 and 2.9.11  
http://digimend.github.io/tablets/UC-Logic_WP8060U/

Reproducible: Always

Steps to Reproduce:
1. Open Krita
2. Create new document
2. Select Brush
3. Draw 

Actual Results:  
The pen does not draw or ink with pressure sensitivity.
Comment 1 wolthera 2016-02-21 17:03:21 UTC
Created attachment 97342 [details]
tablet-log of the reporter in a safe manner.

Thank you very much for the log and report!

I don't own a uc logic tablet so I can't confirm, but the log says that Krita thinks your tablet is a mouse. That's VERY useful information to us.

I reuploaded the log so that it doesn't expire.
Comment 2 animtim 2016-04-17 10:18:50 UTC
*** Bug 361854 has been marked as a duplicate of this bug. ***
Comment 3 animtim 2016-04-17 10:19:30 UTC
Upstream Qt bug, reported here:
 https://bugreports.qt.io/browse/QTBUG-52626
Comment 4 Dmitry Kazakov 2016-05-05 15:14:42 UTC
Hi, AndeOn!

Could I ask you to get me a special debugging info for this tablet? Just download any AppImage copy of Krita 3.0, and run it in terminal using this line. You tablet should be connected at the moment. 

QT_LOGGING_RULES='qt.qpa.input.devices.debug=true' ./krita3-<something>.appimage

You will see alot of lines like that:

qt.qpa.input.devices: XInput version 2.2 is available and Qt supports 2.2 or greater
...
qt.qpa.input.devices: input device  Aiptek
qt.qpa.input.devices:    has 7 buttons
qt.qpa.input.devices:    it's a keyboard
qt.qpa.input.devices:    has valuator "Abs X" recognized? true
qt.qpa.input.devices:    has valuator "Abs Y" recognized? true
qt.qpa.input.devices:    has valuator "Abs Wheel" recognized? true
qt.qpa.input.devices:    has valuator "Abs Pressure" recognized? true
qt.qpa.input.devices:    has valuator "Abs Tilt X" recognized? true
qt.qpa.input.devices:    has valuator "Abs Tilt Y" recognized? true
qt.qpa.input.devices:    has valuator "Abs Misc" recognized? false
qt.qpa.input.devices:    has valuator "Rel Vert Wheel" recognized? true
qt.qpa.input.devices:    it's a tablet with pointer type "pen"
qt.qpa.input.devices:    it's a scrolling device

Please attach this output to the bugreport.

And for a case if your tablet is not recognized by the Qt, please also attach the output of xinput command:

xinput list


When you do this, we will be able to make a testing build for you to make your tablet work fine.
Comment 5 AndeOn 2016-05-06 18:18:51 UTC
Created attachment 98820 [details]
Tablet Log QT_LOGGING_RULES

Debugging info of UC-Logic Tablet WP8060U

Krita version AppImage: krita-3.0-Beta-master-37389d5-x86_64.appimage 
OS: Ubuntu 14.04 LTS 64 bits

* Debugging info too on Kde Paste: https://paste.kde.org/pl09fudz7
Comment 6 Dmitry Kazakov 2016-05-17 12:00:07 UTC
Here is a proposed patch to fix this problem. Now we should make new builds and test on that tablet. If the problem is fixed, the patch should be backported upstream to Qt

https://phabricator.kde.org/P39
Comment 7 Dmitry Kazakov 2016-05-17 13:24:09 UTC
Git commit a73c0de6d19094a262185f7e88c08cb710d4f5a6 by Dmitry Kazakov.
Committed on 17/05/2016 at 13:23.
Pushed by dkazakov into branch 'master'.

A testing patch for the UC-LOGIC devices

The patch hasn't been tested on a real device yet. Just push it
to make package building easier.

M  +4    -0    libs/ui/input/wintab/qxcbconnection_xi2.cpp

http://commits.kde.org/krita/a73c0de6d19094a262185f7e88c08cb710d4f5a6
Comment 8 Dmitry Kazakov 2016-05-17 20:28:32 UTC
Hi, AndeOn!

Could you please check this build? Now your tablet should be recognized:

http://files.kde.org/krita/3/linux/krita-3.0-RC-1-master-6f75b0f-x86_64.appimage

If not, please attach the new output of the command in comment 4.
Comment 9 AndeOn 2016-05-17 21:32:31 UTC
Hi, Dmitry!

It works now!  The Proof in video below :)

https://youtu.be/mq2vFfSGIms

Thank you for create the support to UC-Logic tablets.