Wayland and X.org problem : Why not following the Android Solution ?
https://www.reddit.com/r/linux/comments/8f9o5y/wayland_and_xorg_problem_why_not_following_the/
Q:
I'm not a linux expert , but no one can deny that a lot of distributions and DE have some issues to replace X.org.
And i Know that Android ( and even chrome OS ) don't use X.org and have great performances , so why GNU/Linux distributions don't go for the same solutions ?
i'm looking for a technical explanation please.
Thanks
A:
Android does things very similarly to Wayland, but the Android graphics stack is pretty tightly coupled to the rest of Android, and it doesn't do some things that are rather useful in desktop/server environments. So Wayland is basically "the Android way", adjusted for desktop use cases.
----------
KWin maintainer speaking: I implemented both the Wayland platform plugin to interface with Linux's DRM subsystem and with Android's hwcomposer.
The main issue with Android's stack is that it is not libc compatible. You need very ugly solutions like libhybris (see https://en.wikipedia.org/wiki/Hybris_(software) ). The hwcomposer layer is compared to DRM extremely lacking. It's lacking atomic updates, it's lacking lots of support for multiple monitors, switching resolutions etc. It's designed for smartphones with one resolution and that's something you notice.
To give you an idea on how lacking hwcomposer is: the plugin for hwcompser in KWin is 754 sloc, the drm plugin in KWin is 3846 sloc. The difference is because hwcompser just lacks features we could implement in drm.
The windowing system running on top of hwcomposer in an Android stack is called surfaceflinger and is compared to a normal windowing system like X11 or Wayland also extremely lacking. It's slowly getting support for things like multiple windows, etc.
Overall it's just not really useful for a desktop system. Starting from the libc system, going to all the details of a good system for desktops.
--------------
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通