rnote icon indicating copy to clipboard operation
rnote copied to clipboard

Pen pressure being ignored

Open diminDDL opened this issue 2 years ago • 26 comments

Describe the bug Tablet pressure information seems to be ignored.

To Reproduce Steps to reproduce the behavior:

  1. Connect tablet, open OpenTabletDriver
  2. Open Rnote
  3. Use tablet
  4. No difference no matter the pressure

Expected behavior The line width would change depending on the pressure applied on the tablet.

Console Output Empty

Screenshots q

Desktop:

  • OS: KDE neon
  • Version 5.24
  • Installation source Flatpak
  • Desktop Environment KDE Plasma Version: 5.24.5

Additional context When using OpenTabletDriver with my XP-Pen G640S tablet pressure information seems to be ignored, it works perfectly in Krita. It is set to linear (all other ones ignore pressure information as well) in the settings.

diminDDL avatar Jun 01 '22 19:06 diminDDL

I had a similar problem with my Lenovo Acitve Pen 2, where the eraser button was ignored in rnote, while still working perfectly fine in other applications. At that time is was using the drivers provided by the linux kernal, installing the proper xf86-input-wacom drivers fixed the problem for me. You could check if your pen works with that driver.

bgfxc4 avatar Jun 05 '22 19:06 bgfxc4

Sorry for the late reply. But it appears that my tablet is not supported by xf86-input-wacom, considering that OpenTabletDriver aims to be a universal tablet driver it would be nice to get it fully working as well.

diminDDL avatar Jun 15 '22 21:06 diminDDL

You could also try running Rnote with X11, because if Krita works (which currently does not support wayland), it could be a wayland specific problem.

flxzt avatar Jun 16 '22 12:06 flxzt

Tried it, nothing changed unfortunately.

diminDDL avatar Jun 16 '22 17:06 diminDDL

This will get your tablet recognised as a wacom tablet. I don't know if this will solve your problem, but you may try.

Create the following file in your /etc/X11/xorg.conf.d/ folder: 50-tablet.conf

Add the following lines:

Section "InputClass"
    Identifier "Tablet"
    Driver "wacom"
    MatchDevicePath "/dev/input/event*"
    MatchUSBID "256c:006d"
EndSection

Replace the value within MatchUSBID with your tablet's ID. You can find it out your ID by using the command lsusb

TeiVDK avatar Jul 17 '22 15:07 TeiVDK

@TeiVDK It didn't change anything unfortunately.

diminDDL avatar Jul 20 '22 20:07 diminDDL

@diminDDL did you delete the OpenTabletDriver? Might be some problem with the wacom driver and the OTD not working together well.

You could try on a liveUSB and see if your tablet works with the 50-tablet.conf file and no OTD installed. Or on your normal OS, if you are confident enough.

TeiVDK avatar Jul 21 '22 12:07 TeiVDK

I am currently using this computer (and tablet) for work and don't have another one to test. So, I will test it later once I have time to do so. Thank you for the suggestion nonetheless. Although my point with opening this was to maybe introduce support for OTD without needing any extra steps on the client side.

diminDDL avatar Jul 23 '22 10:07 diminDDL

I can confirm that the pen pressure is ignored for me as well. I'm using an XP-Pen on Linux with X11 and tested that the pressure works with Krita, Gimp, and Scrivano. Rnote version: 0.5.4

robem avatar Sep 23 '22 18:09 robem

This is also happening to me on a Huion Kamvas 13, Ubuntu 20.04. I tried the wacom driver, the Huion Driver and also OpenTabletDriver, same result in all of them. Can confirm that Krita works perfectly with the wacom driver and the Huion driver (didn't seem to work with OpenTabletDriver).

matheus2740 avatar Dec 13 '22 18:12 matheus2740

Seconding this, the stylus pen pressure and buttons were ignored for me, on a Asus Zenbook, Mint 21. Stylus works perfectly in Xournalpp. Edit: Using a wacom stylus works perfectly, though this is not the case for the asus pen.

BertrandSim avatar Dec 16 '22 15:12 BertrandSim

Already tried what https://github.com/flxzt/rnote/issues/194#issuecomment-1186543056 suggested but there is still no pressure output with my UGEE S640 and Surface Pen. They both work normally on Krita and Xournal++.

I really hope this issue with non-Wacom digitizers will be resolved.

mdrv avatar Dec 27 '22 09:12 mdrv

No pressure sensitivity on my XP-Pen Deco Mini 7 too. It doesn't work with XournalPP too. Works well on Krita.

I'm using the drivers from the XP-Pen website and not the OpenTabletDriver for now, @BertrandSim Are you on the OpenTabletDriver?

P.S.: I'm on X11, Fedora.

Edit 1: After a while, I noticed that my device wasn't being detected at all in XournalPP! Seems like it was a pretty old Fedora bug. Did a bit of digging and found the solution! https://github.com/xournalpp/xournalpp/issues/2273#issuecomment-713807027

Pen pressure works in XournalPP now.

Still nothing on RNote though.

aholmes2534 avatar Jan 05 '23 18:01 aholmes2534

Also experiencing this with xencelabs tablet and pen on ubuntu20... Works normally in krita

jazzbuck avatar Feb 06 '23 22:02 jazzbuck

I have this problem on kubuntu 22 too. Every other application is able to detect pen pressure, including xournalpp and krita. Rnote is the only one with this problem.

eli0009 avatar Feb 15 '23 23:02 eli0009

Same issue here with a Huion HS611, Blender and Krita both pick it up just fine with the default libwacom drivers. Krita's flatpak'd as well, and I didn't see anything relevant lurking in Flatseal when comparing the two.

different55 avatar Mar 08 '23 00:03 different55

so i also have the same problem with my huion hs64 but the problem is fixed when i switch to wayland.i think there is some problem with x11

piyush11111raj avatar Mar 20 '23 20:03 piyush11111raj

I'm also experiencing this problem. Using Wacom One (CTL-472), OTD configured in Artist Mode and running Xorg. Xournal++ behaves well. I also noticed that switching to Wayland it works.

JohnnyLAmpAz avatar Oct 01 '23 19:10 JohnnyLAmpAz

Same problem with a Huion Kamvas 22 4k. It works in other apps. Im using Xorg and tried both OTD and Huion-drivers.

Configuring the pen buttons in rnote also does not have any effect, but im not sure i understand the settings.

saschamarco avatar Nov 21 '23 22:11 saschamarco

Confirmed on H641P with Opentabletdriver.

libinput debug-tablet report the correct values, so there must be something wrong when rnote handle the values from OS.

abd-liac avatar Dec 04 '23 06:12 abd-liac

When i switch to wayland (gnome or kde) the pen buttons work, however i still don't get pressure sensitivity. I also don't get pressure sensitivity in linwood butterfly (another very promising note taking app).

Is this a driver issue? I currently use OTD and i switched back to the huion drivers a few times but that didn't work either.

saschamarco avatar Dec 17 '23 13:12 saschamarco

As a side note, I thought I had a similar issue, but for me, it was that the pen must be on "Solid" mode rather than "Marker mode for pressure to affect width:

image

MisterE123 avatar Feb 07 '24 00:02 MisterE123