Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#50521 - [lightdm] Can't start wayland session other than weston

Attached to Project: Arch Linux
Opened by Alif (alive4ever) - Friday, 26 August 2016, 07:24 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 27 August 2016, 14:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 4
Private No

Details

Description:
Wayland session other than weston can't be started [1].

Additional info:
* package version(s): lightdm 1:1.18.3-1
* config and/or log files etc.: attached


Steps to reproduce:
Install lightdm and lightdm greeter (xorg-server, xf86-video-*, and xorg-server-xwayland is needed)
Install weston and sway
Enable lightdm.service
From lightdm greeter, choose sway session.
You'll be thrown back to lightdm greeter.

Additional note:
It seems that lightdm tried to launch Xsession wrapper for wayland session.

[1] https://bbs.archlinux.org/viewtopic.php?id=210653

This task depends upon

Comment by Cedric Girard (Xdark) - Thursday, 26 July 2018, 14:39 GMT
This is because the Arch Linux package ship with a Xsession which is set as the session-wrapper. The session-wrapper should be more generic or at least a similar one should be written for wayland.
Comment by Maxime Gauduin (Alucryd) - Friday, 17 May 2019, 14:44 GMT
Disabling the session wrapper still doesn't allow me to launch a wayland session here.
Comment by somini (_somini_) - Saturday, 14 March 2020, 17:47 GMT
I was able to launch sway using lightdm (using the shipped "/etc/lightdm/Xsession"), but since systemd was updated to v245 sway doesn't start anymore.

This might be the reason, since it broke gdm: https://github.com/systemd/systemd/pull/13277

```
# systemctl status lightdm
● lightdm.service - Light Display Manager
Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-03-14 17:33:06 WET; 12min ago
Docs: man:lightdm(1)
Main PID: 4698 (lightdm)
Tasks: 10 (limit: 9298)
Memory: 25.5M
CGroup: /system.slice/lightdm.service
├─4698 /usr/bin/lightdm
├─4750 /usr/lib/Xorg :2 -seat seat0 -auth /run/lightdm/root/:2 -nolisten tcp vt9 -novtswitch
└─4775 lightdm --session-child 13 20

Mar 14 17:33:06 $HOST systemd[1]: Starting Light Display Manager...
Mar 14 17:33:06 $HOST systemd[1]: Started Light Display Manager.
Mar 14 17:33:07 $HOST lightdm[4723]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Mar 14 17:33:11 $HOST lightdm[4737]: pam_unix(lightdm:session): session opened for user somini by (uid=0)
Mar 14 17:33:11 $HOST lightdm[4737]: pam_unix(lightdm:session): session closed for user somini
Mar 14 17:33:11 $HOST lightdm[4698]: Error activating login1 session: GDBus.Error:org.freedesktop.login1.NoSuchSession: No session '6' known
Mar 14 17:33:12 $HOST lightdm[4761]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
```

The session is opened and closed right away.

Disabling the session wrapper doesn't affect it.
Comment by somini (_somini_) - Monday, 30 March 2020, 21:23 GMT
This seems to be fixed, now that `systemd v245.3-2` is available. This revert is now included: https://github.com/systemd/systemd/pull/13277

```
systemctl status lightdm
● lightdm.service - Light Display Manager
Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2020-03-30 22:10:52 WEST; 7min ago
Docs: man:lightdm(1)
Main PID: 732 (lightdm)
Tasks: 3 (limit: 9298)
Memory: 29.5M
CGroup: /system.slice/lightdm.service
└─732 /usr/bin/lightdm

Mar 30 22:10:50 $HOST systemd[1]: Starting Light Display Manager...
Mar 30 22:10:52 $HOST systemd[1]: Started Light Display Manager.
Mar 30 22:10:53 $HOST lightdm[790]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Mar 30 22:17:48 $HOST lightdm[825]: pam_unix(lightdm:session): session opened for user somini by (uid=0)
```
Comment by Andreas Radke (AndyRTR) - Friday, 03 July 2020, 10:43 GMT
To follow upstream here the link: the https://bugs.launchpad.net/lightdm/+bug/1664097
Comment by Andreas Radke (AndyRTR) - Friday, 03 July 2020, 12:39 GMT

Loading...