Skip to content

What Is Wayland and What Does It Mean for Linux Users?

Wayland Desktop

Ever since Fedora 25 boldly introduced the Wayland graphics stack by default in 2016, it’s been installed as the primary option in several Linux distros. You may even be using it now if you’re reading this from a Linux machine. Even as Wayland has been around for a while, it’s still a topic of intrigue among people who have been accustomed to using the older, ubiquitous X11 protocol through Xorg.

This guide briefly goes over what Wayland is, what it does, and why developers are flocking to it in droves!

Content
  • What Is Wayland?
  • How Does Wayland Work?
  • How to Try Wayland
  • Frequently Asked Questions

Tip: learn the most effective ways to speed up your Linux PC.

What Is Wayland?

To display the windows on your screen and correctly draw every one of their elements, Linux needs a way to communicate with your graphics hardware and displays. From 1984 to 2016, most distros used a display protocol called the “X window system core protocol” (or just X). Wayland appeared at the end of this period, presenting an alternative that is lighter, has more security, and is more optimized to work on modern display technologies.

Display protocols can’t work by themselves to draw things on your screen, though. They need to be implemented in pieces of software known as display servers. For X, the reigning champion for a very long time has been Xorg.

wayland-xorg-xsession

In Wayland, the display server will often just be the window manager your desktop environment uses. For GNOME, it’s Mutter. In KDE Plasma, it’s KWin. Instead of having a separate standalone process running the server, the window manager makes calls to a library within the system to communicate with graphics hardware. In most cases, that would be wlroots.

This allows GNOME’s Mutter, for example, to write data into the framebuffer directly, instead of using a middleman (much like how Xorg is used), tangibly improving performance.

How Does Wayland Work?

Display servers give information to the kernel and graphics hardware so that they can rapidly pass things on to the display. They receive this information through applications that communicate with them using their respective protocols. An application designed to work with X, for example, cannot communicate with a Wayland server.

Wayland Displayserver

Wayland solves this through something called XWayland, which acts as a compatibility layer that allows X client-server interaction to be translated into something that Wayland can “understand.”

In Wayland, the server and compositor are one and the same. Every desktop environment that uses Wayland makes calls to a library that implements the Wayland protocol to draw effects, such as transparency, window blurring, transition animations, and drop shadows, that give windows a sense of dimension.

Wayland brings all of these functions closer to the kernel, and you’ll often feel it by the “smoothness” that you experience in the graphical environment.

Instead of drawing through the use of a third-party software, Wayland calls what is known as the Direct Rendering Manager (DRM) buffer in the kernel to draw things.

You may notice that in Wayland, the steps are much simpler and the process straightforward. This leads to greater performance in graphically intense situations and makes it easier for developers to make applications that run under this protocol.

Good to know: issues with the display server or graphic driver can cause screen tearing. Find out what screen tearing is and how to fix it.

How to Try Wayland

Most Linux distributions have decided to go with Wayland as a default option, so you may even be using it right now! You can easily check this by opening a terminal and typing echo $XDG_SESSION_TYPE.

There are some holdouts, like Linux Mint, due to the slow development cycle of its desktop environments and the debate on whether Wayland is truly mature enough to run on the distro.

At the moment, installing Ubuntu 22.04 or later – or any currently-supported version of Fedora – offers the most painless way to experience Wayland.

wayland-gnome-wayland-session

In any other distro, if it’s using a current version of GNOME or KDE Plasma, it has the option to use Wayland.

If you’re using Arch Linux, you may have to follow these steps:

  1. If you’re running GNOME, there’s nothing to do, as your display manager (GDM) supports it by default. If you’re running KDE Plasma with its default display manager, you have to grab the “git” version of it from the AUR:
yay -S sddm-git

or

paru -S sddm-git
  1. If you did anything in step 1, check that the systemd service didn’t get disabled or something:
sudo systemctl enable sddm
  1. Install XWayland:
sudo pacman -S xorg-xwayland

That’s it! The next time you boot your system, you’ll have the option to select Wayland as the display protocol for your desktop environment on your login screen.

If you want to debug events to see why something is not working properly, run:

qdbus org.kde.KWin /KWin org.kde.KWin.showDebugConsole

Frequently Asked Questions

What drivers currently support Wayland?

Since Nvidia released version 495.44 on October 26, 2021, all major graphics card manufacturers (AMD, Nvidia, and Intel) have implemented full support for Wayland in their drivers with Generic Buffer Management (GBM), which is currently the gold standard for implementations of the display protocol.

