This Wayland Change Will Improve Linux Forever

Brodie Robertson · Intermediate ·🛠️ AI Tools & Apps ·3y ago

Key Takeaways

The video discusses an upcoming change to Wayland, a Linux compositor, that aims to improve the Linux desktop experience by allowing clients to survive compositor crashes and reconnect to the previously used socket, with tools such as gtk4, pulse audio, and pipeware being utilized in the development process.

Full Transcript

while it's certainly very rare if you have a well-made desktop one of the most annoying things to happen on Linux even more annoying than your entire system crashing is your desktop crashing losing all of the windows you have open losing any unsaved work in the blink of an eye now X11 has traditionally had a way to recover from this bringing all your windows back without ever batting an eye but over on the Wayland side if you're wailing compositor crashes everything gets taken down with it everything is gone no questions asked but it doesn't have to be that way what if there was a way to bring everything back as if nothing had ever happened well there isn't in the main projects but it is being worked on this right here is a gtk demo ignore the fact that it's being done on KDE these are all gtk4 windows and in just a second here he will demonstrate or sort of simulate what it would be like to crash the desktop and when that happens everything is going to come back oh no problem at all and this is the same demo being done but this time with a bunch of tutty applications instead and the exact same result is going to occur in just a moment when he causes the crash to happen right here when everything dies it's all going to come back as if nothing happened this work is primarily being done by David Edmondson and back in 2021 he was going around having talks about this calling it a compositor handoff this is an xdc 2021 addressing whale and robustness and the video we were just looking at was from Academy 2021 with the exact same title he is a developer on KDE and one of the plasma maintainers but he's not solely doing this to improve KDE this is intended to improve the general Wayland experience and he is doing this work as a contractor for valve aiming to improve the general robustness of the Linux desktop and Weyland as we move further and further into it the idea is very simple the implementation maybe not so much so this is his words from various different write-ups make clients survive the compositor crashing or being manually restarted improving overall robustness and reducing potential data loss if the compositor crashes clients can try to reconnect to the previously used socket and resend window State and buffers typical toolkits have all of this information at hand already and can take care of it transparently to application code if the compositor does not support the reconnect mechanism if it exit crashes or in the case of a logout where you support a compositor cleanly closes applications will exit as before applications themselves require no changes unless they do low-level Wayland work it has been tested with a wide range of applications from Advanced Ides to video editors to games and that's the most important thing if every single application had to implement this themselves it would never happen it has to be there at the toolkit level so everybody can just go and use it now this way of approaching crashing is a lot more akin to the way your audio server functions so when something like pulse audio or pipeware crashes and then restarts which I've dealt with often enough sometimes it's my fault for writing really bad Lewis scripts sometimes it's a legitimate problem it doesn't just sit around doing nothing in most cases it will reconnect to the application and audio just starts playing fine like it should but those videos that I've showed you are not just supported by work at the GUI framework level there's also work to be done at places like the compositor level this merge request introduces an API for clients to hand off between compositors literally providing the mechanism for Windows to reconnect to the compositor now the way that I understand it which might be a misunderstanding but I don't think it is is it's not necessarily just say you're using KDE you have all of these windows open it crashes you reopen KDE all the windows are back if I understand it correctly you should be able to go between different desktops that support this feature and have all of the windows follow you assuming that either your desktop crashes or like they're doing in the demo forcing the crash to happen now as it currently stands we have this open merger quest for Weyland we have an over merge request over on the QT side this one has a merge conflict we have an open merger Quest over on the gtk side an open merge Quest over on the X Weyland side we have an open merger Quest over on the Mesa side there is a merger already done on sdl and nothing has been done over on lib Decor yet so right now pretty much everything is still open and still open for discussion and whether you know certain projects are going to want to include it really this only ends up mattering if it becomes a standard across everything if your gsdk windows open but not your QT Windows maybe it works great on your gnome for example but then Katie is just you know sitting there doing nothing but the people becomes a serious problem for are those using a window manager like I do I use a mix and match of QT and gtk if some of the windows closed and some didn't I just would never use the feature now according to this developer the changes are relatively non-invasive throughout these libraries so hopefully it goes well and everything gets merged but over on VR the gtk side over on The Gnome toolkit side which was one of these tabs it had sort of the most gnome response you will ever see this is a good faith feature being worked on by a contractor generally trying to improve the Linux desktop and most of the work is being done by this developer and the first response after some technical criticism which is totally fair needs some tests needs to handle implicit grab fine whatever is this here I should point out that I think this is an absolutely stupid idea on a conceptual level and he goes on from there to give a technical explanation as to why he thinks that is the case but I don't know why he ever thought that starting it like this was a good idea this led to a bit of back and forth about whether it's a good idea whether it's not a good idea the developer said I disagree on the technical comment I've elaborated on them below they ultimately I'm not a gtk Dev I've been doing this across a bunch of toolkits so wanted to help with gtk with patterns proved to work well in if you want it great I'm happy to do the work if not that's up to you and eventually after some back and forth the dev did ultimately agree with him but one of the other contributors had this to say no wonder some people have a bad experience contributing to gnome if this kind of response is acceptable on any level I'm just going to close this thread it's not worth anyone's time responding if there are things to address Hidden in there it better to just open new threads for those issues and the guy who started the thread said stupid idea is such a common idiom in the English language that I didn't even consider anyone would consider it not acceptable let alone on any level it should be pretty obvious that if someone submits work to you the first thing you say shouldn't basically be your dumb like that's not a good way to start a conversation started with the criticism and just leave that comment out altogether but as I said earlier this Dev did eventually get on board or at least no longer thinks it's a stupid idea that you should never be considered and from there that's pretty much the end of our story the most recent work that was being done was from about two or three months ago from there pretty much all that's been done is just making sure these commits can still be merged keeping it tracking with the more recent commits but nothing has been merged so far and no extra work from what I've seen has been done on these repos so as it stands it's kind of just up in the air what's really happening with this honestly I would love for this to be merged and make its way over to W or Roots some of these smaller WL roots compositors are a little bit crashy like when one random person makes a compositor is not gonna be as stable as gnome or as stable as KDE and sometimes things can happen usually they get better over time but better over time is not great for a production system where you want to be getting work done so hopefully this gets merged and hopefully this just becomes standard on the Linux desktop let me know your thoughts in the comment section down below do you care about your compositor crashing and bringing your windows back do you even use a computer do you know what a computer is why are you watching this video I would love to know so if you like the video go and like the video If you really like the video and you want to become one of these amazing people over here go check out my patreon scrub star and liberape linked down below that's gonna be it for me and I'm out [Music]

