flxzt / rnote

Sketch and take handwritten notes.
https://rnote.flxzt.net
GNU General Public License v3.0
8.25k stars 286 forks source link

Pen pressure being ignored #194

Open diminDDL opened 2 years ago

diminDDL commented 2 years ago

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:

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.

bgfxc4 commented 2 years ago

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.

diminDDL commented 2 years ago

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.

flxzt commented 2 years ago

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.

diminDDL commented 2 years ago

Tried it, nothing changed unfortunately.

TeiVDK commented 2 years ago

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

diminDDL commented 2 years ago

@TeiVDK It didn't change anything unfortunately.

TeiVDK commented 2 years ago

@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.

diminDDL commented 2 years ago

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.

robem commented 2 years ago

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

matheus2740 commented 1 year ago

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).

BertrandSim commented 1 year ago

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.

mdrv commented 1 year ago

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.

aholmes2534 commented 1 year ago

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.

jazzbuck commented 1 year ago

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

eli0009 commented 1 year ago

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.

different55 commented 1 year ago

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.

piyush11111raj commented 1 year ago

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

JohnnyLAmpAz commented 1 year ago

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.

saschamarco commented 11 months ago

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.

abd-liac commented 11 months ago

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.

saschamarco commented 10 months ago

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.

MisterE123 commented 9 months ago

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

vanyka commented 5 months ago

I have the same problem. However my assumption is that the problem is flatpak specific, because when i installed rnote via the unofficial snap then the pressure detection worked perfectly fine.

gepbird commented 5 months ago

It's not (only) flatpak specific, I'm using it from nixpkgs which builds rnote from source and I have the same issue. Pressure works in Krita, but it doesn't work in rnote. My tablet is VEIKK S640 and I'm using OpenTabletDriver on X11.

cd-FileX commented 4 months ago

Still experiencing on Huion H1060P, if this is relevant.

Salah1221 commented 4 months ago

I have the same issue, I am using VEIKK A15 Pro with OpenTabletDriver on X11. The pressure sensitivity works fine in xournal++

Edit: When trying the app on wayland, the issue isn't present

ucimo commented 1 month ago

Linux Mint 21, XP pen Deco 02. Same issue.