[krita] [Bug 404860] Tablet pressure not working in hidpi

2019-04-17 Thread Davide Baldo
https://bugs.kde.org/show_bug.cgi?id=404860

--- Comment #7 from Davide Baldo  ---
Hi Dimitry,

I just tested it and works like a charm! :)

Thank you

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404860] Tablet pressure not working in hidpi

2019-02-26 Thread Davide Baldo
https://bugs.kde.org/show_bug.cgi?id=404860

--- Comment #5 from Davide Baldo  ---
screen #0:
  dimensions:3840x2160 pixels (391x220 millimeters)
  resolution:249x249 dots per inch
  depths (7):24, 1, 4, 8, 15, 16, 32
  root window id:0x24e
  depth of root window:24 planes
  number of colormaps:minimum 1, maximum 1
  default colormap:0xb0
  default number of colormap cells:256
  preallocated pixels:black 0, white 16777215
  options:backing-store WHEN MAPPED, save-unders NO
  largest cursor:64x64
  current input event mask:0xfa8031
KeyPressMask EnterWindowMask  LeaveWindowMask  
ExposureMask StructureNotifyMask  SubstructureNotifyMask   
SubstructureRedirectMask FocusChangeMask  PropertyChangeMask   
ColormapChangeMask   
  number of visuals:132

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404860] Tablet pressure not working in hidpi

2019-02-26 Thread Davide Baldo
https://bugs.kde.org/show_bug.cgi?id=404860

--- Comment #4 from Davide Baldo  ---
just to be as complete as possible

name of display::0
version number:11.0
vendor string:The X.Org Foundation
vendor release number:12003000
X.Org version: 1.20.3
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:32, LSBFirst, 32
image byte order:LSBFirst
number of supported pixmap formats:7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:minimum 8, maximum 255
focus:  window 0x287, revert to PointerRoot
number of extensions:28
BIG-REQUESTS
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
DRI2
GLX
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
NV-CONTROL
NV-GLX
Present
RANDR
RECORD
RENDER
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XFree86-DGA
XFree86-VidModeExtension
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
default screen number:0
number of screens:1

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404860] Tablet pressure not working in hidpi

2019-02-26 Thread Davide Baldo
https://bugs.kde.org/show_bug.cgi?id=404860

--- Comment #3 from Davide Baldo  ---
> * What happens if you use Krita's internal switch to enable hidpi (in the 
> settings dialog) instead of the old environment variables?

QT_AUTO_SCREEN_SCALE_FACTOR="" QT_SCREEN_SCALE_FACTORS=""
./krita-4.2.0-pre-alpha-7d4289d-x86_64.appimage
scales correctly but no pen pressure

> * Does this also happen with the nightly build appimage?
Yes, downloaded krita-4.2.0-pre-alpha-7d4289d-x86_64.appimage
scales correctly but no pen pressure


I also noticed that sometime the pen doesn't work anymore (at all, can't draw
anything not only pressure) randomly, has something to do with focus and
sometimes happens when i press tab, workaround is to move cursor outside krita
and back inside.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404860] Tablet pressure not working in hidpi

2019-02-26 Thread Davide Baldo
https://bugs.kde.org/show_bug.cgi?id=404860

--- Comment #1 from Davide Baldo  ---
my screen is a 15" 4k

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404860] New: Tablet pressure not working in hidpi

2019-02-26 Thread Davide Baldo
https://bugs.kde.org/show_bug.cgi?id=404860

Bug ID: 404860
   Summary: Tablet pressure not working in hidpi
   Product: krita
   Version: 4.1.7
  Platform: Gentoo Packages
OS: Linux
Status: REPORTED
  Severity: major
  Priority: NOR
 Component: tablet support
  Assignee: krita-bugs-n...@kde.org
  Reporter: dav...@baldo.me
  Target Milestone: ---

SUMMARY


