StarLabsLtd / firmware

73 stars 5 forks source link

[StarLite Mk V] Pen does not disable touchscreen #190

Closed rogercreagh closed 2 months ago

rogercreagh commented 3 months ago

When using the Pen the touchscreen should be disabled or you can't rest your hand on the screen while drawing.

The touchscreen should disable as soon as the pen is detected and the disable should last for a configurable period after the pen goes out of range to cover the case where you lift the pen but leave your hand resting on the paper screen before reapplying it in a different area.

ZekeZDev commented 3 months ago

I am not sure if its software or firmware level but atleast in krita, xournal and a couple others it seems to do palm rejection with the pen. In the case of krita you can also completely disable touch drawing and require usage of pen which is what I have enabled.

rogercreagh commented 2 months ago

Ah, so I guess it is the individual applications that have to handle palm rejection - I was assuming it could be done globally whenever the pen is in play.

I'll leave this open for a bit in case there are other suggestions for getting a non-touchscreen-aware application to use the pen and not the touchscreen. I prefer to use the pen rather than finger on the touchscreen almost all the time. I wonder if it is possible to disable the touch screen while leaving pen working - and then if it is possible to have a script which detects the pen and turns off the touch when it sees the pen and renables it when the pen is out of range.

Thanks @ZekeZDev for the pointer to two useful looking apps that I hadn't stumbled upon.

rogercreagh commented 2 months ago

OneNote (microsoft) does do palm rejection and switch to drawing mode when it sees a pen

ZekeZDev commented 2 months ago

Ah, so I guess it is the individual applications that have to handle palm rejection - I was assuming it could be done globally whenever the pen is in play.

I'll leave this open for a bit in case there are other suggestions for getting a non-touchscreen-aware application to use the pen and not the touchscreen. I prefer to use the pen rather than finger on the touchscreen almost all the time. I wonder if it is possible to disable the touch screen while leaving pen working - and then if it is possible to have a script which detects the pen and turns off the touch when it sees the pen and renables it when the pen is out of range.

Thanks @ZekeZDev for the pointer to two useful looking apps that I hadn't stumbled upon.

I imagine such a script would be possible but there is a fair few downsides if you are just using the pen instead of touch, such as not being able to swipe scroll, osk not opening when text fields are viewed. I have found I take a mix of both and still use keyboard for macros.

Might as well recommend a couple other apps that seem to do palm rejection while I am here: Inkscape - vector image editor Rnote - infinite canvas alternative to xournal

I think Gimp also has palm rejection but honestly I haven't tested since I don't really use it.

rogercreagh commented 2 months ago

osk not opening when text fields are viewed

There's an oddity there. Having installed the OSK which works with Gnome 46 (https://extensions.gnome.org/extension/5949/gjs-osk/) I now find that the OSK never opens automatically when click or tap or tab to a text field. The gjs-osk has an icon in the top tray which opens it (or closes if already open) and the original poor layout osk still opens if you swipe up from the bottom.

Sean-StarLabs commented 2 months ago

Fixed with 39dfcc167040e8ee36cc760e584a350142bdc4c7