News for hackers. Stuff that matters.
Re:Wayland on OpenBSD by mort96 on Monday July 10, 2023 @03:48AM (#36663254)
Good news, color calibration is being worked on! (https://gitlab.freedesktop.org/wayland/wayland-protocols/-/m...)

Wayland doesn't have all the features we'd like it to have yet, it's missing some big things like global hotkeys and color management. It's not moving as fast as I'd like, but all those things are being actively worked on.

X11 also doesn't have all the features we'd like it to have, such as the ability to render frames without tearing or the ability to lock the screen while a context menu is open or the ability to implement a desktop environment without a ton of race conditions. Those things are not being worked on, and X11 will actually regress as new hardware is released and developers don't focus on hacking X11 to work with that hardware.

For a lot of users (such as myself), Wayland is already better than X; there's a reason lots of distros ship Wayland by default now. The situation is certainly way better now than it was 5 years ago.

But that doesn't mean you have to use it! It's ready for you when it's ready for you, and maybe X's wonkyness doesn't annoy you or you've learned to hack around it (congrats on getting different DPI scaling on different monitors to work! I haven't, despite struggling with it. I didn't even know DPI scaling was a thing 20 years ago. Anyway, it worked out of the box on Wayland.)

Re:Wayland on OpenBSD by badsectoracula on Monday July 10, 2023 @07:02AM (#36664626)
> X11 also doesn't have all the features we'd like it to have, such as the ability to render frames without tearing

What exactly do you mean? My Xorg setup can render frames without tearing just fine, both in video playback (VLC) and in games.

TBH i don't really care about tearing (since it tends to come with input lag even on desktop usage) aside from videos, so i haven't looked much into it. However people are working on tearing in Xorg - see the latest commits by Sultan Alsawaf on the xfree86 subtree[0] (which is the standalone X server). Specifically this[1] commit adds a "TearFree" page flip mode in the modesetting driver for not having any sort of tearing at any setup.

[0] https://gitlab.freedesktop.org/xorg/xserver/-/commits/master...

[1] https://gitlab.freedesktop.org/xorg/xserver/-/commit/a94dd95...

Re:Wayland on OpenBSD by mort96 on Monday July 10, 2023 @07:07AM (#36664680)
I don't know what sort of magic you're doing. I haven't been able to get a proper tear free experience on X11 across a very wide range of hardware and distros and desktop environments/compositors.
Re:Wayland on OpenBSD by badsectoracula on Monday July 10, 2023 @07:37AM (#36664954)
I'm using the amdgpu driver with Window Maker, i didn't need to do anything special for it to work. FWIW variable refresh rate also works (my monitor has VRR support and displays the current refresh rate in an overlay), though it needs an option in xorg.conf to enable.

Note that i do have tearing in the desktop if i -e.g.- move windows around, but this is something i want as i do not like the slight input lag compositors add (even on my 165Hz monitor). However there isn't any tearing in VLC or in games (which, depending on the game, i might also run with VRR).

AFAIK the modesetting driver got VRR support only recently and the TearFree mode only just a few months ago so if you used that you might have used some older version.

Though if you tried a compositor, i don't remember using any compositor that didn't do some form of vsync to avoid tearing. I just started KDE Plasma with Xorg in another virtual terminal with its compositor and default settings (i started it as a different user with default settings that i sometimes use for testing) and there wasn't any tearing at all even on the desktop (again using the amdgpu driver).

Re:Wayland on OpenBSD by account42 on Monday July 10, 2023 @11:31AM (#36667888)
TearFree has been working with the amdgpu DDX for ages btw. Zero tearing and with FreeSync the latency hit is negligible.
Re:Wayland on OpenBSD by badsectoracula on Monday July 10, 2023 @03:25PM (#36671639)
I am actually using amdgpu myself but i mentioned the modesetting driver since that is new development to show that people actually still work on that stuff.