STEPS TO REPRODUCE
1. QT_AUTO_SCREEN_SCALE_FACTOR="" ~/Downloads/krita-4.1.7-x86_64.appimage
2. krita opens and it's sized correctly :)
3. draw with pressure sensitive brush: pressure is IGNORED

1. QT_AUTO_SCREEN_SCALE_FACTOR="0" ~/Downloads/krita-4.1.7-x86_64.appimage
2. krita opens and it's really small :(
3. draw with pressure sensitive brush: pressure is CORRECT

with hidpi(QT_AUTO_SCREEN_SCALE_FACTOR="") sometime under unknown condition the
pressure works.
without hidpi(QT_AUTO_SCREEN_SCALE_FACTOR="0") krita pressure always work.

This happens with both USB and BLUETOOTH wacom intous 2018 (top 4 buttons in a
raw without eraser).
This also happen with native krita (4.1.7-r1)


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  gentoo/kernel 4.14.61
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 960M/PCIe/SSE2
OpenGL core profile version string: 4.5.0 NVIDIA 415.27
OpenGL core profile shading language version string: 4.50 NVIDIA


$ lsusb -v
Bus 001 Device 009: ID 056a:0376 Wacom Co., Ltd 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  idVendor   0x056a Wacom Co., Ltd
  idProduct  0x0376 
  bcdDevice1.07
  iManufacturer   1 Wacom Co.,Ltd.
  iProduct2 Intuos BT S
  iSerial 3 XXX
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   34
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0x80
  (Bus Powered)
MaxPower  500mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 3 Human Interface Device
  bInterfaceSubClass  0 
  bInterfaceProtocol  0 
  iInterface  0 
HID Device Descriptor:
  bLength 9
  bDescriptorType33
  bcdHID   1.10
  bCountryCode0 Not supported
  bNumDescriptors 1
  bDescriptorType34 Report
  wDescriptorLength 759
 Report Descriptors: 
   ** UNAVAILABLE **
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0040  1x 64 bytes
bInterval   1
Device Status: 0x
  (Bus Powered)

$ set | grep QT_
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_GRAPHICSSYSTEM=native
QT_IM_MODULE=fcitx
QT_SCREEN_SCALE_FACTORS='eDP-1=2.6;DP-1=2.6;HDMI-1=2.6;DP-2=2.6;'

$ ldd /usr/bin/krita
linux-vdso.so.1 (0x7ffefe773000)
libkritaui.so.17 => /usr/lib64/libkritaui.so.17 (0x7f7127a2b000)
libKF5Crash.so.5 => /usr/lib64/libKF5Crash.so.5 (0x7f7127823000)
libkritawidgetutils.so.17 => /usr/lib64/libkritawidgetutils.so.17
(0x7f71274e)
libkritaglobal.so.17 => /usr/lib64/libkritaglobal.so.17
(0x7f71272aa000)
libKF5I18n.so.5 => /usr/lib64/libKF5I18n.so.5 (0x7f7127059000)
libQt5Widgets.so.5 => /usr/lib64/libQt5Widgets.so.5
(0x7f7126803000)
libQt5Gui.so.5 => /usr/lib64/libQt5Gui.so.5 (0x7f7126116000)
libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5 (0x7f7125a69000)
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libstdc++.so.6
(0x7f7125662000)
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/libgcc_s.so.1
(0x7f712544a000)
libc.so.6 => /lib64/libc.so.6 (0x7f7125084000)
libQt5Network.so.5 => /usr/lib64/libQt5Network.so.5
(0x7f7124cf2000)
libkritaimpex.so.17 => /usr/lib64/libkritaimpex.so.17
(0x7f7124ad6000)
libkritacolor.so.17 => /usr/lib64/libkritacolor.so.17
(0x7f71248d2000)
libkritalibbrush.so.17 => /usr/lib64/libkritalibbrush.so.17
(0x7f7124676000)
libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x7f712444)