Bug 343552

Summary: In Arch64, the stylus has no pressure sensitivity in Krita but works well in MyPaint and GIMP
Product: [Applications] krita Reporter: ilovepumpkin
Component: Tablets (tablet issues are only very rarely bugs in Krita!)Assignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: dimula73, griffinvalley, halla, ohmygod19993, welcome
Priority: NOR    
Version First Reported In: 2.9 Beta   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Krita logs

Description ilovepumpkin 2015-01-30 02:33:27 UTC
I installed latest Arch64 using archbang (archbang-150121-x86_64.iso). And installed Krita from the extra repository (https://www.archlinux.org/packages/extra/x86_64/calligra-krita/) and configured my Genius Tablet following the Archlinux Wiki (https://wiki.archlinux.org/index.php/Genius_Tablet). Now my tablet  works well in MyPaint and GIMP (with presser sensitivity) but not in Krita. 

Reproducible: Always

Steps to Reproduce:
1.Install Arch64 with Archbang (archbang-150121-x86_64.iso)
2.Install Krita from extra repository (https://www.archlinux.org/packages/extra/x86_64/calligra-krita/)
3.Configure my tablet following Achlinux Wiki (https://wiki.archlinux.org/index.php/Genius_Tablet)

Actual Results:  
The pressure sensitivity of my tablet works well in MyPaint and GIMP but not in Krita.

Expected Results:  
The pressure sensitivity of my tablet works well in Krita, too.
Comment 1 Halla Rempt 2015-01-30 10:01:37 UTC
Please update to Krita 2.9 beta 2. That has some support for the Genius tablets, though it isn't perfect yet (see https://bugs.kde.org/show_bug.cgi?id=342641)
Comment 2 ilovepumpkin 2015-02-01 11:22:16 UTC
(In reply to Boudewijn Rempt from comment #1)
> Please update to Krita 2.9 beta 2. That has some support for the Genius
> tablets, though it isn't perfect yet (see
> https://bugs.kde.org/show_bug.cgi?id=342641)

Thank you so much for your reply. I will gave it a try.
Comment 3 ilovepumpkin 2015-02-05 13:54:55 UTC
I installed Krita 2.9 beta 2 but my genius tablet still does not work. I also tried Windows 8.1 and my genius tablet works well. Looks like only in Krita my genius tablet does not work. I even tried to install plasma because I remember I saw that the stlyus pressure issue happens in low Qt version but still no lucky. 

Could you please let me know what debug information I should give ? Thanks.
Comment 4 ilovepumpkin 2015-02-05 14:26:02 UTC
Not sure if this is helpful. 
=======================================================
[ilovepumpkin@ruige ~]$ krita 
libpng warning: iCCP: too many profiles
libpng warning: iCCP: too many profiles
libpng warning: iCCP: too many profiles
libpng warning: iCCP: too many profiles
connect failed: No such file or directory
krita(1757)/koffice (lib komain) KoRuler::createGuideToolConnection: No guides tool found, skipping connection 
krita(1757)/koffice (lib komain) KoRuler::createGuideToolConnection: No guides tool found, skipping connection 
krita(1757) CanvasData::activateToolActions: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]" 
krita(1757) CanvasData::activateToolActions: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+[" 
krita(1757) CanvasData::activateToolActions: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]" 
krita(1757) CanvasData::activateToolActions: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+[" 
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
KUndo2QStack::setUndoLimit(): an undo limit can only be set when the stack is empty
OpenGL version 1.1 or higher is present. 
OpenGL version 1.2 or higher is present. 
OpenGL version 1.3 or higher is present. 
OpenGL version 1.4 or higher is present. 
OpenGL version 1.5 or higher is present. 
OpenGL version 2.0 or higher is present. 
OpenGL version 2.1 or higher is present. 
OpenGL version 3.0 or higher is present.
Comment 5 Halla Rempt 2015-02-05 14:31:25 UTC
No, not really. If you check  https://bugs.kde.org/show_bug.cgi?id=342641, you'll the output of another genius tablet user on Arch Linux. When he starts Krita on the commandline, it prints out the tablet information. If that doesn't happen for you, the tablet isn't found at all.

So, either you have a different model that we don't know about, or your setup is in a significant way different Storm's...
Comment 6 ilovepumpkin 2015-02-06 12:09:42 UTC
Here is my tablet - http://www.amazon.com/Ugee-Top-End-Graphics-Tablet-Built-/dp/B00J2JGJUA/ref=sr_1_5?s=pc&ie=UTF8&qid=1423223732&sr=1-5

I followed this Wiki to configure my tablet - https://wiki.archlinux.org/index.php/Genius_Tablet 

I paste my 'lsusb' ouptut and the content of my 67-xorg-wizardpen.rules here.
============================================================
[ilovepumpkin@ruige ~]$ lsusb
Bus 003 Device 002: ID 8087:8000 Intel Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:07dc Intel Corp. 
Bus 001 Device 004: ID 5986:055e Acer, Inc 
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 008: ID 28bd:0074  
Bus 001 Device 007: ID 1e3d:2093 Chipsbank Microelectronics Co., Ltd CBM209x Flash Drive (OEM)
Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[ilovepumpkin@ruige ~]$ more /etc/udev/rules.d/67-xorg-wizardpen.rules
# to configure the active area, pressure sensitivity and other settings see
# /usr/share/X11/xorg.conf.d/70-wizardpen.conf

ACTION!="add|change", GOTO="xorg_wizardpen_end"
SUBSYSTEM!="input", GOTO="xorg_wizardpen_end"

# KYE Systems Corp Wide Screen Design Tablet TB-7300
ENV{ID_VENDOR_ID}=="0458",  ENV{ID_MODEL_ID}=="5003", ENV{x11_driver}="wizardpen"
# KYE Systems Corp Wide Screen Design Tablet TB-7300
ENV{ID_VENDOR_ID}=="0458",  ENV{ID_MODEL_ID}=="5004", ENV{x11_driver}="wizardpen"
# AceCad Corp Flair II GT-504
ENV{ID_VENDOR_ID}=="0460",  ENV{ID_MODEL_ID}=="0004", ENV{x11_driver}="wizardpen"

# Waltop
ENV{ID_VENDOR_ID}=="172f",  ENV{ID_MODEL_ID}=="0038", ENV{x11_driver}="wizardpen"

# UC-Logic Technology Corp
# SuperPen WP3325U Tablet
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="0002", ENV{x11_driver}="wizardpen"
# WP4030, Genius MousePen 4x3 Tablet/Aquila L1 Tablet
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="0003", ENV{x11_driver}="wizardpen"
# WP5540, Genius MousePen 5x4 Tablet
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="0004", ENV{x11_driver}="wizardpen"
# WP8060, Genius MousePen 8x6 Tablet, Trust TB-6300
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="0005", ENV{x11_driver}="wizardpen"
# Genius PenSketch 6x8 Tablet
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="0041", ENV{x11_driver}="wizardpen"
# Genius PenSketch 12x9 Tablet
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="0042", ENV{x11_driver}="wizardpen"
# Digital Organizer (may not exist)
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="6000", ENV{x11_driver}="wizardpen"
# Genius G-Note 5000
ENV{ID_VENDOR_ID}=="5543", ENV{ID_MODEL_ID}=="6001", ENV{x11_driver}="wizardpen"

ENV{ID_VENDOR_ID}=="28bd", ENV{ID_MODEL_ID}=="0074", ENV{x11_driver}="wizardpen"
ENV{ID_VENDOR_ID}=="1e3d", ENV{ID_MODEL_ID}=="2093", ENV{x11_driver}="wizardpen"
ENV{ID_VENDOR_ID}=="1a40", ENV{ID_MODEL_ID}=="0101", ENV{x11_driver}="wizardpen"

# disable the /dev/input/mouseX device
ENV{x11_driver}=="wizardpen", KERNEL=="mouse*", ENV{x11_driver}=""

# Specify this device as a tablet to the xorg config
ENV{x11_driver}=="wizardpen", KERNEL=="event*", ENV{ID_INPUT.tags}="wizardpen"
ENV{x11_driver}=="wizardpen", KERNEL=="event*", ENV{ID_INPUT_TABLET}="1"

LABEL="xorg_wizardpen_end"
[ilovepumpkin@ruige ~]$ 
====================================================================

The following three lines are what I added to enable my tablet. 
--------------------------------------------------------------------------------------------------------------------------------
ENV{ID_VENDOR_ID}=="28bd", ENV{ID_MODEL_ID}=="0074", ENV{x11_driver}="wizardpen"
ENV{ID_VENDOR_ID}=="1e3d", ENV{ID_MODEL_ID}=="2093", ENV{x11_driver}="wizardpen"
ENV{ID_VENDOR_ID}=="1a40", ENV{ID_MODEL_ID}=="0101", ENV{x11_driver}="wizardpen"
--------------------------------------------------------------------------------------------------------------------------------

Any other information which could help? 

Meanwhile I will ask Storm if he did any other steps beyond that Wiki page. 

Thanks.
Comment 7 ilovepumpkin 2015-02-10 02:33:51 UTC
Update the status on my side - I have sent an email to Storm but didn't get any reply yet. Is there any other means to reach him (except Email)?
Comment 8 Dmitry Kazakov 2015-02-10 07:14:15 UTC
Hi, ilovepumpkin!

Could you please generate a tablet log for me?

Here is how to do it:
https://answers.launchpad.net/krita-ru/+faq/2495

On step 5) please do two separate strokes with varying pressure from zero to maximum and back.
Comment 9 Halla Rempt 2015-02-10 08:03:19 UTC
He's sometimes on irc.
Comment 10 ilovepumpkin 2015-02-13 12:04:55 UTC
Created attachment 91045 [details]
Krita logs
Comment 11 ilovepumpkin 2015-02-13 12:05:47 UTC
(In reply to Dmitry Kazakov from comment #8)
> Hi, ilovepumpkin!
> 
> Could you please generate a tablet log for me?
> 
> Here is how to do it:
> https://answers.launchpad.net/krita-ru/+faq/2495
> 
> On step 5) please do two separate strokes with varying pressure from zero to
> maximum and back.

Sorry for my late reply. I attached my Krita logs as a file.
Comment 12 ilovepumpkin 2015-02-13 12:06:41 UTC
(In reply to Boudewijn Rempt from comment #9)
> He's sometimes on irc.

Ah, I never use IRC unfortunately. Thanks for your reply.
Comment 13 lin ziyuan 2015-02-17 05:00:18 UTC
I have the same problem.I am using Ugee EX07,followed instruments from archwiki and succeed with xf86-video-wizardpen driver.

I insert this line to 67-xorg-wizardpen.rules :

ENV{ID_VENDOR_ID}=="28bd", ENV{ID_MODEL_ID}=="0071", ENV{x11_driver}="wizardpen", ENV{ID_MODEL}="stylus"

after that I modified /etc/X11/xorg.conf.d/70-wizardpen.conf to the following:

Section "InputClass"
   Identifier "stylus"
   MatchIsTablet "on"
   MatchDevicePath "/dev/input/event*"
   MatchVendor "UGTABLET"
   MatchTag "wizardpen"
   Driver "wizardpen"
   Option          "Device"        "/dev/input/by-id/usb-UGTABLET_TABLET_EX_07-event-mouse"  
   Option          "TopX"          "518"
   Option          "TopY"          "735"
   Option          "BottomX"       "32767"
   Option          "BottomY"       "32767"
EndSection
Section "InputClass"
   Identifier "wizardpen ignore mouse dev"
   MatchIsTablet "on"
   MatchDevicePath "/dev/input/by-id/usb-UGTABLET_TABLET_EX_07-event-mouse"
   MatchVendor "UC-LOGIC|KYE Systems|Ace Cad|WALTOP|Waltop|UGTABLET"
   Driver ""
EndSection

Pressure works well in gimp and mypaint.However,the tablet is not recognized by krita at all (no terminal output about my tablet and pressure not working)

dmesg information about my tablet:

[13383.132420] usb 2-1.1.4: new full-speed USB device number 26 using ehci-pci
[13383.211083] input: UGTABLET TABLET EX 07  as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1.4/2-1.1.4:1.0/0003:28BD:0071.0028/input/input40
[13383.211206] hid-generic 0003:28BD:0071.0028: input,hidraw0: USB HID v1.00 Mouse [UGTABLET TABLET EX 07 ] on usb-0000:00:1d.0-1.1.4/input0
[13383.215345] hid-generic 0003:28BD:0071.0029: hiddev0,hidraw1: USB HID v1.00 Device [UGTABLET TABLET EX 07 ] on usb-0000:00:1d.0-1.1.4/input1

Xorg log about my tablet:

[ 13390.452] (II) config/udev: Adding input device UGTABLET TABLET EX 07  (/dev/input/event6)
[ 13390.452] (**) UGTABLET TABLET EX 07 : Applying InputClass "evdev pointer catchall"
[ 13390.452] (**) UGTABLET TABLET EX 07 : Applying InputClass "evdev tablet catchall"
[ 13390.452] (**) UGTABLET TABLET EX 07 : Applying InputClass "UGEE EX07"
[ 13390.452] (**) UGTABLET TABLET EX 07 : Applying InputClass "stylus"
[ 13390.452] (II) Using input driver 'wizardpen' for 'UGTABLET TABLET EX 07 '
[ 13390.452] (**) UGTABLET TABLET EX 07 : always reports core events
[ 13390.452] (**) Option "Device" "/dev/input/by-id/usb-UGTABLET_TABLET_EX_07-event-mouse"
[ 13390.452] (--) UGTABLET TABLET EX 07 : MaxX:32767 MaxY:32767 MaxZ:1023
[ 13390.452] (--) UGTABLET TABLET EX 07 : aspect ratio:0.00:1
[ 13390.452] (**) UGTABLET TABLET EX 07  is in absolute mode
[ 13390.452] (II) UGTABLET TABLET EX 07 : ScreenX = 1366, ScreenY = 768
[ 13390.452] (**) UGTABLET TABLET EX 07 : TopX                   = 518
[ 13390.452] (**) UGTABLET TABLET EX 07 : TopY                   = 735
[ 13390.452] (**) UGTABLET TABLET EX 07 : BottomX                = 32767
[ 13390.452] (**) UGTABLET TABLET EX 07 : BottomY                = 32767
[ 13390.452] (**) UGTABLET TABLET EX 07 : TopZ    (min pressure) = 0
[ 13390.452] (**) UGTABLET TABLET EX 07 : BottomZ (max pressure) = 1023
[ 13390.452] (**) UGTABLET TABLET EX 07 : MouseSpeed = 24
[ 13390.452] (**) UGTABLET TABLET EX 07 : MouseAccel = 1
[ 13390.452] (**) UGTABLET TABLET EX 07 : always reports core events
[ 13390.467] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1.4/2-1.1.4:1.0/0003:28BD:0071.0028/input/input40/event6"
[ 13390.467] (II) XINPUT: Adding extended input device "UGTABLET TABLET EX 07 " (type: WizardPen Tablet, id 10)
[ 13390.467] (II) UGTABLET TABLET EX 07  Increment: 23
[ 13390.468] (**) UGTABLET TABLET EX 07 : (accel) keeping acceleration scheme 1
[ 13390.468] (**) UGTABLET TABLET EX 07 : (accel) acceleration profile 0
[ 13390.468] (**) UGTABLET TABLET EX 07 : (accel) acceleration factor: 2.000
[ 13390.468] (**) UGTABLET TABLET EX 07 : (accel) acceleration threshold: 4
[ 13390.469] (II) config/udev: Adding input device UGTABLET TABLET EX 07  (/dev/input/mouse0)
[ 13390.469] (II) No input driver specified, ignoring this device.
[ 13390.469] (II) This device may have been added with another device file.
Comment 14 ilovepumpkin 2015-04-11 15:06:45 UTC
Help! Is there anyone could help on this case?
Comment 15 Camille Bissuel 2015-06-23 13:05:49 UTC
I can only say it doesn't occur with a Wacom tablet on Arch 64 too. So it seem Genius related, and I don't have such a tablet...
Did you tried with an Ubuntu liveCD ?
Comment 16 ilovepumpkin 2015-07-12 14:03:55 UTC
I think you are right - it is genius tablet specific issue. I have already found a workaround by modifying Krita's source code - https://forum.kde.org/viewtopic.php?f=139&t=98347&start=210 , the last comment is mine. Unless someone could help me commit the code, this bug can be closed. Thanks  anyway for your response!
Comment 17 wolthera 2016-02-06 17:40:41 UTC
does this still happen with the pre-alpha?
Comment 18 Halla Rempt 2016-02-08 07:45:57 UTC
Hm, the extra definition isn't in place in 3.0 either.
Comment 19 Halla Rempt 2016-02-08 07:47:24 UTC
Pushed to 3.0 in c05eefb
Comment 20 ilovepumpkin 2016-02-24 13:55:13 UTC
(In reply to Boudewijn Rempt from comment #19)
> Pushed to 3.0 in c05eefb

Thanks a lot for fixing this - I have been waiting for today for long time, :). How could I verify this bug before 3.0 is released or someone else will help do this?