Weston 11.0: what's new, what's next (Collabora blog)
Color management infrastructure code has landed that allows HDR [high dynamic range] characteristics to be delivered to an HDR-capable monitor by setting-up HDR metadata in a weston.ini configuration file and delivering that to KMS [kernel mode setting]. Once Weston gains the ability to produce HDR content in a future version, it will come naturally supported.This new version brings in multiple RDP [remote desktop protocol] improvements, like clipboard pasting, various keyboard language support, bumped support for a newer version of FreeRDP library, and many more other improvements and fixes.
Posted Sep 30, 2022 6:50 UTC (Fri)
by zdzichu (guest, #17118)
[Link] (12 responses)
Posted Sep 30, 2022 7:22 UTC (Fri)
by leromarinvit (subscriber, #56850)
[Link] (10 responses)
Never mind HDR, I'm still waiting for basic color management to be specified and implemented (issue). This makes Wayland a complete non-starter for me personally for now - my 3 monitors need different ICC profiles loaded to look even roughly similar. Without that, the differences are so large they're almost unusable next to each other.
It seems to me that enabling accurate color rendering should be a core feature of display infrastructure - I'm a bit baffled this regression (vs X11) is hardly ever mentioned.
Posted Sep 30, 2022 8:34 UTC (Fri)
by cortana (subscriber, #24596)
[Link] (1 responses)
Posted Oct 13, 2022 19:42 UTC (Thu)
by deltragon (guest, #159552)
[Link]
Posted Sep 30, 2022 8:35 UTC (Fri)
by rsidd (subscriber, #2582)
[Link] (2 responses)
This older article goes into some details.
Posted Sep 30, 2022 8:53 UTC (Fri)
by leromarinvit (subscriber, #56850)
[Link] (1 responses)
I guess that means I can now seriously try out Wayland some day without knowing beforehand I'll be moving back to Xorg anyway - that's progress at least!
Posted Sep 30, 2022 10:34 UTC (Fri)
by rsidd (subscriber, #2582)
[Link]
Posted Sep 30, 2022 14:03 UTC (Fri)
by swick (subscriber, #110059)
[Link] (3 responses)
What you're calling "basic color management" is something we never had on linux and isn't about calibrating your monitor but creating (perceptual) color transforms of client content to the outputs.
Posted Oct 1, 2022 4:18 UTC (Sat)
by patrakov (subscriber, #97174)
[Link]
Posted Oct 17, 2022 10:05 UTC (Mon)
by gwg (guest, #20811)
[Link] (1 responses)
Posted Oct 17, 2022 12:30 UTC (Mon)
by pizza (subscriber, #46)
[Link]
Eh?
My Fedora GNOME desktop has had this for quite some time now, under Wayland. It's certainly been available since Fedora switched to Wayland by default, but the features were there some time before that.
So, yes, yes, and yes.
Posted Oct 18, 2022 10:52 UTC (Tue)
by daniels (subscriber, #16193)
[Link]
Posted Oct 3, 2022 21:41 UTC (Mon)
by bartoc (guest, #124262)
[Link]
Posted Sep 30, 2022 7:50 UTC (Fri)
by geert (subscriber, #98403)
[Link] (12 responses)
There are still +100 fbdev drivers without a DRM counterpart.
Posted Sep 30, 2022 8:49 UTC (Fri)
by lkundrak (subscriber, #43452)
[Link] (10 responses)
I guess weston can still be used with some of affected hardware via simpledrm over firmware initalized framebuffer (on DT-driven ARM platforms) or VESA (on x86).
Does anyone know which one of those have the most significant real world use and would be good candidates for porting?
Posted Sep 30, 2022 19:56 UTC (Fri)
by tdz (subscriber, #58733)
[Link] (5 responses)
I once make a conversion helper to run fbdev drivers within DRM. I also wrote initial DRM support for maybe a dozen fbdev drivers. Source code is at
https://gitlab.freedesktop.org/tzimmermann/linux/-/commit...
The kernel is still 5.4, but once you have something working, you can port it to a recent kernel.
Posted Oct 1, 2022 11:41 UTC (Sat)
by geert (subscriber, #98403)
[Link] (4 responses)
You can hear/read about my experiences from my talk at ELCE2022:
Posted Oct 2, 2022 18:18 UTC (Sun)
by tdz (subscriber, #58733)
[Link] (3 responses)
* fbconv will never be upstreamed. Although I proposed it back then, it'll remain out of mainline. We just want the resulting DRM drivers.
* Thanks for doing the legwork of adding support for the low-end formats
* When you say fbdev emulation is 1x slower, you mean the kernel's fbcon writing onto the screen? How exactly did you test? Did you also test performance for userspace code that operates on /dev/fb?
Posted Oct 2, 2022 18:24 UTC (Sun)
by geert (subscriber, #98403)
[Link]
I had hoped to do the Amiga fbdev to drm conversion before my talk, so I could provide benchmark data on real hardware, but unfortunately I didn't get there in time.
Posted Oct 3, 2022 10:29 UTC (Mon)
by geert (subscriber, #98403)
[Link] (1 responses)
Posted Oct 4, 2022 11:16 UTC (Tue)
by tdz (subscriber, #58733)
[Link]
Yes, using deferred I/O is required to get an idea which framebuffer locations need to be flushed. Otherwise, we'd have to flush the full screen each time. It's also required because the graphics buffer's SHMEM pages currently cannot be mapped easily to userspace. I tried to fix that but did not get something working so far. We we could map the graphics buffer directly, we'd save an intermediate memcpy.
Posted Oct 1, 2022 0:29 UTC (Sat)
by flussence (guest, #85566)
[Link] (3 responses)
Anything else that goes in a PCI, ISA or VLB slot and can't run Compiz or TuxRacer is probably in bad shape. The only ones that come to mind that might be worth fixing up are pre-Radeon ATi cards, a few S3 ones, onboard Intel chips from the Vista era, maybe Matrox ones that aren't already working. Anything else is probably too weak to run a useful GUI.
Posted Oct 1, 2022 9:32 UTC (Sat)
by syrjala (subscriber, #47399)
[Link] (2 responses)
Posted Oct 1, 2022 11:53 UTC (Sat)
by geert (subscriber, #98403)
[Link] (1 responses)
Posted Oct 1, 2022 16:56 UTC (Sat)
by syrjala (subscriber, #47399)
[Link]
Posted Sep 30, 2022 19:46 UTC (Fri)
by tdz (subscriber, #58733)
[Link]
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Eg. KDE already has an implementation pending
It is implemented in Weston 11 but is a WIP. From the release announcement:
Weston 11.0: what's new, what's next (Collabora blog)
- Continued work on color management infrastructure:
There is also ongoing work in wlroots/sway, apparently delayed because of the upstream interest (ie the issue tracker you linked to).
In Weston 11, if you enable the tentative, experimental and WIP color
management option, Weston will not only blend in linear light, but
you can also set up a monitor ICC profile and Weston will do some
kind of color mapping from sRGB to that profile. Furthermore, you can
configure a monitor into HDR mode and deliver HDR characteristics from
weston.ini to the monitor, but Weston will *not* produce proper HDR
content yet, meaning the display is incorrect.
Weston 11.0: what's new, what's next (Collabora blog)
Yes, once the protocol is implemented, any compositor can use it (as I understand). There are (old-ish) patches for sway and wlroots but not merged because of the ongoing upstream work.
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
On the other hand, the architecture and the developers of Wayland have been actively hostile to many of the needs to color management (a fact easily verifiable to anyone who is prepared to look back at the mailing list). The result is that currently color management on Wayland is crippled at best, unusable at worst. Can you calibrate ? Can you profile ? Can you match color across different displays ? No, No and No.
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
https://osseu2022.sched.com/event/15z6T/trading-fbdev-for...
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
I had only benchmarked the console, using fbcon.
Weston 11.0: what's new, what's next (Collabora blog)
One reason for the slow console is that everything is rendered using chunky pixels, and converted to interleaved bitplanes later.
Rendering text (monochrome expansion) and scrolling (copying memory) can be done much more efficiently when operating directly on interleaved bitplanes.
For an application (e.g. a GUI), this is different. But given the age of Ataris, they may be used mostly with a simple 16-color text console, so text console performance is what matters most...
I ran fbtest test012 (Filling squares) and test013 (Filling circles) on the ARAnyM emulator, with both atafb and the WIP atardrm driver.
Results are in Mpixels/s:
| 640x480/C4 | 640x480/C8 |320x240/RGB565
| fbdev | drm | fbdev | drm | fbdev | drm
10x10 squares | 0.29 | 0.43 | 0.24 | 0.40 | 7.99 | 6.30
20x20 squares | 0.54 | 4.81 | 0.34 | 0.72 | 20.46 | 17.23
50x50 squares | 0.94 | 17.05 | 0.67 | 12.79 | 47.03 | 37.87
100x100 squares | 1.16 | 40.08 | 0.73 | 29.66 | 68.20 | 60.18
200x200 squares | 1.23 | 64.90 | 0.70 | 40.08 | 87.09 | 74.39
R5 circles | 0.12 | 0.09 | 0.11 | 0.11 | 3.62 | 3.73
R10 circles | 0.32 | 0.75 | 0.16 | 0.23 | 8.72 | 8.16
R25 circles | 0.37 | 1.21 | 0.18 | 0.43 | 21.14 | 21.42
R50 circles | 0.20 | 1.67 | 0.58 | 3.29 | 37.82 | 34.93
R100 circles | 0.91 | 27.22 | 0.67 | 9.57 | 57.39 | 52.70
The native layout for C4/C8 is interleaved bitplanes, so conversion is needed when updating (copying to) the hardware frame buffer.
The native layout for RGB565 is big endian, so no conversion is needed, just a copy.
Due to the use of deferred I/O in DRM, the hardware frame buffer is not updated instantaneously. This is clearly visible when running these tests, even on ARAnyM, which does its own deferred I/O as part of the emulation.
Findings:
Note that due to running on an emulator, the impact of memory bus bandwidth for the various types of memory (main RAM vs. ST-RAM, as used for graphics) cannot be seen.
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
Weston 11.0: what's new, what's next (Collabora blog)
