You are not logged in.

#1 2019-07-01 10:04:04

zaxdan69
Member
Registered: 2016-06-04
Posts: 318

[solved]Lightdm failure after switch session to sway

I'm using i3 as window manager the last weeks and I tried yesterday sway. I first test it and configure it from another tty while running i3 from lightdm on tty7. Today I tried to login to sway from lightdm. This didn't work(selected "sway" and tried to login didn't to anything. So while I was in lightdm screen and without to change session, I started sway on tty2 again. I was trying to configure bemenu, to use instead of rofi in which I had some issues. I was still had rofi binded to a key and I use it to start nemo. Rofi stucked and I couldn't write anything to it so I tried to run a terminal and then sway freezes. I hadn't no choise except to reboot using sysrq+REISUB.
After that I couldn't login to graphical environment. Lightdm doesn't start and I have a black screen with a flashing caret on upper left corner. I tried to restart lightdm service but nothing changes.
I can start i3 via "startx /usr/bin/i3, without problems. I cannot started from xinit(but I didn't use it before with i3, so maybe need some configuration), but I can start xfce4.
The point is that I can login to graphical environment, so I'm thinking that the problem is with lightdm and the switching to sway session.
Is there any way to change the session from command line or by editing a config file?
I tried to change session in .dmrc though, but this didn't make a difference. I don't know needed something else or there is another problem which caused this. I didn't update the system or install anything except bemenu and j4-dmenu-desktop.

Last edited by zaxdan69 (2019-07-01 10:36:05)

Offline

#2 2019-07-01 10:35:46

zaxdan69
Member
Registered: 2016-06-04
Posts: 318

Re: [solved]Lightdm failure after switch session to sway

I found how to fix this. I had enabled autologin, so I tried just to disable it from lightdm.conf file and then it started automatically. Still has the "sway" as selected session, so apparently this, compined with autologin caused the problem. Editing .dmrc hadn't any affect but maybe changing user-session in [seats*] section was the correct approach. But I didn't have the chance to test if since disabling autologin fixed the issue.

Offline

#3 2019-10-30 05:26:21

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 270

Re: [solved]Lightdm failure after switch session to sway

what is change user-session= to wayland?
use drm-backend, but can not start lightdm.

ps. GDM & SDDM all good, but too heavy.

Offline

Board footer

Powered by FluxBB