Live data from Hacker News

Wayland Protocol Finally Ready for Fractional Scaling

phoronix.com

81–90 of 102 posts

Re: Wayland Protocol Finally Ready for Fractional Scaling

#81

Earlier quoted context omitted.

Protocol merges require compositor implementations to be ready ahead of merge.

They require two implementations. It's not going to help if these implementations are in the compositors nobody cares.

In practice, at least one of them is Kwin or Mutter and the other is wlroots. So usually there's pretty decent coverage.

Re: Wayland Protocol Finally Ready for Fractional Scaling

#82

I was going to say something about it being 10 years now since Apple made high DPI screens mainstream. Windows still doesn't have it working 100% yet.

On the specific topic here, fractional scaling, macOS gets it disastrously wrong, only supporting downscaling, which means that it’s impossible to get pixel-perfect output on fractional scales, which are the norm on most of their devices. I seriously can’t comprehend how they ended up going that way, given that they were the ones in a position to force developers to get things right, far more than Windows, but no, th…

> …but no, they just didn’t even try.

They did¹, but it turns out the simpler solution just works, and that pixel-perfect purity doesn't matter because your eyes can't resolve HiDPI pixels any more than they can resolve the grid of subpixels that they're made of.

¹ https://news.ycombinator.com/item?id=29071882

Re: Wayland Protocol Finally Ready for Fractional Scaling

#83

Earlier quoted context omitted.

- screenshots work - the keyboard and mouse can be controlled programmatically, but unaware if xdotool itself works - I don't notice any input delay with the monitors at 60Hz - I'm using the unsupported GPU flag with SwayWM and 4k games and windowed games work for me - never tried disabling vsync. I'm guessing it won't work I suspect if you use fractional scaling, the games wont run at 4k, but instead the fraction of…

> I suspect if you use fractional scaling, the games wont run at 4k, but instead the fraction of 4k X11 games maybe; SDL's Wayland backend can deal with fractional scales and make it render at native 4k.

Sure, I'd expect anything Wayland native will work as expected. Are there many games with Wayland support though? Honest question.

Re: Wayland Protocol Finally Ready for Fractional Scaling

#84
post #3

I still use X11, where and rely on the following features (amongst others): -taking screenshots -auto keyboard/mouse scripting with xdotool -not have unnecessary mouse/keyboard to monitor delay -4K fullscreen, windowed fullscreen and windowed gaming with nvidia drivers, for native and steam proton games -choosing to have vsync enabled or disabled in games -EDIT: I should another important one for me: xclip, read from…

People are responding to this comment by saying "Screenshots work," and yes, they do, somewhat. However, you're limited to using the screenshot tool built in to your Wayland compositor, rather than any third-party tool. For example, my favorite screenshot tool supports automatic timed screenshots, of particular windows or the whole screen or of a specified region, of one desktop or several, and various customizations…

> However, you're limited to using the screenshot tool built in to your Wayland compositor

That not true anymore... I use Flameshot

Re: Wayland Protocol Finally Ready for Fractional Scaling

#86
post #45

Earlier quoted context omitted.

Wayland is frame perfect, and it's great. What's the issue with allowing users or the compositor to disable that in really specific case without sacrificing the frame perfect principle for all other uses? It's the best of both worlds

With X11, you defaulted to having tearing but could run a compositor if you wanted in order to not have it. Then Wayland showed up and loudly proclaimed that that was unacceptable and we had to be pixel-perfect, every frame, every time. ...Then a few years later, Wayland added the ability to tear, because it turned out to be useful, bringing it back to parity with X. This isn't... necessarily... technically invalid,…

You don't understand how this works I think. The idea of this protocol is for the compositor to change how it does page flip in specific conditions. So just allowing a player, for example, to prefer visual bugs over latency on a specific game over bug free image but having everything else still being bug free. I'm not sure you know how building software works but it's called iterating. The main need is bug free rendering, which is achieved, an iteration is a niche need of buggy visual prefered over latency, this will be allowed.

Re: Wayland Protocol Finally Ready for Fractional Scaling

#87
How on Earth nobody thougt about making Wayland pluggeable, so somebody could perfect the art of screenshoting, other would perfect drawing windows, other capturing video, then this plugins would have been re-used by everybody out there.

It was a good idea, but the implementation clearly isn't working.

My bet: Wayland will be the Windows Vista or the OS/2 of Linux.

Re: Wayland Protocol Finally Ready for Fractional Scaling

#88

Earlier quoted context omitted.

> I suspect if you use fractional scaling, the games wont run at 4k, but instead the fraction of 4k X11 games maybe; SDL's Wayland backend can deal with fractional scales and make it render at native 4k.

Sure, I'd expect anything Wayland native will work as expected. Are there many games with Wayland support though? Honest question.

SDL got a pretty decent Wayland support in its last releases, so: yes, there are.

Re: Wayland Protocol Finally Ready for Fractional Scaling

#89

Earlier quoted context omitted.

> For example, my favorite screenshot tool supports automatic timed screenshots, of particular windows or the whole screen or of a specified region, of one desktop or several, and various customizations. Those features aren't supported by my compositor, and I don't have a choice. So Wayland limits my options. Xorg doesn't support his either. Your screenshotting tool runs the timer and takes the screenshot when the ti…

You're missing my point. The Wayland architecture does not give me a choice in my screenshot, video recording, and remote desktop tool: you have to use the functionality built in to the compositor. Many compositors (notably GNOME and KDE) don't support the Wayland semi-standard interface for these things. You mentioned shotman, but that isn't even a real screnshotting tool: it's just a screenshot GUI that depends on…

>The Wayland architecture does not give me a choice in my screenshot, video recording, and remote desktop tool

Yes it does. Use the screenshot, screencast and remote desktop XDG portals for that. It's understandable you're confused because the X11 way was to try to jam everything into X extensions whether it made sense or not. The overall trend lately is to move APIs into other components (XDG portals, pipewire, DBus, systemd, etc.)

Re: Wayland Protocol Finally Ready for Fractional Scaling

#90
post #34

Earlier quoted context omitted.

> I still use X11, where and rely on the following features To which I would add: (1) taking screenshots from the command line (xwd) (2) moving windows around from the command line (xwit) (3) keyboard-free copy-paste between different programs: select to copy, middle-click to paste (4) global indicator of where my cursor is (xeyes) (5) define global key combinations that launch programs (xbindkeys) (6) globally confi…

See: https://news.ycombinator.com/item?id=32297479 None of these discussions ever go anywhere. They will tell you that wlroots is standardizing all these things etc etc but as it stands today every compositor is at best reimplementing a subset of the features you describe. If I had enough money I would pay the Wayland people to work on something else and let the project collapse because they are constantly underminin…

That post is some pretty bad misinformation. An API for global keyboard shortcuts was being worked on and just got merged 2 months ago. https://github.com/flatpak/xdg-desktop-portal/issues/624

There is a way to protect against LD_PRELOAD: use sandboxing. X11 is bad for security because it's an intentional escape around the sandbox.

The "tear it down and build something else argument" is also going nowhere, anything else you build is going to run into the same questions of how to go about implementing these features.

Post reply on HN