So I just installed the latest Kali Linux on my laptop which was based on Debian 7 (oldstable). I then dist-upgrad-ed the whole thing to Debian 8.

I've always wanted Wayland instead of X11, so I installed the necessary packages. Then created a minimal ~./config/weston.ini configuration. Now, from the Gnome log-in screen: Login Screen

I can boot to Gnome on Wayland or LXDE (among others). The previous with very limited success and the latter (LXDE) almost perfectly, though the panel needs setting up (I have to look up freedesktop).

Anyways, in LXDE, the GUI is more responsive than it was on the oldstable and possibly as fast when it was running windows 7. I was pleased.

But I want to know if this is because of all the library/module upgrades from Debian 7 to 8 or from using Wayland (if I really am using Wayland at all). I skimmed through htop and found a /usr/bin/Xorg running and no process named "wayland". So which one am I currently running?

share|improve this question
    
run xprop, this tool will work on xapplications running under emulation but not wayland or gnome-shell on wayland. – Mike Mestnik Aug 10 '15 at 1:40

The best thing I found working for Fedora is

loginctl show-session <YOUR_NUMBER> -p Type

The number to pass in is the one you get by issuing just

loginctl

Use the one with your user name.

Refer to: https://fedoraproject.org/wiki/How_to_debug_Wayland_problems

So, for me it is:

$ loginctl show-session 2 -p Type                                                  
Type=wayland
share|improve this answer
2  
Thanks for the great answer. Please add that OP should run loginctl first to see the sessions. – Ho1 Nov 25 '16 at 10:33
1  
loginctl show-session `loginctl|grep <YOUR_USER_NAME>|awk '{print $1}'` -p Type – solsTiCe Dec 7 '17 at 7:06
    
confirmed working on ubuntu 17.10 with gnome-session... surprisingly I'm getting x11 – Ray Foss Dec 24 '17 at 4:38

How to know whether Wayland or X11 is being used?

on X11 systems:

$ echo $XDG_SESSION_TYPE
x11

on some wayland system:

$ echo $XDG_SESSION_TYPE
wayland
share|improve this answer
7  
What does it mean if this variable is unset? – g.rocket May 26 '17 at 6:03

Give the command

ps aux | grep gnome-shell

It will give the output

/usr/bin/gnome-shell --wayland --display-server

If Wayland is active.

share|improve this answer
3  
And what if wayland is the default? – anatoly techtonik Sep 21 '16 at 11:34
    
My "gnome-shell" process was not running with the --wayland option, but when I ran ps aux | grep wayland, I found that /usr/bin/Xwayland was running. – user2016290 Nov 5 '16 at 2:15
    
Often you have two gnome-shell processes: one used for gdm, and one used for the user session. Often gdm's gnome-shell uses wayland but the user session's gnome-shell uses X11. – Marius Gedminas Nov 23 '16 at 8:38
    
Xwayland is a process that bridges between X11 applications and the Wayland display server. Its presence implies that you are running Wayland already -- but check the above caveat, it's possible Wayland is only used for the login screen. – Marius Gedminas Nov 23 '16 at 8:39
    
gnome-shell only works if you are using gnome as DM. – Sebastian Mar 27 '17 at 19:55

This works on fedora

loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type
share|improve this answer

(try to) Run the command 'r' in the Alt+F2 menu. It will restart the environment in Xorg (without losing windows and processes) but in wayland it will give the message "Restart is not available in Wayland".

share|improve this answer

No, I've noticed a pid called Wayland in htop, when I've switched to Wayland for giggles. Unless it's changed that's what one should see. Update: Here is a screengrab showing Wayland process.

enter image description here

share|improve this answer
4  
I don't see a wayland process in your screengrab; the line you've highlighted is a dbus-launch process, starting a session called gnome-wayland. – Stephen Kitt May 16 '15 at 21:30

if you want a visual hint, I wrote a simple GNOME Shell extension that shows an icon that tells you whether you are running Wayland or Xorg

http://www.fepede.net/blog/2017/04/gnome_shell_extension_xorwayland/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.