Comments (6)
Unfortunately, I don't have access to any Wayland-based system to test it on myself. I think it's most likely that there is some issue with the pressure detection. Does the drawing that is created when painting with the tablet reflect the size of the painting correctly? (i.e. is it an empty box corresponding in size to what you drew?) Also, when drawing with the tablet, is there any output to stdout (you may have to run the binary in a terminal if you don't already) of the form old: <number>, new: <number>
?
from notekit.
Yes, there seems to be a bounding box around the "blank" drawing. There is also output on the terminal, so it's being recognized, just the drawing itself isn't shown. I have attached a screenshot below to better help debug it.
== This is notekit, built at Mon Apr 27 08:48:48 2020. ==
Detected paths:
Config: /home/andersonjwan/.config/notekit
Active notes path: /home/andersonjwan/.local/share/notekit
Default notes path: /home/andersonjwan/.local/share/notekit
Resource path: /usr/share//notekit
color1
autosave
old: 11, new: 6
old: 12, new: 6
old: 11, new: 5
old: 6, new: 4
old: 8, new: 3
old: 3, new: 3
old: 5, new: 4
old: 16, new: 11
old: 7, new: 4
old: 7, new: 3
autosave
The output above is recorded from the pen's input on the tablet.
from notekit.
Same issue on wayland
this is what is saved in the file:
https://bin.privacytools.io/?a4d150caab932be1#Ug6HCp6xjghdiLF/Ah4dUsJBNjhHS3gE5/ENCQ4lgBM=
from notekit.
Thanks for the file. As I suspected, the pressure for all the strokes in the wayland drawing is recorded as 0.
I've tried to reproduce this, but Weston for me straight up does not recognise my wacom digitiser, and I had no luck installing any other Wayland compositor because of dependency hell in my Frankendebian setup. What sort of system did you produce the file linked above in?
(I can try to hack in some kind of workaround for systems where the device reports having a "pressure" axis but always reads 0, but the best thing I could do would be pinning it to always have constant pressure, and it would not be a particularly good solution either way.)
from notekit.
If anyone with a Wayland setup with digitiser support wants to take a stab at this, the relevant logic is pretty compact (found in CNotebook::ReadPressure
in notebook.cpp
). The key is the part that reads
gdk_device_get_state(d,w,axes,NULL);
if(gdk_device_get_axis(d,axes,GDK_AXIS_PRESSURE,&r))
return r;
else return 1.0;
The expected behaviour would be that this returns false
whenever GDK_AXIS_PRESSURE is not available (see documentation), but in all likelihood that's not happening here.
from notekit.
What sort of system did you produce the file linked above in?
openSUSE Tumbleweed, GNOME
The expected behaviour would be that this returns false whenever GDK_AXIS_PRESSURE is not available (see documentation), but in all likelihood that's not happening here.
Well, It should be available (also returns true), but it writes 0.0 to r
If anyone with a Wayland setup with digitiser support wants to take a stab at this
I've tried, but I'm not a C Dev, so I had no Idea what I was doing; I found this function on the GdkDevice Docs
gdk_device_get_axis_value(d, axes, gdk_atom_intern_static_string ("Abs Pressure"), &r) -> bool
But this time it returns false (dunno if it does this on X as well)
I don't know if it is possible for you to setup qemu/kvm/libvirt on your "Frankendebian setup" but if you do, you could pass through the usb of the tablet and run wayland in there.
If I can help you with anything let me know.
from notekit.
Related Issues (20)
- Better syntax highlight HOT 1
- [enhancement] Keyboard shortcut for eraser, brush size, pen, colors, etc HOT 10
- Blockquotes not follows theme change HOT 1
- free(): invalid pointer HOT 1
- FR: support OPML files HOT 3
- Get error, HOT 1
- Cannot add PPA: ''This PPA does not support jammy''. ubuntu 22.04
- cannot install on debian HOT 6
- through compiling it, the app won't run HOT 1
- Can't download the windows file HOT 1
- Fail to build on MacOS HOT 10
- ability to change font size
- notekit_0.2_amd64 has (false) unmet dependency on Ubuntu Jammy onwards. HOT 5
- zip link given in readme is not working HOT 1
- features needed HOT 1
- Sync notes from other sources HOT 3
- Cannot add PPA: ''This PPA does not support jammy''. HOT 3
- How the fuck do you install this? HOT 10
- [Feature Request] Obsidian Implementation HOT 1
- All of the Windows artifacts seem to be expired HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notekit.