NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.77k stars 13.18k forks source link

Sway refuses to start with LightDM #146912

Open cid-chan opened 2 years ago

cid-chan commented 2 years ago

Describe the bug

I am using LightDM as a Display Manager. When I try to log in, I get a black screen before being dropped back into LightDM.

I can see this in the log after I selected a previous generation:

Nov 21 19:04:28 cid-chan xsession[3074]: 00:00:00.283 [ERROR] [sway/config/output.c:417] Failed to commit output eDP-1

Known Working Commit:

e544ee88fa4590df75e221e645a03fe157a99e5b

First known Broken Commit: (Earlier commits might be broken, too)

c935f5e0add2cf0ae650d072c8357533e21b0c35

Steps To Reproduce

Expected behavior

I log in and sway starts.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

@primeos @colemickens

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.3, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5pre20211007_844dd90`
 - nixpkgs: `/run/current-system/sw/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
- sway
# a list of nixos modules affected by the problem
module:
FlorianFranzen commented 2 years ago

I am also unable to use ligthdm with sway anymore after updating to unstable. Just shows a blank screen, starting from getty works just fine.

primeos commented 2 years ago

Sounds like a LightDM regression (I guess?). Maybe it affects all Wayland sessions? Unfortunately I cannot really help with this as I don't use any display manager.

cc (FYI) LightDM maintainers: @davidak @bobby285271

SuperSamus commented 2 years ago

You should change the title of the issue, because there is no issue launching Sway from a TTY. (Which is how Sway is meant to be launched https://github.com/swaywm/sway/pull/3634#issuecomment-462779163)

davidak commented 2 years ago

I can't help with Sway or Wayland. Since sway seem to output the error, have you looked for solutions upstream or reported an issue there?

primeos commented 2 years ago

https://github.com/swaywm/sway/issues/6655 could be related. Anyway, please don't open a Sway issue as display managers are not supported and upstream doesn't want such issues (AFAIK).

https://github.com/swaywm/sway/issues/6655#issuecomment-971327604:

Start sway from lightdm

Sorry, but display managers are not supported, exactly because they cause these kind of issues. Closing.

cid-chan commented 2 years ago

Still, sway ships with a .desktop file. why provide them when it doesn't work anyway?

dongdigua commented 1 year ago

+1

MabaKalox commented 1 year ago

@cid-chan please, dont state it like that, or they will drop it, instead of fixing 8) eg. 5913. BTW: I use desktop file with gdm with no issues.