TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Guide: Full Wayland Setup for Linux

112 pointsby colingwabout 4 years ago

14 comments

OtomotOabout 4 years ago
Funny thing: I was on sway full time for over a year, nearly 2 actually. I went so far as to uninstall i3 (not XWayland, nor X for obvious reasons)<p>Since a few months I noticed weird (complete) freezes&#x2F;crashes on my pc, while gaming... it&#x27;s not the youngest so I thought it may come to end of life.<p>Out of curiosity I reinstalled i3 a couple of days ago and used it (only) for gaming. No crash since.<p>I assume it&#x27;s either a bug in Mesa (AMDGpu) or somewhere in the wayland stack... sway hasn&#x27;t had an update since November, so... I dunno, I haven&#x27;t taken the time to investigate.<p>While working I still use sway, because I&#x27;ve customized it to my needs, but for Gaming&#x2F;Streaming I now switch to i3 again.<p>Nice sideeffect: I can finally play some games again that wouldn&#x27;t even launch on Sway or were unplayable, like e.g. Natural Selection 2 which turned to a black screen when I switched workspaces (e.g. from one monitor to another) to e.g. tune down the music or scroll down a page while being dead.<p>Feels funny, but more annoying :&#x2F;
评论 #26415131 未加载
评论 #26416165 未加载
评论 #26415212 未加载
评论 #26415215 未加载
mappuabout 4 years ago
This is an opinionated guide, hopefully nobody gets the wrong idea like it&#x27;s actually hard to start using Wayland - for me, switching to Wayland was one drop-down menu option that automatically appeared on my login screen.
评论 #26416117 未加载
评论 #26414978 未加载
评论 #26415117 未加载
评论 #26469169 未加载
pimeysabout 4 years ago
I&#x27;ve been using sway a few years already: first in the office workstation with AMD card with Arch, then on my home ThinkPad T25 on NixOS and again on my hobby&#x2F;travel ThinkPad X230 on FreeBSD that works so smooth and fast now. What&#x27;s left on xorg&#x2F;i3 is the workstation with an nvidia GPU, that&#x27;ll be replaced to an AMD card when the prices come down a bit.<p>I&#x27;m super happy with sway. It&#x27;s adding all i3 patches into one coherent setup. The community is friendly and helpful and the desktop super snappy and pleasure to use from old laptops to extremely fast workstations.<p>Thank you for the developers and community.<p>Edit: dotfiles here <a href="https:&#x2F;&#x2F;github.com&#x2F;pimeys&#x2F;nixos" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pimeys&#x2F;nixos</a>
评论 #26418817 未加载
vetinariabout 4 years ago
Wrt SDL2: You can actually replace SDL2 with your own, even if it is statically linked with the game. First, do `export SDL_DYNAMIC_API=&#x2F;my&#x2F;actual&#x2F;libSDL-2.0.so.0` and then launch your game.<p>All the gory details: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;linux_gaming&#x2F;comments&#x2F;1upn39&#x2F;sdl2_adds_dynamic_api_magic_to_allow_updating_it&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;linux_gaming&#x2F;comments&#x2F;1upn39&#x2F;sdl2_a...</a>
xfalcoxabout 4 years ago
I went full wayland a few months ago, at first on Ubuntu.<p>Now, I&#x27;m using the early days of the Manjaro Sway Community edition, and it&#x27;s basically everything that is described in this post packaged and pre-configured out of the box.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Manjaro-Sway&#x2F;manjaro-sway&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Manjaro-Sway&#x2F;manjaro-sway&#x2F;</a>
josteinkabout 4 years ago
Off topic, but still...<p>&gt; Alacritty, a modern terminal that &quot;just works&quot;<p>I find alacritty’s slogan funny, because it’s literally the only terminal emulator I’ve used which has been so full of bugs that I found it <i>didn&#x27;t</i> work for me and I stopped using it.
评论 #26418679 未加载
评论 #26418237 未加载
评论 #26416982 未加载
whalesaladabout 4 years ago
At the end of the day what is the benefit to the layman of being 100% pure wayland?
评论 #26414458 未加载
评论 #26414438 未加载
评论 #26415020 未加载
评论 #26414397 未加载
评论 #26414733 未加载
评论 #26414339 未加载
评论 #26418592 未加载
clircleabout 4 years ago
I have Ubuntu 20 and sometimes switch between &quot;Ubuntu&quot; and &quot;Ubuntu on Wayland&quot; and can&#x27;t tell any speed difference.
MayeulCabout 4 years ago
Very thoughtful guide. Don&#x27;t forget to launch dbus and policykit is all I can add.<p>I&#x27;ve been using sway daily for about two years now. Here are my current gripes:<p>- Sometimes, client applications do not receive input anymore (mouse&#x2F;keyboard). This has been a known issue for a while, but I still experience it.<p>- `dpms off` started to crash my AMD-powered PC some time ago, annoying when I configured it to happen with `swayidle`<p>- Sharing screen in browsers worked extremely well... last month or so, when it finally got turned on in Firefox. I didn&#x27;t change my config, but it isn&#x27;t working anymore. The handshakes happen, but Firefox or OBS display nothing with xdg-desktop-portal<p>Minor gripes:<p>- Some Wine (proton) games have trouble getting focused (Sins of a solar empire launcher, Evochron mercenary, IIRC). Other play funny, with screen resolution and mouse coordinates (ashes of the singularity, I think).<p>- I launch it with `sway`. After Sysrq+R, I often terminate sway by mistake by pressing Ctrl+C<p>- Very occasional (once every 200 hours or so) crashes. Probably because C.
评论 #26416437 未加载
评论 #26418601 未加载
zamadatixabout 4 years ago
If you go this &quot;build it piecewise&quot; route instead of a full package DE you&#x27;ll probably also want notifications, screenshot, a GUI tool for external monitor management (I go as far as using nmtui instead of a widget for networking but absolute detest dealing with sway commands to present on an external screen), battery monitor, and a screen lock&#x2F;screensaver. Plenty of good options for all the above but sway is not a batteries included DE to choose so you have to find them yourself.<p>Mostly to learn new things I didn&#x27;t do any xwayland at all. It&#x27;s definitely been interesting but certainly not what most would want at the moment IMO.
评论 #26415198 未加载
评论 #26415130 未加载
vz8about 4 years ago
I suppose trying this on VirtualBox (Win10 system) could be an exercise in frustration, but I&#x27;m tempted...
评论 #26415055 未加载
solarkraftabout 4 years ago
Yay for wlroots based Wayland compositors!<p>Besides the tiling Sway there&#x27;s also the stacking Wayfire[0] that is from the same family, but modeled after Compiz (blur, desktop cube and good old wobbly windows are all there) and highly configurable.<p>I use it with Waybar[1], wf-dock[2], Sirula[3] as a launcher and a bunch of other small tools like Gammastep[4] (fork of Redshift) for white balance adjustment, grim &amp; slurp [5] for screenshots and mako[6] for notifications. [7]<p>It&#x27;s a very DIY-y experience, but it&#x27;s meant to be (if you want something pre-configured you can barely change try Gnome). The combination of getting it just right and the Ikea effect makes for a pretty rewarding result (I also maintain a list of the available desktop tools you can use when on a wlroots based compositor for your DIY needs [8]). The vision for the future is pre-configured DEs being offered on this base and it possibly even offering a lot of Sway&#x27;s tiling features. [9]<p>It still feels like the early days (for non-Gnome), but with Nvidia driver 470 &amp; accelerated XWayland coming up, the Vulkan efforts, Electron (finally) and Wine making the switch I feel fairly confident saying that 2021 is shaping up to be the year of the Wayland desktop.<p>Free of screen tearing and X-related worries since 2020 :-)<p>[0]: <a href="https:&#x2F;&#x2F;wayfire.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;wayfire.org&#x2F;</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;Alexays&#x2F;Waybar" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Alexays&#x2F;Waybar</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;WayfireWM&#x2F;wf-shell" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WayfireWM&#x2F;wf-shell</a><p>[3]: <a href="https:&#x2F;&#x2F;github.com&#x2F;DorianRudolph&#x2F;sirula" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DorianRudolph&#x2F;sirula</a><p>[4]: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;chinstrap&#x2F;gammastep" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;chinstrap&#x2F;gammastep</a><p>[5]: <a href="https:&#x2F;&#x2F;github.com&#x2F;emersion&#x2F;grim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;emersion&#x2F;grim</a><p>[6]: <a href="https:&#x2F;&#x2F;github.com&#x2F;emersion&#x2F;mako" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;emersion&#x2F;mako</a><p>[7]: My not-completely-but-fairly Wayfire config <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;solarkraft&#x2F;f46421295b8c211b2eb56b3acc118cc4" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;solarkraft&#x2F;f46421295b8c211b2eb56b3ac...</a><p>[8]: <a href="https:&#x2F;&#x2F;github.com&#x2F;solarkraft&#x2F;awesome-wlroots" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;solarkraft&#x2F;awesome-wlroots</a><p>[9]: <a href="https:&#x2F;&#x2F;github.com&#x2F;Javyre&#x2F;swayfire" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Javyre&#x2F;swayfire</a>
samtrack2019about 4 years ago
Why is wayland better X, sorry i dont know well desktop linux,
ciupicriabout 4 years ago
&gt; Sway is a tiling window manager [...] written in C, and thus is very fast and has little resource overhead.<p>So is GNOME as far as I know.
评论 #26420090 未加载
评论 #26415010 未加载
评论 #26414551 未加载