You are not logged in.

#1 2018-04-03 10:50:23

Gasp0de
Member
Registered: 2012-12-24
Posts: 47

[SOLVED] Why am I running both X and Wayland?

Hi,
when looking at CPU usage of my processes, I saw that Xorg was running. That confused me, since I thought I was only using Wayland. So I ran

loginctl

which showed that there are two sessions active, one with my user, and one with gdm as the user. The gdm session uses xorg, while my session uses wayland:

[gaspode@gaspodelaptop ~]$ loginctl show-session c3 -p Type
Type=x11
[gaspode@gaspodelaptop ~]$ loginctl show-session c1 -p Type
Type=wayland

Why does this gdm session exist and why does it use Xorg? Seems like a waste of resources (and thus battery on my notebook) to me, considering that the xorg process sometimes uses up to 5% of my CPU.

Last edited by Gasp0de (2018-04-03 11:18:56)

Offline

#2 2018-04-03 11:08:09

flortsch
Member
From: Austria
Registered: 2015-07-21
Posts: 40
Website

Re: [SOLVED] Why am I running both X and Wayland?

Are you sure that your gdm session uses x11 while your user session uses wayland and it's not the other way around?
Because c1 is usually the gdm session and per default, the gdm session runs within a wayland session.
Next to the login button you can choose, whether you want an x11 or wayland user session.

The gdm session runs as a separate session because it handles things like the login, user switching or screen locking.

Last edited by flortsch (2018-04-03 11:13:05)

Offline

#3 2018-04-03 11:13:44

Gasp0de
Member
Registered: 2012-12-24
Posts: 47

Re: [SOLVED] Why am I running both X and Wayland?

Oops, you are correct!

[gaspode@gaspodelaptop ~]$ loginctl
   SESSION        UID USER             SEAT             TTY             
        c3       1000 gaspode          seat0            tty2            
        c1        120 gdm              seat0            tty1            

How do I change it? I guess that is something I need to configure in gdm, since that starts the X11 session for me? I can't see any way to choose on the login screen.

Last edited by Gasp0de (2018-04-03 11:14:03)

Offline

#4 2018-04-03 11:16:30

flortsch
Member
From: Austria
Registered: 2015-07-21
Posts: 40
Website

Re: [SOLVED] Why am I running both X and Wayland?

Next to the login button in gdm should be a preferences icon where you can set your user session type.

Last edited by flortsch (2018-04-03 11:16:53)

Offline

#5 2018-04-03 11:18:08

Gasp0de
Member
Registered: 2012-12-24
Posts: 47

Re: [SOLVED] Why am I running both X and Wayland?

Found it, thank you! I must have chosen X at some point when I was having trouble with teamviewer and then forgot to change it back...

Offline

Board footer

Powered by FluxBB