213 points · by yorwba · 3y ago · 136 comments
- graphics tablet digitisers generally are not and don't include touch digitisers
- tablets are not touch screens
- a stylus (tip) isn't a button
- a stylus can have buttons
By convention, stylus tip interactions are "tools", which seems to be what Linux' BTN_TOOL_* codes are meant to mean. A button on a stylus should never be (directly) translated to a tool -- like how the ~5th button on a mouse is `BTN_EXTRA`, not `BTN_MOUSE`. In this particular case it looks like the thinking is: the device has 2 event codes (which we know as the stylus tip and the barrel button) and it's a stylus^wdigitiser, so map device[0] to `BTN_DIGI` and device[1] to `BTN_DIGI + 1`.
editendum: the thing about the BTN_EXTRA doesn't really map... The "digitiser" event codes are being treated in the same way as mouse event codes (device[i] => event[CLASS + i]). The issue is really that the barrel buttons have no (dedicated) event codes.
The missing Invert usage caused Linux to report Eraser as regular tip touch to the userspace, which was not intended but caused by an oversight in the kernel code. This, together with a bunch of hacks (Digimend and X11 tweaks), allowed OP to map that button to a right click.
Now, with the kernel logic fixed, these hacks do not work anymore. This is a case of xkcd://1172. The userspace solution is to remap BTN_TOOL_RUBBER to a right click for the weird stylus instead.
[-1] I don't remember if it's also a uclogic controller?
I think every remote job that sends employees a laptop should also be sending them a wacom tablet.
I'm using a "cheap" one (I think it was like 80 EUR), and it's mind blowing how convenient it is despite its small size. Now trying to use a physical whiteboard for brainstorming, feels the same way as trying to use pen and paper for programming: technically doable, but I curse internally because the inconvenience.
Just being able to select stuff and move it around, or undo with a quick Ctrl+Z, or rotate things, makes all the difference.
Sure, I love using a paper notebook for my notes, and the feel of writing with a pencil on paper is really nice; and I would use it for drawing quick stuff if I don't have anything else at hand. But if I think I'm going to be erasing a lot, or that I will be doing the kind of stuff that is usually done with a whiteboard, a drawing tablet is (to me) a vastly superior option.
There are also some online ones, although I'm not sure how well they work in a multi-editor situation.
Might not be flexible enough for a really open brainstorming, but enough for stuff like figuring out domain concepts.
PlantUML - quick and simple text representation of diagrams, really easy to iterate on and see changes reflected live.
reveal.js - Quick and simple slide creation, I can reorder slides with ease, tweak wording, don't waste time faffing about with fonts, text box sizing etc. All reflected live in a browser.
I once got an bigger "upgrade" for my small wacom tablet, but it only collected dust. It used too much space on the desk to always keep it ready, and the larger active area meant too much travel distance when using the pen as a mouse.
And concerning Wacom, they were the first to have someone working on Linux drivers, and the only one for a long time, back when tablets were new. Not sure how it is today.
Wacom still has great Linux support, but now there's OpenTabletDriver which supports many other tablets [1].
In comparison with a mouse, a stylus is much more comfortable, much faster and more precise.
This can be done by a script automatically executed at power-on, which may also choose how the buttons should behave, if you do not like the defaults.
For instance, for my Wacom stylus I set the tip to be left click, the first button to be right click and the second button to be double left click. Actually doing double click with the stylus buttons is more inconvenient, so it is more comfortable to map the single click on some button as a double click.
Give them something with a screen instead (e.g. cintiq knock-offs, ipads, samsung tablet, surface) or a webcam mounted to record a whiteboard/blackboard or mounted overhead to record a sheet of paper. That might also help to get better audio at the same time.
Side-note: When remote meetings became necessary in recent years, lots of software/hardware solutions were improvised, not great, but workable and with a hope that better solutions will become available later. Somehow that did not happen and people are still "scratching unintelligible diagrams/equations with their mouse" because there is no standard, widely available software and hardware that makes this easy.
The impetus was from wanting to be able to practice digital art in free time regardless of where I am, but it has ended up being extremely convenient as anything can be quickly drawn up or written, easily shared with everyone else and does is trivially retained.
What laptop do you recommend with S Pen support?
I had also tried the regular Galaxy Book 3 360 for a day, but I felt the screen was a bit small and not as sharp as I'd like.
That said, since EMR pens also work in-place of S pens, I'd guess that S pens will work on any device that supports EMR pens (minus the bluetooth air gestures, those aren't available on windows laptops). For me the value was the 'ecosystem' with my other devices which also happen to be from Samsung, including the ability to share the stylus between everything.
It's so annoying dealing with a separate tablet just for the sake of writing. Why not a tablet PC or such?
For an office job I'd take the external tablet, since my laptop would likely be plugged in all the time.
You could also keep it permanently in tablet mode and use an external monitor, mouse, and keyboard. Just don't underestimate the mode change.
* only glossy screens
* screen with touch layer look worse than non-touch counterparts
* poor to very poor software support
Not to mention the hefty price tag.
In VR, you can point, draw, and share virtual desktops.
Otherwise, no one knows what the hell anyone is talking about, and perhaps get the wrong impression about one another.
I strongly disagree with RTO as ass-in-seat-mentality for knowledge work jobs that don't design or manufacture physical items. I've been part of fully WFH companies since ~2000 spanning up to 8 time zones. The quality of discussions requires the ubiquity of tools for expressiveness.
We have been trialing using it to draw graphviz graphs for discussion and it has been working very well both as an in meeting tool and as a reference later on.
Would be interested to go the Wacom route but my my handwriting is very bad and only getting worse
I'm pretty sure it was a tooling issue rather than the tablet itself, and wouldn't mind taking another punt at it.
When I was a prof, I used the Wacom on linux with OpenBoard [1] to teach online for two years of the pandemic. My work gave me a Macbooks, but OpenBoard has some weird bugs on MacOS. So I am using GoodNotes, which is very annoying, but the best of what I tried. In another life, I would dedicate a few years of my life writing a decent note taking app.
[1] https://github.com/OpenBoard-org/OpenBoard
Edit: Besides the software, I think it takes a few weeks of writing on it daily where it becomes natural.
I have a Wacom Intuos S.
Sample size 1, but I haven't been inconvenienced by its size, even while handwriting or drawing at Krita.
On one hand, I don't think a thought like "this would be easier with a bigger tablet" has ever crossed my mind; but on the other hand, it's also true that I haven't tried anything bigger, so my only point of comparison is tablet vs mouse or tablet vs whiteboard/notebook.
Contour drawing is not taught in primary education, and it really should be: it generalizes on how you learned to write by learning some muscle memory and then playing it back to make a mark. Nobody who can write should be going around saying "I'm untalented at art, I can't even draw a straight line".
>I'm pretty sure it was a tooling issue
Depends on whether you want shape/diagram recognition or not. If the only thing you need is free-form drawing, you can use just about anything.
I will try it on linux later. Hopefully it will work there.
My initial gripe is that there are three different toolbars, all separated from each other. I want to change tools and their settings quickly, not move my hand across the entire screen. For example, select brush tool on bottom toolbar, select size on the left toolbar, then select color on the top toolbar.
Best thing is that they have a plugin architecture that can do some basic customization.
[0] https://lore.kernel.org/linux-input/nycvar.YFH.7.76.23110120... [1] https://www.kernel.org/doc/html/v6.6/admin-guide/reporting-r...
[0] https://www.davidrevoy.com/article995/how-a-kernel-update-br...
Does he not realize how poor of a user experience it is to interact with mailing lists compared to actual bug trackers?
Contrast that with the Github or Bugzilla experience: make an account, click "report issue", follow the wizard which asks me to provide all the information I need. I am automatically subscribed, and will receive updates via email.
The whole report-via-email might work for experienced kernel developers, but for a regular user trying to just report a single bug it is way too much of a hassle. If I ever encounter a kernel bug, I would go out of my way to avoid directly reporting it upstream - I'd just file it at my distro and let the maintainer deal with the upstream reporting.
Saying "it's email" means nothing. Just because you announce the name of the tool doesn't make it the right tool.
How do you search for existence bug reports to see if someone else has hit the issue? How do you subscribe to an issue to know if progress is being made on it? How do you keep track of all of the issues. Why is it the user's job to traige bugs to the right person? Microsoft doesn't reccomend you to find the email of someone on the NTFS team if you find a bug in Window's handling of NTFS.
The part about writing and sending the initial is passable using email, but everything else is terrible.
Whereas Excel had the bug with date format detection that the entire world had to work around with no chance of getting it fixed. The genomics field had to change the name of a gene because even though they all knew it and must have had some population of people that had the skills to fix it, just couldn't until Microsoft got sufficiently embarassed by it after decades (https://gizmodo.com/microsoft-fixes-excel-feature-that-force...)
Got my first GNU/Linux in 1995 with Slackware 2.0, kernel 1.0.9, got fed up by the time Windows 7 got released, still own a Asus 1215B Netbook with Ubuntu, with its own share of kernel updates breaking graphics and wlan.
Anything else, happy with Samsung, LG, Nokia, Apple, Google and Microsoft overlords.
No point running a bleeding edge distro and then having a sook when things break. The correct procedure is to file a bug report, downgrade to the last known kernel that worked correctly, and wait for a patched kernel to appear in updates. Or run a stable distro if it's such a problem. I don't get why "bleeding edge Linux distro has breakage" is such exciting news for HN. This is pretty much a non-story.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
$ modinfo -p usbhid | grep quirks
quirks:Add/modify USB HID quirks by specifying quirks=vendorID:productID:quirks where vendorID, productID, and quirks are all in 0x-prefixed hex (array of charp)windows will always stay broken.
It is also the only one using GNU/Linux, the TV/WebOS and Android/Linux devices, alongside Windows, just work.
If a 'fix' broke something (and it's not for something like a major security issue), then it is customary to revert the fix and go back to the drawing board
I can see that this is a complicated situation and OP was a special case that had not been affected by acccident, but those are excuses
If you upgrade your kernel and you don't have any out of tree stuff, by policy nothing should break, orherwise it's the kernel's problem.
One user asks "why is my right click an eraser now", another asks "why is my eraser a right click on Linux". Which one is right?
To resolve this, the devs could've added an easy setting somewhere to control this behaviour, but I still think this can be considered a reasonable bugfix as the manufacturer decided on this stupid design. Linux drivers used to hack around that, but that's a classic XKCD 1172 problem.
I see what you did there
I think most of your problem is coming from using Rocky Linux, it is much easier to find support on Ubuntu derivatives for tools made by the community in general.
No dnf package for Rocky Linux for input-remapper
Tried to build it manually and bailed out with error:
error: can't find Rust compiler
That is usually the beginning of rabbit-hole.
When using proprietary software on windows/mac, somebody somewhere decides how you’ll be living your life from now on and you just suck it up. They might even decide that your perfectly working hardware is deprecated and drop support. Or decide that from now on you have to pay a monthly toll to keep using their software. And you have no way to voice on the matter.
Freedom has its price.
I'm not a chef, but it's expected that I cook for myself;
I'm not a taxi, but it's expected that I drive a car;
I think, even an "artist" can be expected to have a certain amount of self-sufficiency,
and I do not think rebuilding kernel modules is any harder than those things,
Uh, no? You are completely out of touch on other (non-programmer) people's backgrounds. They don't know what a kernel or even a terminal is. It's more than just copy-pasting commands from SE.
The other-side of the coin is that if your using Linux, you should expect that such things happen without your desire. And that if you wish for the previous feature you'll have to nose-dive in to if you want to fix or just revert back to the previous version. You shouldn't, but here we are.
At the risk of downvotes, I would also say you shouldn't really need to update the kernel either. Unless there is really a feature required, or extreme-security vulnerability of your current version, exclude it.
That was the past-beauty of Linux, you didn't need to be on $latest; that was Microsoft's realm, always requiring updates. If it worked you left it be for this exact reason. Every day I look at my iPhone and everyday there's a batch of updates for my apps sometimes twice on the same day for the same app and I don't use many.
The current fearing update culture we live in is terrible.
/vent
Why?
Please define "linux"
What happened to the author while using Fedora wouldn't have happened while using RedHat Enterprise Linux or any other distro with long term support of an existing kernel. Besides author can still boot with old kernel version.
"Just recompile your kernel" is how Linux people convince other Linux users to install Windows or buy a Mac.
Well I'm not really proposing he does it, I'm just saying he should ask for someone to help him do it.
If I understand the post well, his workflow was relying on a bug in his pen driver. That bug got fixed. It's just the way things move forward, it happens on Linux, Windows, or any software really.
The sane solution is just to rebuild the old driver (not kernel).
David Revoy has reached out to the linux-input mailing list:
https://lore.kernel.org/linux-input/877c9bed-181a-4fc0-a876-...
But, having to flip a stylus around just to engage with the eraser functionality in the app is perhaps an outmoded concept. The author makes it sound like the fault out-of-touch stylus-lite business users, but I disagree. Some artists erase a lot as part of their workflow, particularly during certain parts, and map this functionality accordingly..
1) it would have helped invert the subservient position they had with Microsoft in general
2) would have allowed Intel to push out an demonstrate hardware features in an OS without waiting for Microsoft to support it two years down the line in some service pack
3) probably would have kept them up with consumer hardware and the smartphone thing wouldn't have blindsided them
4) probably enabled them to get more of their peripherals businesses (which they constantly acquire and shed)
5) enabled cheaper low end devices where the Microsoft tax is a quite large percentage of the device cost
6) would have enabled them to be in the ARM game if they wanted to, IoT with Atom processors, and tons of other markets
Qualcomm or some other ARM vendor should have done it to
1) have a real alternative to google controlled Android
2) get ARM out to more consumer devices
3) get their hardware features demonstrated more quickly
Google should have done it (yeah ChromeOS sucks)...... well, we I'm shocked ChromeOS hasn't been dropped yet and Google would never have stuck with it.
But none of that matters now, it should have been done 20 years ago. And Apple seems to be the only hardware company that does software well.
* random errors coming out of nowhere on Linux after a refresh installation + package update * IME not working (Asian language) * IME providing very low quality suggestions leading to slower typing speed * scaling issues (fractional scaling) * random freezing on gnome * No sound from speaker on a laptop (driver issues) * issues with connecting to 802.1x wifi (in a certain distribution, was able to get around via command line) * not being able to find one decent pomodoro app -- the one in the Ubuntu store doesn't work, like, at all * window management is way behind Windows
That's what I can think of right now, but if I spend more time I can come up with 30 more. Windows and Mac have their fair share of bugs, limitations and weirdness, but nowhere nearly as bad as this.
Do not happen on Linux on same laptop.
So I would say you have rose tinted glasses when using windows or just got lucky with it and unlucky with linux.
I'd say you probably should think about it the other way -- you only get decent Linux desktop experience if everything is supported by the vendor. Just look up on HN what kind of trouble people run into when installing a Linux distro on their laptop. People go as far as recommending very specific models from certain brands because everything works as expected on those laptops.
There are not too many linux-based vendors. And linux still works on 80% of unsupported machines.
I go for linux dells. Mostly OK. Certainly better than what I had back in darker Windows times.