Original Description

One of the most devastating things to happen to your Linux desktop is it crashing it making you lose all of your unsaved work but there is a change in progress to Wayland to fix that. ==========Support The Channel========== ► $100 Linode Credit: https://brodierobertson.xyz/linode ► Patreon: https://brodierobertson.xyz/patreon ► Paypal: https://brodierobertson.xyz/paypal ► Liberapay: https://brodierobertson.xyz/liberapay ► Amazon USA: https://brodierobertson.xyz/amazonusa ==========Resources========== GTK Demo: https://www.youtube.com/watch?v=eoDnWl6PjNs&feature=youtu.be QT Demo: https://www.youtube.com/watch?t=157&v=SNKzVYUEr7k&feature=youtu.be XDC 2021 Talk: https://media.ccc.de/v/xdc2021-18-addressing_wayland_robustness Akademy 2021 Talk: https://www.youtube.com/watch?v=SNKzVYUEr7k&feature=youtu.be Wayland Issue: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/283 QT Issue: https://codereview.qt-project.org/c/qt/qtwayland/+/377104 GTK Issue: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4073 Xwayland Issue: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/756 =========Video Platforms========== 🎥 Odysee: https://brodierobertson.xyz/odysee 🎥 Podcast: https://techovertea.xyz/youtube 🎮 Gaming: https://brodierobertson.xyz/gaming ==========Social Media========== 🎤 Discord: https://brodierobertson.xyz/discord 🎤 Matrix Space: https://brodierobertson.xyz/matrix 🐦 Twitter: https://brodierobertson.xyz/twitter 🌐 Mastodon: https://brodierobertson.xyz/mastodon 🖥️ GitHub: https://brodierobertson.xyz/github ==========Credits========== 🎨 Channel Art: Profile Picture: https://www.instagram.com/supercozman_draws/ #Linux #Wayland #OpenSource #FOSS #Gnome #KDE 🎵 Ending music Music from https://filmmusic.io "Basic Implosion" by Kevin MacLeod (https://incompetech.com) License: CC BY (http://creativecommons.org/licenses/by/4.0/) DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video o
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Brodie Robertson · Brodie Robertson · 13 of 60