Will Wayland stop keyloggers?

X11 has long been known to be vulnerable to something known as the “unauthorized access attack” ( CVE-1999-0526), which allows applications to take unwarranted screenshots, tap into keyboard and mouse events, etc., to gain access to usernames and passwords. Although Wayland has security measures in place to prevent these sorts of attacks, this protection is only within the realm of serving graphics to your display. An application can still, in practice, listen to other types of messages sent to the kernel through the keyboard.

In short, avoid overconfidence in your machine, as Wayland enhances your security in niche ways!

How does Wayland perform with gaming?

In some niche cases, you’ll notice some improvements when gaming with Wayland, but games that render through Xorg may have small graphical issues. Some overlay applications (like WTRTI, which provides an overlay for War Thunder, for example) may not work at all, as it’s an XWayland window trying to talk to another XWayland window, which can be very difficult. Your mileage may vary, and you may be just as pleased with some results as you would be disappointed in others.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Miguel Leiva-Gomez
Miguel Leiva-Gomez

Miguel has been a business growth and technology expert for more than a decade and has written software for even longer. From his little castle in Romania, he presents cold and analytical perspectives to things that affect the tech world.

玻璃钢生产厂家哈尔滨玻璃钢动物马雕塑天津玻璃钢雕塑园四川卡通人物雕塑玻璃钢广东室内商场美陈市场温州耐高温玻璃钢花盆安徽户外玻璃钢雕塑销售厂家公园玻璃钢雕塑价位吉安展会玻璃钢雕塑订制kaws定制玻璃钢雕塑洛阳校园玻璃钢雕塑价格成都清远玻璃钢仿铜人物雕塑西安商场美陈雕塑黄冈卡通玻璃钢雕塑安装园林景观雕塑灯塔玻璃钢雕塑东莞玻璃钢花盆座椅四川公园玻璃钢雕塑多少钱舟山环保玻璃钢雕塑联系方式定州玻璃钢雕塑公司连云港玻璃钢广场雕塑设计长春玻璃钢雕塑公司哪家好玻璃钢 雕塑 材料贵州定做玻璃钢雕塑邵阳人物玻璃钢雕塑生产厂家广陵玻璃钢花盆花器海宁玻璃钢雕塑报价玻璃钢花盆花器特色官渡玻璃钢雕塑镜面玻璃钢雕塑便宜商场美陈作品集锦大全北京各大商场美陈香港通过《维护国家安全条例》两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”19岁小伙救下5人后溺亡 多方发声单亲妈妈陷入热恋 14岁儿子报警汪小菲曝离婚始末遭遇山火的松茸之乡雅江山火三名扑火人员牺牲系谣言何赛飞追着代拍打萧美琴窜访捷克 外交部回应卫健委通报少年有偿捐血浆16次猝死手机成瘾是影响睡眠质量重要因素高校汽车撞人致3死16伤 司机系学生315晚会后胖东来又人满为患了小米汽车超级工厂正式揭幕中国拥有亿元资产的家庭达13.3万户周杰伦一审败诉网易男孩8年未见母亲被告知被遗忘许家印被限制高消费饲养员用铁锨驱打大熊猫被辞退男子被猫抓伤后确诊“猫抓病”特朗普无法缴纳4.54亿美元罚金倪萍分享减重40斤方法联合利华开始重组张家界的山上“长”满了韩国人?张立群任西安交通大学校长杨倩无缘巴黎奥运“重生之我在北大当嫡校长”黑马情侣提车了专访95后高颜值猪保姆考生莫言也上北大硕士复试名单了网友洛杉矶偶遇贾玲专家建议不必谈骨泥色变沉迷短剧的人就像掉进了杀猪盘奥巴马现身唐宁街 黑色着装引猜测七年后宇文玥被薅头发捞上岸事业单位女子向同事水杯投不明物质凯特王妃现身!外出购物视频曝光河南驻马店通报西平中学跳楼事件王树国卸任西安交大校长 师生送别恒大被罚41.75亿到底怎么缴男子被流浪猫绊倒 投喂者赔24万房客欠租失踪 房东直发愁西双版纳热带植物园回应蜉蝣大爆发钱人豪晒法院裁定实锤抄袭外国人感慨凌晨的中国很安全胖东来员工每周单休无小长假白宫:哈马斯三号人物被杀测试车高速逃费 小米:已补缴老人退休金被冒领16年 金额超20万

玻璃钢生产厂家 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化