Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pen pressure being ignored #194

Open
diminDDL opened this issue Jun 1, 2022 · 27 comments
Open

Pen pressure being ignored #194

diminDDL opened this issue Jun 1, 2022 · 27 comments
Labels
bug Something isn't working input input related issues

Comments

@diminDDL
Copy link
Contributor

diminDDL commented Jun 1, 2022

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 diminDDL changed the title pen pressure being ignored Pen pressure being ignored Jun 1, 2022
@flxzt flxzt added the bug Something isn't working label Jun 2, 2022
@bgfxc4
Copy link

bgfxc4 commented Jun 5, 2022

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
Copy link
Contributor Author

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
Copy link
Owner

flxzt commented Jun 16, 2022

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
Copy link
Contributor Author

Tried it, nothing changed unfortunately.

@TeiVDK
Copy link
Contributor

TeiVDK commented Jul 17, 2022

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
Copy link
Contributor Author

@TeiVDK It didn't change anything unfortunately.

@TeiVDK
Copy link
Contributor

TeiVDK commented Jul 21, 2022

@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
Copy link
Contributor Author

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
Copy link

robem commented Sep 23, 2022

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
Copy link

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
Copy link

BertrandSim commented Dec 16, 2022

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
Copy link

mdrv commented Dec 27, 2022

Already tried what #194 (comment) 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
Copy link

aholmes2534 commented Jan 5, 2023

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!
xournalpp/xournalpp#2273 (comment)

Pen pressure works in XournalPP now.

Still nothing on RNote though.

@jazzbuck
Copy link

jazzbuck commented Feb 6, 2023

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

@eli0009
Copy link

eli0009 commented Feb 15, 2023

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
Copy link

different55 commented Mar 8, 2023

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
Copy link

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
Copy link
Contributor

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.

@flxzt flxzt added the input input related issues label Nov 12, 2023
@saschamarco
Copy link

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
Copy link

abd-liac commented Dec 4, 2023

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
Copy link

saschamarco commented Dec 17, 2023

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
Copy link

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
Copy link

vanyka commented May 25, 2024

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
Copy link
Contributor

gepbird commented May 25, 2024

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
Copy link

Still experiencing on Huion H1060P, if this is relevant.

@Salah1221
Copy link

Salah1221 commented Jun 30, 2024

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
Copy link

ucimo commented Oct 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working input input related issues
Projects
None yet
Development

No branches or pull requests