1 This Linux Patch Removes Spectre & Meltdown Protections
This Linux Patch Removes Spectre & Meltdown Protections
Brodie Robertson
2 Linux's Most Degenerate Terminal Application
Linux's Most Degenerate Terminal Application
Brodie Robertson
3 You Can Buy Modern Linux Distros On A DVD??
You Can Buy Modern Linux Distros On A DVD??
Brodie Robertson
4 Bypass Paywalls Vanishes From Firefox Addon Store
Bypass Paywalls Vanishes From Firefox Addon Store
Brodie Robertson
5 CoreJS: The Web & Open Source Are Broken!
CoreJS: The Web & Open Source Are Broken!
Brodie Robertson
6 Begone GTK4, Long Live The New King GTK5
Begone GTK4, Long Live The New King GTK5
Brodie Robertson
7 Flathub Finally Adds Much Needed Flatpak Feature
Flathub Finally Adds Much Needed Flatpak Feature
Brodie Robertson
8 Google Should Be Worried About ChatGPT Bing
Google Should Be Worried About ChatGPT Bing
Brodie Robertson
9 How To Never Improve The Linux Wayland Experience
How To Never Improve The Linux Wayland Experience
Brodie Robertson
10 Fedora Linux Unveils New 5 Year Roadmap
Fedora Linux Unveils New 5 Year Roadmap
Brodie Robertson
11 Linux Desktop Randomly Stuttering? Here's Why #shorts
Linux Desktop Randomly Stuttering? Here's Why #shorts
Brodie Robertson
12 Why We Need Even More Linux Distros!?!
Why We Need Even More Linux Distros!?!
Brodie Robertson
This Wayland Change Will Improve Linux Forever
This Wayland Change Will Improve Linux Forever
Brodie Robertson
14 Ubuntu Linux Was Once Spyware Says EFF & Stallman
Ubuntu Linux Was Once Spyware Says EFF & Stallman
Brodie Robertson
15 Rise Of A New Kind Of Linux Package Manager
Rise Of A New Kind Of Linux Package Manager
Brodie Robertson
16 Rolling Release Linux Distro Probably Isn't For You
Rolling Release Linux Distro Probably Isn't For You
Brodie Robertson
17 Ubuntu Flavors Put An End To Shipping Flatpak
Ubuntu Flavors Put An End To Shipping Flatpak
Brodie Robertson
18 WINE Will Finally Run On Wayland NATIVELY!!
WINE Will Finally Run On Wayland NATIVELY!!
Brodie Robertson
19 No ZDNET, Linux 6.2 WILL NOT Run On M1 Macs
No ZDNET, Linux 6.2 WILL NOT Run On M1 Macs
Brodie Robertson
20 Ubuntu Linux Announces New Kind Of Mini ISO??
Ubuntu Linux Announces New Kind Of Mini ISO??
Brodie Robertson
21 Fedora Linux Finally Kills Off Delta RPM
Fedora Linux Finally Kills Off Delta RPM
Brodie Robertson
22 Linus Torvalds Is Sick Of Useless Git Merges
Linus Torvalds Is Sick Of Useless Git Merges
Brodie Robertson
23 Arch Linux Bricks Dual Boot With One Kernel Change
Arch Linux Bricks Dual Boot With One Kernel Change
Brodie Robertson
24 Linux AppImage Finally Addresses Greatest Flaw!!
Linux AppImage Finally Addresses Greatest Flaw!!
Brodie Robertson
25 Refusing To Use Windows For "Religious Reasons"
Refusing To Use Windows For "Religious Reasons"
Brodie Robertson
26 GNOME Shell & Mutter Finally Drop GTK3!!
GNOME Shell & Mutter Finally Drop GTK3!!
Brodie Robertson
27 11 Documents Showing Microsoft Tried To Destroy Linux
11 Documents Showing Microsoft Tried To Destroy Linux
Brodie Robertson
28 Manjaro Linux Is The Joke That Never Ends
Manjaro Linux Is The Joke That Never Ends
Brodie Robertson
29 The New Ubuntu Linux "Flavor" We All Expected
The New Ubuntu Linux "Flavor" We All Expected
Brodie Robertson
30 NEVER Write Git Commit Messages With ChatGPT
NEVER Write Git Commit Messages With ChatGPT
Brodie Robertson
31 Why GNOME? Why Didn't KDE Takeover Linux?!?
Why GNOME? Why Didn't KDE Takeover Linux?!?
Brodie Robertson
32 Discord Tried To END This Reverse Engineered Server
Discord Tried To END This Reverse Engineered Server
Brodie Robertson
33 Mesa 23 Makes Linux Shader Stuttering A Thing Of The Past
Mesa 23 Makes Linux Shader Stuttering A Thing Of The Past
Brodie Robertson
34 Linux Kernel Broke A Feature NOBODY Uses!
Linux Kernel Broke A Feature NOBODY Uses!
Brodie Robertson
35 Manjaro Broke Asahi Linux... AGAIN!!!
Manjaro Broke Asahi Linux... AGAIN!!!
Brodie Robertson
36 Linux Hasn't Become Complicated & Limiting | Distrotube Reply
Linux Hasn't Become Complicated & Limiting | Distrotube Reply
Brodie Robertson
37 Ubuntu Linux's Steam Snap Is Almost Stable
Ubuntu Linux's Steam Snap Is Almost Stable
Brodie Robertson
38 Wayland Is Linux's Future, But Why Do I Care?
Wayland Is Linux's Future, But Why Do I Care?
Brodie Robertson
39 John Deere Refuses To Respect Free Software & GPL
John Deere Refuses To Respect Free Software & GPL
Brodie Robertson
40 Why BSD Documentation Is Just Better Than Linux
Why BSD Documentation Is Just Better Than Linux
Brodie Robertson
41 KDE Fixes Discord On Wayland Because Discord Can't
KDE Fixes Discord On Wayland Because Discord Can't
Brodie Robertson
42 Xorg Foundation Has A Serious Problem
Xorg Foundation Has A Serious Problem
Brodie Robertson
43 Manjaro Linux's Biggest Drama That Never Happened
Manjaro Linux's Biggest Drama That Never Happened
Brodie Robertson
44 I'm Leaving Arch Linux For A Better Distro!!
I'm Leaving Arch Linux For A Better Distro!!
Brodie Robertson
45 Red Hat Linux Once Featured A REDNECK Translation
Red Hat Linux Once Featured A REDNECK Translation
Brodie Robertson
46 Android Authority Doesn't Understand Linux or Android
Android Authority Doesn't Understand Linux or Android
Brodie Robertson
47 Switching To Wayland: Why I'm Daily Driving Hyprland
Switching To Wayland: Why I'm Daily Driving Hyprland
Brodie Robertson
48 Private Security Patching Is A Nightmare In Open Source
Private Security Patching Is A Nightmare In Open Source
Brodie Robertson
49 Xorg Vs Wayland Is Just A Technical Detail
Xorg Vs Wayland Is Just A Technical Detail
Brodie Robertson
50 Why Did Fedora Linux Drop Its Wacky Release Names?
Why Did Fedora Linux Drop Its Wacky Release Names?
Brodie Robertson
51 KDE App Theming On Other Desktops Is A Mess
KDE App Theming On Other Desktops Is A Mess
Brodie Robertson
52 Xenocara: That X11 Server That Isn't Xorg
Xenocara: That X11 Server That Isn't Xorg
Brodie Robertson
53 PopOS New COSMIC Desktop Has Me Excited Again!
PopOS New COSMIC Desktop Has Me Excited Again!
Brodie Robertson
54 Hilarious GNOME Archive Bug Finally Gets Addressed
Hilarious GNOME Archive Bug Finally Gets Addressed
Brodie Robertson
55 Rust Foundation Has A Serious Trademark Problem
Rust Foundation Has A Serious Trademark Problem
Brodie Robertson
56 Top 5 Best Hyprland Linux Features
Top 5 Best Hyprland Linux Features
Brodie Robertson
57 Installing Linux Software Is More Confusing Than Ever
Installing Linux Software Is More Confusing Than Ever
Brodie Robertson
58 Clipboard: Simple Unified Linux Clipping Tool
Clipboard: Simple Unified Linux Clipping Tool
Brodie Robertson
59 Solus Linux Returns From The Distro Afterlife
Solus Linux Returns From The Distro Afterlife
Brodie Robertson
60 uBlue Linux: Immutable Fedora With Batteries Included
uBlue Linux: Immutable Fedora With Batteries Included
Brodie Robertson

The video discusses an upcoming change to Wayland that aims to improve the Linux desktop experience by allowing clients to survive compositor crashes, with a focus on reliability, robustness, and recovery. The change utilizes tools such as gtk4, pulse audio, and pipeware, and has the potential to create a more seamless and user-friendly Linux desktop. Viewers can learn about the importance of compositor stability and how to design client-server architectures for robust recovery mechanisms.

Key Takeaways
  1. Investigate the current state of Wayland and its limitations
  2. Design a client-server architecture for robust recovery mechanisms
  3. Implement tools such as gtk4 and pulse audio for development
  4. Test and refine the system for seamless user experience
  5. Analyze compositor crash data to inform future development
💡 The upcoming change to Wayland has the potential to significantly improve the Linux desktop experience by allowing clients to survive compositor crashes, but requires careful design and implementation of client-server architectures and recovery mechanisms.

Related AI Lessons

Up next
How to Open HPL Files (HP-GL Plotter)
File Extension Geeks
Watch →