by the__alchemist · 9mo ago · 0 comments
Root cause: Ubuntu and some other distros recently switched to a GUI backend called Wayland. I don't remember upgrading, but maybe it happened during a system update? It has disabled low-level device inputs except for mouse movement. You can use window-based events instead, but IMO this is a mistake. An OS-level function shouldn't block hardware access. I want the OS to facilitate software and hardware; not create friction.
Desktops like gnome have dropped support for x11 so you can expect that wayland will be the only way to do things from here on out.
There is a compatibility layer called "xwayland" that should work, but there's definitely some rough edges between x11 apps and wayland apps. x11 gave all apps a pretty large ability to intercept information from across the system. Wayland locks that down pretty significantly.
Feel free to get in touch if you want to talk to someone (for free advice) about this porting problem you're having.
Overall it seems much more performant if that makes it any better
Try running your app via gamescope
No, since I'm on Mint, and thus still on X11.
I keep hearing about Wayland problems, and I pray they don't reach me when Mint switches; that the relevant problems will have been fixed by them time Mint does switch.
I'm also not filled with confidence by posts like this[1], which confirm that Wayland was still deeply broken in many ways just in 2024. Two years is not a short amount of time, but given it took Wayland 10+ years to be anywhere close to usable for desktop usage, I'm not placing my bets on the pace having gone up so fast that long-standing issues are solved yet. That post takes somewhat of an extreme position, but kernel of truth is that it breaks a lot of things, many of which apparently still aren't solved.
This post[2] has a better outlook I believe. I.e. that things are broken today (since it is for accessibility), but that there is real potential and that it can be fixed. It just has to be done. Shame that doing that is hard and that accessibility ends up taking a back seat.
[1] https://gist.github.com/probonopd/9feb7c20257af5dd915e3a9f2d...
[2] https://fireborn.mataroa.blog/blog/i-want-to-love-linux-it-d...
For all the noise about the "unix philosophy" and systemd being too all encompassing, Wayland went the other way and people still aren't happy.