Bug 359642 - [UC-LOGIC] Tablet Pressure sensitivity not working
Summary: [UC-LOGIC] Tablet Pressure sensitivity not working
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 3.0 Alpha
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL: https://forum.kde.org/viewtopic.php?f...
Keywords:
: 361854 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-21 15:59 UTC by AndeOn
Modified: 2016-05-18 05:31 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
tablet-log of the reporter in a safe manner. (45.38 KB, text/plain)
2016-02-21 17:03 UTC, wolthera
Details
Tablet Log QT_LOGGING_RULES (6.68 KB, text/plain)
2016-05-06 18:18 UTC, AndeOn
Details

Note You need to log in before you can comment on or make changes to this bug.
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.