-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Bug]: Pen issues on linux-surface #748
Comments
Sadly, the first issue looks like a known bug, see #238. Btw: Which type does it say on the pointer test when touching with the stylus? |
For me, the pen also works like before (i.e. everything except writing with the pen tool) when enabling pen only input. |
Quick question: does the button value ever be 0 when having the pen on it? |
fixed in 2.2.1-rc.1, |
Thank you very much for the quick fix. It will be implemented in the nightly build soon, right? Ill test it out then.
No, the input is only 0 when the pen doesnt touch the device. |
Yes it will be available in the next nightly Version next Monday with many other fixes. That's good, then you don't need to change any settings and it will work out of the box in the next nightly. |
Hello |
yeah it's already known here #238 |
Isn't there any solution yet? |
Sadly not. Its an issue by the library Im using to capture the input |
oh okay |
Would it be possible to include an option like "disable pen pressure recognition" which would always set the pen pressure to 1, i.e. overriding the detected pressure (which is always 0)? |
It should already be possible, then it just "simulate" the pressure. If you have issues, feel free to report it |
Yeah, i tried version 2.2.3, but the pressure of my stylus isnt simulated to 1, so the pen doesnt draw. |
Hmm, is it a specific value? Can you try the pointer test and write me the values? |
Hmm but it looks good... |
I forgot to say that i use a normal linux hp device, with an xppen tablet connected. I have the official xppen drivers installed. |
Yeah, it looks like it should work. I use the same values as in the pointer test. If the values there is correct, it should work. |
It would be nice if you could try to record the screen so I can look what happened. |
Hmm, can you try visiting ~/Documents/Linwood/Butterfly/Documents and try to find the file there? |
I have no such directory |
Is there no linwood directory inside your documents folder? |
Nope |
Hmm, can you try to close the note, and export the file from the home screen? |
The application also freezes when i click the home button after drawing with my pen |
How did you install Butterfly? |
I installed it using flatpak. |
hmm, now it's really tricky for me to reproduce it... |
I installed it using the deb file, and i get the same bug. Then i tried running the appimage and i got this error:
|
@CodeDoctorDE What should i try ? |
I have no more ideas right now, can you also try the portable version (or the alternative portable version?). it looks like the problem isn't really related to flutter: SeaDve/Kooha#283 |
I tried the alternative version and get this error when trying to draw with my stylus
|
Same thing here ! Working fine in other apps, [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Converting object to an encodable object failed: NaN
#0 _JsonStringifier.writeObject (dart:convert/json.dart:793)
#1 _JsonStringifier.writeMap (dart:convert/json.dart:874)
#2 _JsonStringifier.writeJsonValue (dart:convert/json.dart:829)
#3 _JsonStringifier.writeObject (dart:convert/json.dart:784)
#4 _JsonStringifier.writeList (dart:convert/json.dart:844)
#5 _JsonStringifier.writeJsonValue (dart:convert/json.dart:823)
#6 _JsonStringifier.writeObject (dart:convert/json.dart:784)
#7 _JsonStringifier.writeMap (dart:convert/json.dart:874)
#8 _JsonStringifier.writeJsonValue (dart:convert/json.dart:829)
#9 _JsonStringifier.writeObject (dart:convert/json.dart:784)
#10 _JsonStringifier.writeList (dart:convert/json.dart:841)
#11 _JsonStringifier.writeJsonValue (dart:convert/json.dart:823)
#12 _JsonStringifier.writeObject (dart:convert/json.dart:784)
#13 _JsonStringifier.writeMap (dart:convert/json.dart:874)
#14 _JsonStringifier.writeJsonValue (dart:convert/json.dart:829)
#15 _JsonStringifier.writeObject (dart:convert/json.dart:784)
#16 _JsonStringifier.writeList (dart:convert/json.dart:841)
#17 _JsonStringifier.writeJsonValue (dart:convert/json.dart:823)
#18 _JsonStringifier.writeObject (dart:convert/json.dart:784)
#19 _JsonStringifier.writeMap (dart:convert/json.dart:874)
#20 _JsonStringifier.writeJsonValue (dart:convert/json.dart:829)
#21 _JsonStringifier.writeObject (dart:convert/json.dart:784)
#22 _JsonStringStringifier.printOn (dart:convert/json.dart:982)
#23 _JsonStringStringifier.stringify (dart:convert/json.dart:967)
#24 JsonEncoder.convert (dart:convert/json.dart:345)
#25 JsonCodec.encode (dart:convert/json.dart:231)
#26 jsonEncode (dart:convert/json.dart:114)
#27 _encodePage (package:butterfly/bloc/document_state.dart:62)
#28 compute.<anonymous closure> (package:flutter/src/foundation/_isolates_io.dart:19)
#29 _RemoteRunner._run (dart:isolate:1098)
#30 _RemoteRunner._remoteExecute (dart:isolate:1092)
#31 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:300)
#32 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184) |
What happened?
I noticed a couple of bugs while trying out this very promising program on my linux device.
I noticed that my surface pen is not working when trying to draw, but erasing and selection etc works fine.
When doing the pointer test in the settings it recognizes my pens tip as Input 1, but does not recognize any pressure (pressure is constantly 0). I believe this might be the reason for why drawing does not work with the pen.
Moreover I noticed that the pointer test doesn't recognize the eraser at the back of the pen (Input number is 1) and that the functional button on the pen is recognized as 4 when hovering over the device and as 5 when touching the device with the pen. This makes it impossible to map them, because in the settings its only possible to map 1 and 2.
Other programs (rnote) recognize the eraser correctly.
Im using a surface device with the linux-surface kernel installed. Maybe this problem only appears on linux-surface devices.
Version
2.2.0
Platform
Linux
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: