Hot answers tagged

229 votes
Accepted

How can I tell if I am running Wayland?

Open the terminal and type in: echo $XDG_SESSION_TYPE Check if it prints wayland.
  • 3,656
66 votes
Accepted

How do you switch from Wayland back to Xorg in Ubuntu 17.10?

When you boot your system and get to the GDM login screen you should find a cogwheel (⚙️) next to the sign in button. If you click on the cogwheel you should find an Ubuntu on Xorg option which will ...
  • 66.1k
62 votes
Accepted

How to disable GUI on boot in 18.04 (Bionic Beaver)?

To disable GUI on boot, run: sudo systemctl set-default multi-user.target To enable GUI again issue the command: sudo systemctl set-default graphical.target To start Gnome session on a system ...
  • 2,515
59 votes

How do you switch from Wayland back to Xorg in Ubuntu 17.10?

If you wish to do it permanently, edit /etc/gdm3/custom.conf and uncomment the line: #WaylandEnable=false by removing the # in front of it. Save the file and then on reboot you will never see the cog ...
59 votes

Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland?

Note this answer is specific to versions of Ubuntu using Wayland, 17.10 being the first release to use Wayland by default. It is a feature not a bug! It is a design feature of Wayland that you can ...
  • 99.9k
26 votes

How can I tell if I am running Wayland?

You could install mesa-utils-extra and run es2gears_wayland If the app runs, you are running Wayland. For a fun way to check whether a specific app is using Wayland or XWayland, run xeyes. The eyes ...
  • 8,164
26 votes

Wayland in Ubuntu 20.04 (IntelGPU)

After doing much searching of the internet I have come up with this solution. This solution will enable Wayland even if you have proprietary NVIDIA drivers on Ubuntu 20.04. Execute sudo apt install ...
  • 360
25 votes

Why is Wayland better?

All other posts highlight the benefits of Wayland, but it's not all good only. The biggest advantage of X over Wayland is that X works over the network. X is network transparent, you can display the ...
25 votes
Accepted

How can I tell if an application is using XWayland?

xlsclients Running xlsclients in a terminal will list all the apps currently running which are using XWayland. Use xeyes! xeyes - a follow the mouse X demo When you launch xeyes, it connects to the ...
25 votes

How do I use X instead of wayland on 22.04?

You can enable the X using the terminal. Open the terminal and run the command: $ sudo nano /etc/gdm3/custom.conf there you will find WaylandEnable=true change it to WaylandEnable=false And restart ...
23 votes
Accepted

How to disable wayland in 17.10 in gdm3 login screen

You need to edit /etc/gdm3/custom.conf, change this line: [daemon] # Uncoment the line below to force the login screen to use Xorg #WaylandEnable=false to [daemon] # Uncoment the line below to ...
  • 32.8k
22 votes

Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland?

Solutions In Wayland it is often difficult to run GUI application programs with elevated (sudo -H, gksu ...) permissions. It is a good idea to do such tasks with command line tools. But there are ...
  • 44k
21 votes

How can I disable touchscreen while using Wayland?

Following steps in JNixus' answer on reddit gave me the result: touchscreen is disabled and touchpad still works: https://www.reddit.com/r/Dell/comments/76jm9x/...
  • 211
20 votes
Accepted

When will Wayland support restarting the shell by command?

In an Xorg session one can restart GNOME shell without losing application state as applications are running against a separate server (X). But unlike Xorg in case of a Wayland session GNOME shell is ...
  • 66.1k
20 votes

Ubuntu on Wayland

at the graphical login screen, you may see an icon either next to the login name, or at the top of the screen on the right; the icon may look like a settings industrial toothed wheel icon, or it may ...
  • 991
20 votes

Microsoft Teams and Wayland - will screen sharing be fixed in 21.04?

The problem does not lie with Ubuntu nor Linux. Teams is an app built on the electron framework, so basically it is one package consisting of html5 with javascript running on chromium. This makes it ...
  • 509
19 votes
Accepted

Keyboard shortcut for rotating Ubuntu 17.10 Screen

I'm not sure if there's any by default, but You can easily set the one You like! Just tap Super to open Dash, search for Keyboard, go to hotkeys tab and create new one. The commands You need are: ...
  • 1,393
19 votes
Accepted

Screen sharing under wayland

I should note for those who come after me that this is partly fixed in Ubuntu 21.04, with the following caveats: Enabling WebRTC with pipewire works in Chrome / Chromium. To do so, open chrome://...
  • 994
17 votes
Accepted

Screen sharing with Wayland

Ubuntu 22.04 Support may be working out of the box, but I did not have all the needed packages on upgrading from 20.04. I was able to have screen sharing working with the following: (!) if this breaks ...
  • 1,509
17 votes
Accepted

How do I enable Wayland on Ubuntu 21.10 (NVIDIA)?

I can see in the "/lib/udev/rules.d/61-gdm.rules" file that there are still a few things that can prevent Wayland from being selectable at the login screen (GDM): the system is running on a ...
17 votes
Accepted

Ubuntu 22.04 can't suspend

After a few days of searching for a solution, I finally found one of the solutions I tried yesterday, and it finally worked! But I haven't found out any further whether the impact on my laptop in the ...
  • 336
16 votes
Accepted

How to set per-monitor scaling on Wayland?

I figured out what was wrong. By default, I had a scaling factor set to handle the HiDPI screen on my laptop. When using Wayland, though, this scaling factor overrides for both screens. The solution ...
16 votes

Wayland how to set a custom resolution

You can try to set a custom resolution with wayland with some effort and mixed results. You should probably start by filing a bug report, including your graphics card and monitor(s), against wayland ...
  • 99.9k
15 votes

How can I tell if I am running Wayland?

Use that command in the Ubuntu terminal: echo $DESKTOP_SESSION Look at the value returned. If on wayland it will return gnome-wayland ubuntu-wayland # Ubuntu 20.10
  • 175
14 votes
Accepted

How to get a Wayland session in Kubuntu?

Since 5.4 it is possible to start a complete Plasma session on Wayland. For this go to a tty, log in, end the running X server (otherwise startup might block) and run the following command: ...
12 votes

How to prevent the screen lock while watching video (Netflix, Youtube, Amazon Prime) in Ubuntu 17.10

The reason that this does not work any more is because 17.10 is the first ubuntu release that uses wayland as its display server. It looks like preventing screen lock is an entirely missing feature in ...
  • 121
12 votes

18.04: How to get Wayland back after upgrade to 18.04?

On the login screen, you should be able to select "Ubuntu on Wayland" by clicking on the settings icon, next to the login button. If that option is not available under the cog icon on the password ...
12 votes

Microsoft Teams and Wayland - will screen sharing be fixed in 21.04?

As an alternative option, you can run the Teams web app on Chrome or Edge Beta, which allow sharing on Wayland.
12 votes

What are the steps to run Wayland on 21.04 with optimus nVIDIA?

The settings I adapted are: add to /etc/modprobe.d/nvidia-graphics-drivers.conf: options nvidia_drm modeset=1 ensure #WaylandEnable=false is commented in /etc/gdm3/custom.conf comment all lines ...

Only top scored, non community-wiki answers of a minimum length are eligible