{"id":24986,"date":"2024-02-26T10:08:31","date_gmt":"2024-02-26T10:08:31","guid":{"rendered":"https:\/\/linuxways.net\/?p=24986"},"modified":"2024-02-26T10:08:31","modified_gmt":"2024-02-26T10:08:31","slug":"install-wayland-arch-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/arch\/install-wayland-arch-linux\/","title":{"rendered":"How To install Wayland on Arch Linux"},"content":{"rendered":"<p>In Linux operating system to establish the communication between the graphics hardware and display screen a particular communication protocol is used. In the past till 2016, the X11 communication protocol was used in Arch and other Linux distributions, however after that period a new and improved protocol was introduced named Wayland. It is comparatively lighter, is more secure, and is compatible with modern or new display technologies.<\/p>\n<p><strong>Outline:<\/strong><\/p>\n<ul>\n<li><a href=\"#post-24986-_mzeojn7qahnk\"><strong>How to Install Wayland on Arch Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-24986-_xhcn79llfvs8\"><strong>How to Enable Wayland on Arch Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-24986-_vqdovlh9oeyw\"><strong>Wayland on GNOME Desktop on Arch Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-24986-_w0jachtp09lv\"><strong>Wayland on KDE Plasma Desktop <\/strong><\/a><\/li>\n<li><a href=\"#post-24986-_pjchphweecsx\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-24986-_mzeojn7qahnk\"><\/a>How to Install Wayland on Arch Linux<\/h2>\n<p>On Arch Linux Wayland is already pre-installed, however, some Linux distributions may have Wayland missing as most of Linux operating system by default have their windowed system to X11. To verify if Wayland is pre-installed on Arch use the Q and i flag:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">pacman <span class=\"re5\">-Qi<\/span> wayland<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"328\" class=\"wp-image-25000\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-1.png 682w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-1-300x144.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/p>\n<p>If Wayland is not installed on your Arch Linux, then use the Pacman package installer to install Wayland:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-S<\/span> <span class=\"re5\">--needed<\/span> wayland<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"166\" class=\"wp-image-25001\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-2.png 681w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-2-300x73.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>Once the installation is complete, there are some packages that are required to be installed on Arch Linux which include:<\/p>\n<ul>\n<li><strong>Xorg-xwayland:<\/strong> This package runs xclients on Wayland.<\/li>\n<li><strong>Xorg-xlsclients:<\/strong> This is an optional package that only lists the client applications that are running on the system display.<\/li>\n<li><strong>Qt5-wayland: <\/strong>This package is responsible for Qt APIs on Wayland.<\/li>\n<li><strong>Glfw-wayland: <\/strong>This package is responsible for GUI app development packages for Wayland.<\/li>\n<\/ul>\n<p>Now to install all of these Wayland packages execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-S<\/span> <span class=\"re5\">--needed<\/span> xorg-xwayland xorg-xlsclients qt5-wayland glfw-wayland<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"326\" class=\"wp-image-25007\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-3.png 680w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-3-300x144.png 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<h2><a id=\"post-24986-_xhcn79llfvs8\"><\/a>How to Enable Wayland on Arch Linux<\/h2>\n<p>If you are using gdm display manager then to enable Wayland on Arch simply open its custom configuration file and replace <em>waylandEnable=false<\/em> to <em>waylandEnable=true<\/em>:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">nano<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>gdm<span class=\"sy0\">\/<\/span>custom.conf<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"339\" class=\"wp-image-25011\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-4.png 688w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-4-300x148.png 300w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/p>\n<p>However, using the GDM display manager on Arch for Wayland on GNOME can cause screen flickering issues. So to avoid that issue you have to install any other display manager, here I have installed SDDM display manager:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-S<\/span> sddm<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"290\" class=\"wp-image-25015\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-5.png 684w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-5-300x127.png 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/p>\n<p>Once this display manager is installed then disable the previous one to avoid any conflicts:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl disable gdm<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"177\" class=\"wp-image-25020\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-6.png 681w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-6-300x78.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>Now enable sddm on Arch:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl <span class=\"kw3\">enable<\/span> sddm<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"687\" height=\"168\" class=\"wp-image-25025\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-7.png 687w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-7-300x73.png 300w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p>After enabling sddm now start it and as a result, you will see a login window from there reboot the system to apply the changes:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl start sddm<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"640\" class=\"wp-image-25047\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-8.png 1144w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-8-300x168.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-8-1024x573.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-8-768x430.png 768w\" sizes=\"auto, (max-width: 1144px) 100vw, 1144px\" \/><\/p>\n<h2><a id=\"post-24986-_vqdovlh9oeyw\"><\/a>Wayland on GNOME Desktop on Arch Linux<\/h2>\n<p>For Linux distributions, there are a number of different desktop environments that can be installed. Two of the popular ones for Arch Linux and other Linux distributions are GNOME and KDE Plasma. So for GNOME go to the switch user page and from there under the session\u2019s menu select <strong>GNOME on Wayland<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1145\" height=\"631\" class=\"wp-image-25064\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-9.png 1145w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-9-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-9-1024x564.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-9-768x423.png 768w\" sizes=\"auto, (max-width: 1145px) 100vw, 1145px\" \/><\/p>\n<p>After logging in to your Arch user account, you can verify the Wayland as a windowing system in Arch system details:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"564\" class=\"wp-image-25071\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-10.png 778w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-10-300x217.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-10-768x557.png 768w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/p>\n<p>Alternatively, you can verify by command line as well by printing the value of <em>XDG_SESSION_TYPE<\/em> variable in which the system display server name is saved:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">echo<\/span> <span class=\"re1\">$XDG_SESSION_TYPE<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"174\" class=\"wp-image-25077\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-11.png 683w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-11-300x76.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<h2><a id=\"post-24986-_w0jachtp09lv\"><\/a>Wayland on KDE Plasma Desktop<\/h2>\n<p>To run Wayland on KDE you need to first install it on Arch and for that use the Pacman package installer on Arch. Along with that also install the necessary KDE applications which will make it fully functional:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-S<\/span> <span class=\"re5\">--needed<\/span> plasma kde-applications<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"360\" class=\"wp-image-25089\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-12.png 678w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-12-300x159.png 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/p>\n<p>During installation, you will come across various prompts the first one will be about installing 51 members in group plasma so to allow it simply enter. The next prompt will be about KDE-applications and for that again hit enter:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"333\" class=\"wp-image-25094\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-13.png 682w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-13-300x146.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/p>\n<p>The next prompt is about the selection of a framework that uses the API for audio and video playback in KDE applications. Here are the two options:<\/p>\n<ul>\n<li><strong>phonon-qt5-gstreamer:<\/strong> It is a framework that uses gstreamer for creating multimedia applications that support a wide range of media streams. To support more formats, you might need to install an additional codec package.<\/li>\n<li><strong>phonon-qt5-vlc: <\/strong>This backend is more reliable as it uses a VLC media player, which is capable of handling almost every media file.<\/li>\n<\/ul>\n<p>Here I have opted for VLC as it is far better when it comes to quality and stability.<\/p>\n<p>The next prompt is about installing <em>qt5-bindings<\/em>, which is a cross-platform application development network. This provides C++ API and supports other languages which include Python, Rust, and others. Here I have selected<em> python-pyqt5<\/em> because it is more stable and mature than <em>pyside2<\/em>. It has a large user base and more third-party libraries.<\/p>\n<p>After that, there is another prompt that provides two options for installing cron which is a time-based job scheduler. Here I have installed it by core repository as it provides a standard cron daemon and anacron tool for running the tasks that are not time-sensitive.<\/p>\n<p>Next, the prompt is about installing tessdata which serves the purpose of recognizing the text from different languages and scripts using tesseract. It provides the OCR functionality for its applications such as okular and spectacle:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"417\" class=\"wp-image-25100\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-14.png 681w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-14-300x184.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>Once the KDE is successfully installed on Arch install the plasma Wayland session package which provides the necessary components for running KDE plasma on Wayland. Here, the needed flag ensures the installation of only the missing dependencies:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-S<\/span> <span class=\"re5\">--needed<\/span> plasma-wayland-session<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"679\" height=\"258\" class=\"wp-image-25102\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-15.png 679w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-15-300x114.png 300w\" sizes=\"auto, (max-width: 679px) 100vw, 679px\" \/><\/p>\n<p>After installing all the missing dependencies, perform a system reboot so that the applied changes are enforced:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> reboot<\/div><\/div>\n<p>On system reboot when the login page appears, select Plasma (Wayland) from the session window and then login to your user account:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1148\" height=\"644\" class=\"wp-image-25111\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-16.png 1148w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-16-300x168.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-16-1024x574.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-16-768x431.png 768w\" sizes=\"auto, (max-width: 1148px) 100vw, 1148px\" \/><\/p>\n<p>Once you are logged in, you can verify the Wayland by navigating to About section in <strong>System Settings<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1015\" height=\"496\" class=\"wp-image-25115\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-17.png 1015w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-17-300x147.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-17-768x375.png 768w\" sizes=\"auto, (max-width: 1015px) 100vw, 1015px\" \/><\/p>\n<p>Now if you want to shift back to X11 then from the session menu select Plasma (X11) or GNOME on Xorg. Further, if you want to use any other display manager then in that case you need to disable it first before installing any other:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl disable sddm<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"198\" class=\"wp-image-25120\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-18.png 683w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24986-18-300x87.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<h2><a id=\"post-24986-_pjchphweecsx\"><\/a>Conclusion<\/h2>\n<p>Wayland is a modern and efficient display protocol for Linux which offers several advantages over Xorg such as improved stability, improved graphical performance and security. On Arch Linux it is preinstalled but you need to either enable it or shift the session depending on the display manager you are using. To verify if it is preinstalled on Arch use the query flag along with Pacman. If you are running Arch as a virtual machine then use the sddm display manager because with GNOME you will face screen blackout and flickering issues.<\/p>","protected":false},"excerpt":{"rendered":"<p>To install Wayland on Arch use the Pacman package installer. It can be used with both GNOME and KDE. Use sddm display manager for it.<\/p>","protected":false},"author":113,"featured_media":25302,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1055],"tags":[],"class_list":["post-24986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arch"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=24986"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24986\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/25302"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=24986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=24986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=24986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}