Re:Why Is It So Hard to Detect Keyup Events on Linux?
by 0x0 on Sunday January 27, 2019 @03:27PM
(#19013594)
Looks like non-root X still requires the equivalent of root access to the raw input /dev devices - https://wiki.gentoo.org/wiki/Non_root_Xorg#Making_necessary_...
Re:Why Is It So Hard to Detect Keyup Events on Linux?
by cryptonector on Sunday January 27, 2019 @03:16PM
(#19013545)
You are absolutely right. Are there any such features that produce additional in-band data for every keystroke?
Termcap itself--the older system of the two, and the one that's mostly subsumed by terminfo nowadays--supports input-related features already! See e.g. https://www.gnu.org/software/termutils/manual/termcap-1.3/ht...
Anyway, surely some sort of keyboard raw input exists already, if only so that X can use it? AIUI, X does run without root privileges these days, and keyboard input was never the main obstacle to X running without root - video output was. So, I think the article is not quite right in its assumption that detecting raw keyboard events necessarily involves root-level access.