Live data from Hacker News

Yserver: A modern X11 server written in Rust

github.com

101–110 of 131 posts

Re: Yserver: A modern X11 server written in Rust

#102

Earlier quoted context omitted.

This + mixed refresh rate are the key selling points of Wayland.

Xorg does per-monitor DPI and per-monitor refresh rate. Debian probably never shipped a version that does, but it works fine on Gentoo Linux. I've tested per-monitor DPI before, and [0] mentions one way to do it. I tested per-monitor refresh just now. Using the xrandr CLI to set the refresh rate to 24.0 on my primary monitor and 60.0 on my secondary results in "cinematic" visuals on the primary monitor and "soap oper…

Maybe it's possible now. It wasn't back when I last used X. Now that Wayland is the default on most distros and works on nvidia now I don't see any reason to go back.

Re: Yserver: A modern X11 server written in Rust

#103
post #79
post #33

Earlier quoted context omitted.

If you're fine with RDP, both KDE and GNOME have built-in RDP support on Wayland. If you want something closer to ssh -X, look up waypipe.

I might be mistaken, but both need a physical monitor turned on. If your monitor goes to sleep you can't connect/see a black screen. The kde one doesn't support remote user login, and while the gnome one does on paper, I never got it to work. The remote connection situation in Wayland is a major regression.

Yeah that's fair, the KDE people have remote login as a goal but it's not there yet. Waypipe is definitely the more mature option at the moment if you need a headless workflow.

Re: Yserver: A modern X11 server written in Rust

#104
post #97
post #46

Earlier quoted context omitted.

The mixed DPI support on X11 is just that each monitor provides a DPI attribute that applications can query. It's up to the application or the toolkit it uses to actually look at this attribute and scale itself properly. In practice, this means that only Qt software will have DPI awareness on multi-monitor setups, and it requires having the "QT_AUTO_SCREEN_SCALE_FACTOR=1" environment variable set for applications tha…

The irony is that despite the myth to the contrary wayland does not even try to handle mixed DPI at all and only fakes it via the fractional scale hack and X11 has supported mixed DPI from probably day one. Admittedly X11 mixed DPI was using separate screens which were awkward to deal with and early versions of the unified screen tech (xinarama and xrandr) did not support mixed DPI. And even modern X11 while it provi…

> The irony is that despite the myth to the contrary wayland does not even try to handle mixed DPI at all and only fakes it via the fractional scale hack and X11 has supported mixed DPI from probably day one.

I'm not sure what you're talking about, fractional scaling is just another way to describe DPI. The scale factor is just the DPI divided by 96. If you're referring to windows getting scaled by the compositor for fractional scales, that's only used for older software. Both Qt 6 and GTK 4 support natively rendering window contents at fractional scales on Wayland.

Re: Yserver: A modern X11 server written in Rust

#105
post #26

Earlier quoted context omitted.

Can you pls share smt on how to properly do multi dpi in X? It is hard to find and I struggle with it

This + mixed refresh rate are the key selling points of Wayland.

I agree it used to be fiddly at best but in recent years I had found it to be pretty easy in X11.

I haven't had complaints there for Wayland but I will say that it breaking other things has been annoying.

Re: Yserver: A modern X11 server written in Rust

#106
post #28

Earlier quoted context omitted.

Maybe they mean X11-screens. That are more or less independent screens, you can't move a window from one to the other for example.Emacs supports that somewhat with the "open new frame on display server" menu option, but usually, multiple screens are not very useful. Nowadays, multiple monitors present one big virtual framebuffer and only one logical X11 screen.

It is a niche feature, but it is still used eg when an application wants to have good control over a screen's frame buffer to display sth in an external monitor and minimise disturbances. I think it is fairly standard in psychophysics experiments, at least with some software. That's where I worked with such a ("zaphodsheads") setup.

They are also roughly analogous to the modern DE concept of "Workspaces" which people seem to enjoy.

Re: Yserver: A modern X11 server written in Rust

#107

Earlier quoted context omitted.

I'm just so tired of these lazy, worthless comments about any AI-written software. Look, I've been writing open source software for 20+ years, and after getting seriously burned out by it, I picked it up again with Claude (proof: https://github.com/jleclanche ) I can tell you a few things from that: 1. I'm writing better software than before, because AI is less lazy than I am. It's not necessarily always smarter, but…

The fact that you're being downvoted for sharing a constructive opinion and the rest of the "hurp durp this is slop" comments aren't is vastly more of a problem on HN than curious contributions like Yserver.

It's very likely that in the end it will be the opposite, HN is filled with AI enthusiasts

Re: Yserver: A modern X11 server written in Rust

#108

It is kind of ironic that all the would be X successors waiting until Wayland took over before appearing. Something like XLibre or Phoenix would have been taken very seriously 5 years ago.

I think it was only recently that Xorg started dying and Wayland became mostly usable for most people. That was when I switched over, and I assume a lot of others as well.

Re: Yserver: A modern X11 server written in Rust

#109
post #104
post #97

Earlier quoted context omitted.

The irony is that despite the myth to the contrary wayland does not even try to handle mixed DPI at all and only fakes it via the fractional scale hack and X11 has supported mixed DPI from probably day one. Admittedly X11 mixed DPI was using separate screens which were awkward to deal with and early versions of the unified screen tech (xinarama and xrandr) did not support mixed DPI. And even modern X11 while it provi…

> The irony is that despite the myth to the contrary wayland does not even try to handle mixed DPI at all and only fakes it via the fractional scale hack and X11 has supported mixed DPI from probably day one. I'm not sure what you're talking about, fractional scaling is just another way to describe DPI. The scale factor is just the DPI divided by 96. If you're referring to windows getting scaled by the compositor for…

In a fractional scaling setup you first create a homogeneous virtual screen at the dpi wanted then get the right size by scaling the monitors out to fit. A dpi aware application will draw itself at the correct size on the appropriate screen. The main difference is the dpi aware application still looks good on all monitors. where as the fractional scaled stuff suffers scaling artifacts.

Wayland only supports fractional scaling. and there is a good argument that this is a better system, not because it looks better, it does not. but because applications don't have to be aware of it where a mixed dpi requires the application to actively deal with it.

Re: Yserver: A modern X11 server written in Rust

#110

Earlier quoted context omitted.

I really miss the tear-off-into-their-own-window menus. They were so handy. I have to wonder if the fact that Wayland either never had or has only very recently gotten support for applications that need to place their windows at application-commanded locations on the screen meant that those lovely tear-off menus had to die.

FWIW, they have been unfashionable for much longer than Wayland has been usable, on all platforms. And that’s understandable. It’s not actually good usability.

> It’s not actually good usability.

They're really great on systems that let you hold a modifier key and then a mouse button to drag windows around... rather than requiring you to find the very-small-compared-to-the-size-of-the-entire-window portion of the window you can click to change the window position. They get even better when you're on a system that reliably remembers the position of application windows.

Folks who have never used a system that lets you relocate and resize windows without first moving your mouse cursor to "blessed" regions of the window absolutely do not know what they're missing.

> ...they have been unfashionable...

Fashion is for people who love doing busywork. Where fashion gets nasty is when that busywork makes a bunch of work for everyone else.

Post reply on HN