96 points · by aquova · 3y ago · 130 comments
That kind of stuff basically all works fine on Windows, and yet a lot of core Linux desktop devs seem to have an ideological distaste for fractional scaling. Sway supports fractional scaling, but it's not recommended because "your display does not have fractional pixels". I realize that is literally true, but Windows and Mac support it and it looks good. Feels like Linux is full of this kind of stuff, and the result is the mess you see today. Sad part is that Windows is starting to degrade so bad that Linux is starting to look better just due to that. Hopefully Valve and friends can apply some competitive pressure on Windows, and in the process make Linux much nicer.
If you don't fit into their ideological commitments, you shouldn't expect to receive any support.
Sway's reasoning is completely wrong and ignorant.
The characters (glyphs) and other elements on this page (e.g., the reply button, the rounded corners of the TEXTAREA) are stored as mathematical descriptions of curves (cubic Bezier curves usually for the text). There is never anywhere where a framebuffer or grid of pixels is scaled up or down from one size to another to introduce blurriness into the final image. The Y logo in the top right corner of this page used to be an exception because a PNG file is a grid of pixels, but about 2 years ago the PNG was replaced with an SVG file, so now when you pinch-zoom this page in mobile Safari, everything always looks non-blurry.
Well, when an app is using the Wayland protocol (i.e., when XWayand is not in between the app and the display server), the same thing applies.
Actually, pinch-zoom is the wrong analogy. Both Firefox and Chrome have in their "hamburger menu" a line named "Zoom that has "+" and "-" buttons. If you use those buttons to change the scaling factor, most things reflow (adapt so that nothing "falls off" (is partially obscured by) the right edge of the viewport). Fractional UI scaling in Gnome (when XWayland is not in the picture) works like that more than it works like pinch-zoom in mobile Safari where nothing ever reflows.
Note that in order to be able to use (the "Displays" pane of) the Settings app in Gnome to change the scaling factor to a value other than 1 or 2 (i.e., to a fractional value) you have to say
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"I know I'm missing something... but I also suspect it's the sort of something that's worth missing.
Desktop linux doesn't have this sway.
Which is a security hole along with being able to read keystrokes meant for any app, grabbing pixels that aren't yours, etc... the features people complained were missing from Wayland for the longest time were often security issues that X could never solve by design. But hey, fuck security I want to run Xeyes!
Clearly, something is missing here. Why not a permission system like browsers do? A little popup that asks "X is requesting access to your full screen" rather than this "convenience VS security" black and white view most people seem to take a stance at?
Agreed. What's the missing feature? Screen sharing? Remote sessions? Overlapping displays (doesn't work in Android BTW)? We've had all of these for years.
Even fractional scaling on hiDPI monitors has been good enough for me to not care for at least 5 years.
It's like systemd; the people bitching either want to sound contrarian or actually know enough to roll their own down to the low level. At which point I must say; show me the code. Open a PR or give it a rest
My last-resolved reason not to switch: Popular compositors didn't support scaling for XWayland on par with how it works when X11 controls the screen right up until this year.
This meant that you either had to opt out of scaling in Wayland (horrible on high dpi displays) or accept super blurry XWayland windows.
Of course, it would be great if we didn't need XWayland but... That's not going to happen until more users have Wayland desktops and users like me weren't about to accept Wayland desktops while this type of problem existed.
[1] https://gitlab.freedesktop.org/wayland/wayland-protocols/-/m...
On top of that, in the wider PC system, hardware routinely launches without dev/test in the Linux world. Drivers often work for a whole chipset, so may often be running a specific device within that chipset that was never tested or seen by the developer of the driver at all, let alone in the hardware combination.
(And the Linux environment and the Android environment in ChromeOS are already using Wayland.)
A sibling comment also mentioned hardware. There's certainly a lot less driver and hardware variance as well.
When it comes to chromeOS, I think they are switching to a wayland compositor, and it'll be a lot easier for them because there they control everything.
I have been OOTL with the Wayland ecosystem for a few years. Does it provide a way for users to create and use input macros (similar to Autohotkey and xdotool) yet? That (in addition to remote desktop and screen casting) was one of the main blockers for me in daily-driving it.
However, the real root problem is that the number of people who really give one iota of damn about "desktop interaction semantics" is vanishingly small.
Developers who want Unix and want their display to "simply work" switch to Apple. Consequently, the only people left behind are the very fractious minority on Linux who care about a zillion different edge cases.
I really don't see a good way to fix things.
Personally hadn’t tried it until recently, though nothing against it. Had an extra laptop and wanted to try some new stuff so installed Fedora KDE on it.
Works quite well but unfortunately synergy/barrier doesn’t work and folks don’t seem to think it ever can. That’s a deal breaker for me at my desk. Will be going back to mint/cinnamon/X shortly, and leave fedora as a travel laptop.
Kinda disappointing after so many years… fifteen! and still second fiddle.
With Wayland, have you tried out waypipe yet?
I don't even especially like X11, I just don't want vsync forced on me.
In cases where your game occasionally dips below 240hz enabling VRR will prevent additional latency without requiring you introduce tearing in the display pipeline.
I enjoyed the post, thanks. I suppose I'll wait then and re-evaluate when Wayland's 'immediate mode' is fixed and it is roughly comparable to X11 without a compositor. I go to great lengths to minimize my latency so this is really the only factor that matters to me.
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/m...
It's like GIMP still using GTK 2, it has no idea of Wayland at all so there's not much Wayland can do beyond run it an an XWayland island. Unfortunately there is no easy universal fix to that kind of gap beyond updating apps.
Edit: a sibling comment linked to the project I was remembering - xwaylandbridge
Oh I remember now, I was using GIMP and I couldn't figure out why the color picker was not working, I think that I understand now what was the reason.
Better hope the compositor of the week you're using that hasn't yet been abandoned is based on wlroots so you have some chance of it working.
https://invent.kde.org/system/xwaylandvideobridge
I don't think there is any solution for PyAutoGUI at the moment. Likely would require a lot of changes to their code.
Maybe I missed it in the article, but what was this decision?
Seems enough to show why it's a contentious decision.
We are still not Wayland yet. And my setup is personally blocked by both Xs.
> Last updated: 31 October 2022
like ssh?
Wayland just doesn't work with modern NVidia cards. I just tried on a machine with an NVidia 3070. Current Ubuntu 22.04 LTS, updated. The installed NVidia driver is the "recommended driver", NVidia-driver-535 (proprietary, tested.) The system will run in Wayland mode, but the 3D graphics hardware isn't used. "glxgears" reports that it is using Mesa 23.0.4. Programs that use Vulkan won't even start.
Back to X.
"I wonder why that library is not installed by default with the NVIDIA driver..."
That's so Linux.
That's a glaring issue for many users these days.
However, how do you convince Discord to update their bundle version of Electron?
Edit: I know that could kind of sound incendiary, but let's consider the facts. We're talking about a project that has been competing with a dead competitor for 15 years and is still struggling to get mainstream acceptance. There's something seriously dysfunctional going on.
Basically, the GNOME devs refuse to provide default window decorations (title bars, etc), forcing all Wayland app devs to draw their own title bars and "X" buttons for their windows. This is a bit silly since some desktop envs do provide default decorations, and 99% of the time you probably want your app to have native-looking title bars.
So now we have 1) ugly window decorations on some apps because that's "according to the Wayland spec", and 2) windows with no decorations at all, but only when running on GNOME. End result is ugly inconsistency that makes it very hard to compete with the likes of macOS and Windows on a visual level. And it's all due to a mixture of human stubbornness and arguably an architectural blunder on Wayland's part (but maybe mostly the former, to further your point...)
That manifests in a bunch of different ways. Lots of desktop software is still using the likes of Gtk 2 and obviously won't get Wayland support without being ported first. Desktop Environments like XFCE and Cinnamon are, again, basically hobby projects and re-architecting them for Wayland is a big ask for non-professional maintainers. And then you have stuff like Zoom and other Electron apps that take their time adopting Wayland simply because Linux was always an afterthought to them anyway.
1) A lot of architectural decisions that made sense in 2008 are less optimal today.
Everything language-wise was C/C++ while today lots of different languages want to interface to your display system. The input system was completely hamstrung--things like gestures and multi-touch and things like that just weren't in anybody's brain yet. (Wayland started just after the first iPhone was introduced). And RT_PREEMPT still isn't a thing for Linux while both Windows and macOS underwent major surgery to allow real-time paths for things like audio and interaction.
2) Desktop composition semantics are not exactly easy to define.
Windows has certain definitions, but even it falls back to pure CPU software rendering in a lot of cases.
3) Weak support from graphics card companies
Windows relies on a LOT of driver hacks so everything goes through the compositor on really fast paths. That's a lot of work that nobody really has the bandwidth to do on Linux.
Although the egl requirement has proven troublesome the times I've dipped my toes in, previously: if I have an NVIDIA or AMD GPU in my machine, I do expect to not get told it's unsupported.
https://www.nvidia.com/download/driverResults.aspx/181159/en...
Do not forget the era where compositors were choosing not to support an open standard of the EGL_KHR_stream extension. Instead they preferred a proprietary solution using Mesa's GBM API.