You are not logged in.

#1 2018-06-13 07:01:37

Vityou
Member
Registered: 2016-07-15
Posts: 11

LightDM doesn't start tty1 after it has finished

The lightdm.service file is:

[Unit]
Description=Light Display Manager
Documentation=man:lightdm(1)
Conflicts=getty@tty1.service
After=getty@tty1.service systemd-user-sessions.service plymouth-quit.service acpid.service

[Service]
ExecStart=/usr/bin/lightdm
Restart=always
IgnoreSIGPIPE=no
BusName=org.freedesktop.DisplayManager

[Install]
Alias=display-manager.service

So I'm not sure why it doesn't restart.  Maybe the "Conflicts" part is interfering?  Also, the lightdm.service is still running after I am logged into my desktop environment, should this be the case?

Last edited by Vityou (2018-06-13 07:23:37)

Offline

#2 2018-06-13 09:05:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 4,981

Re: LightDM doesn't start tty1 after it has finished

Clarify your issue, does something not work, do you expect to be able to user your TTY1 console while having a graphical environment running on it? That won't work.  Yes that the lightdm.service runs afterwards is normal, it is the parent of your Xorg session and your TTY1 should be occupied by your xorg session.

Offline

#3 2018-06-13 15:50:25

Vityou
Member
Registered: 2016-07-15
Posts: 11

Re: LightDM doesn't start tty1 after it has finished

I expect to be able to use tty1 because the desktop environment opens on tty7.

Offline

#4 2018-06-13 16:02:36

loqs
Member
Registered: 2014-03-06
Posts: 5,473

Re: LightDM doesn't start tty1 after it has finished

Conflicts=getty@tty1.service

lightdm with the shipped config starts on tty7 but it service file conflicts with getty on tty1 so getty will not start while the lightdm service is running.

Offline

#5 2018-06-13 16:30:29

Vityou
Member
Registered: 2016-07-15
Posts: 11

Re: LightDM doesn't start tty1 after it has finished

So if I change it to conflict with tty7 will I be able to access tty1?  Also, tty1 does not start after I stop the lightdm service.

Offline

#6 2018-06-13 16:43:27

loqs
Member
Registered: 2014-03-06
Posts: 5,473

Re: LightDM doesn't start tty1 after it has finished

You could remove the conflicts with tty1 and systemd unless you have changed NAutoVTs= in logind.conf which defaults to 6.
The getty does not start on tty1 because the transaction to start graphical.target is modified by the conflicts line.
When lightdm ends there is not new transaction systemd is still at graphical.target with getty@tty1.service inactive.
Edit:
Covers why lightdm is on tty7 https://bugs.archlinux.org/task/46799
Covers why there is a conflict with tty1 https://bugs.archlinux.org/task/49527

Last edited by loqs (2018-06-13 16:48:54)

Offline

#7 2018-06-13 17:12:22

Vityou
Member
Registered: 2016-07-15
Posts: 11

Re: LightDM doesn't start tty1 after it has finished

Is there any way to have lightdm run before tty1, because for about 2 seconds, tty1 is still on the screen, I've tried putting

Before=display-manager.servive

in getty@tty1.service.  This isn't a huge problem, just wondering.

Offline

Board footer

Powered by FluxBB