You are not logged in.

#1 2012-08-19 04:06:02

neighborhoodhacker
Member
Registered: 2012-08-06
Posts: 45

[SOLVED] Systemd boots to tty1 after updating systmd

Okay, so I had systemd installed already on to my computer before arch made the switch to systemd. Then I ran updates one day, rebooted to check how everything turned out and arch put me out to tty1.  Now the  thing that had me puzzled is when I switched manually to tty7 lightdm and my DE loaded fine.

Reproducable: Every system boot.

Things I've tried: relinking all the right systemd files to start graphical.target and lightdm.service, reinstalling all programs related

Any help appreciated

EDIT: IGNORE THE TITLE THERE WAS NO OFFICIAL SWITCH

ALSO IF YOU ARE GOING TO POST PLEASE READ THE RELEVANT INFO DON'T JUST READ HALF AND BE DETRIMENTAL TO THE POST BY TAKING AWAY VALUABLE SPACE MAKING IT HARDER TO FIND THE TRUE INFO.

Last edited by neighborhoodhacker (2012-08-20 05:29:16)

Offline

#2 2012-08-19 04:30:29

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: [SOLVED] Systemd boots to tty1 after updating systmd

How did you start your DM before?  GDM, KDM, Slim??  Did you use /etc/inittab, or had you used your DAEMONS array?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2012-08-19 04:38:13

neighborhoodhacker
Member
Registered: 2012-08-06
Posts: 45

Re: [SOLVED] Systemd boots to tty1 after updating systmd

The way I started DM before was lightdm through systemd it was set up correctly and nothing changes besides the update

sudo systemctl enable graphical.target
sudo systemctl enable lightdm.service

worked through systemd before update

Last edited by neighborhoodhacker (2012-08-19 04:41:36)

Offline

#4 2012-08-19 04:50:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: [SOLVED] Systemd boots to tty1 after updating systmd

Sorry, I misunderstood.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2012-08-19 04:51:42

neighborhoodhacker
Member
Registered: 2012-08-06
Posts: 45

Re: [SOLVED] Systemd boots to tty1 after updating systmd

Any ideas sir ewaller?

Offline

#6 2012-08-19 09:29:42

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [SOLVED] Systemd boots to tty1 after updating systmd

Is the lightdm service file the one that has been suggested in the AUR comments (https://aur.archlinux.org/packages.php?ID=40708)? Because this one isn't quite right:

WantedBy=graphical.target
Alias=display-manager.service

as far as I can see, this will cause lightdm to be started twice, which may be what is causing the problem.

Remove the WantedBy=graphical.target (you may also want to suggest this in the AUR comments). Then do a "systemctl reenable lightdm.service".

Offline

#7 2012-08-19 11:07:59

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Systemd boots to tty1 after updating systmd

What official switch? There's no such thing on the front page.

The systemd-tools package is not systemd: http://www.archlinux.org/news/systemd-t … aces-udev/


Please choose your titles more carefully.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#8 2012-08-19 16:13:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: [SOLVED] Systemd boots to tty1 after updating systmd

neighborhoodhacker wrote:

Any ideas sir ewaller?

Nothing solid.  It had been working before, now it is not.

If it were my machine, I would use systemctl to check the status of services -- which one's did it try to start, which ones terminated normally, what died, what is still running.
I would check the links in /etc/systemd/system to ensure they are there for every service you explicitly enabled, and that they point to something valid.
I would look at your pacman logs and see what packages were updated, then I would go through the list of files in all the relevant packages and see if any of them are related to your problem.  If you find a relevant .service file was in the package, find out if and how it changed.

Look through the output of sudo journalctl for any clues.
Try hand starting the service that starts your DM.  I don't know which file it is - sorry sad


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2012-08-19 20:04:57

neighborhoodhacker
Member
Registered: 2012-08-06
Posts: 45

Re: [SOLVED] Systemd boots to tty1 after updating systmd

DSpider wrote:

What official switch? There's no such thing on the front page.

The systemd-tools package is not systemd: http://www.archlinux.org/news/systemd-t … aces-udev/


Please choose your titles more carefully.

Please read the post more carefully. I said looking back there probably wasn't one I was basing it off all the buzz and a weird update screwing with my system

Offline

#10 2012-08-19 20:06:17

neighborhoodhacker
Member
Registered: 2012-08-06
Posts: 45

Re: [SOLVED] Systemd boots to tty1 after updating systmd

65kid wrote:

Is the lightdm service file the one that has been suggested in the AUR comments (https://aur.archlinux.org/packages.php?ID=40708)? Because this one isn't quite right:

WantedBy=graphical.target
Alias=display-manager.service

as far as I can see, this will cause lightdm to be started twice, which may be what is causing the problem.

Remove the WantedBy=graphical.target (you may also want to suggest this in the AUR comments). Then do a "systemctl reenable lightdm.service".


If you read what I wrote I said it worked beforehand and then not after. I tried both services, but beforehand I had also got the service mentioned by you working by tweaking it to match certain things in the default lightdm service and still getting the seemless transition. THE ONLY THING CHANGED WAS THE UPDATE

Last edited by neighborhoodhacker (2012-08-19 20:16:07)

Offline

#11 2012-08-19 20:08:02

neighborhoodhacker
Member
Registered: 2012-08-06
Posts: 45

Re: [SOLVED] Systemd boots to tty1 after updating systmd

ewaller wrote:
neighborhoodhacker wrote:

Any ideas sir ewaller?

Nothing solid.  It had been working before, now it is not.

If it were my machine, I would use systemctl to check the status of services -- which one's did it try to start, which ones terminated normally, what died, what is still running.
I would check the links in /etc/systemd/system to ensure they are there for every service you explicitly enabled, and that they point to something valid.
I would look at your pacman logs and see what packages were updated, then I would go through the list of files in all the relevant packages and see if any of them are related to your problem.  If you find a relevant .service file was in the package, find out if and how it changed.

Look through the output of sudo journalctl for any clues.
Try hand starting the service that starts your DM.  I don't know which file it is - sorry sad

I have relinked everything already. Reinstalled all related packages. Tried a normal and modified service file. I don't really know what else to do.  I will check the journalctl to see if I can find anything relevant.

EDIT: found nothing relevant in journalctl. It doesn't seem to throw any error or do anything funny besides just not start to the right tty

Also, what could I gain from manually starting the service. I will try but idk how it will help. Many many thanks for your valuable time.

EDIT AGAIN: I manually stopped/started lightdm-plymouth.service and it brought me back to tty7... idk. Is this where I go write a systemd bug report?

Last edited by neighborhoodhacker (2012-08-19 20:20:49)

Offline

#12 2012-08-20 05:00:48

arunvragh
Member
Registered: 2007-04-17
Posts: 111

Re: [SOLVED] Systemd boots to tty1 after updating systmd

Have you enabled multi-user.target? If so it will default to init 3..

If yes disable multi-user.target. This happened to me when switching to systemd. I have xfce and slim.

Offline

#13 2012-08-20 05:04:24

neighborhoodhacker
Member
Registered: 2012-08-06
Posts: 45

Re: [SOLVED] Systemd boots to tty1 after updating systmd

Great idea but:

sudo systemctl is-enabled multi-user.target
disabled

Offline

#14 2012-08-20 05:26:15

neighborhoodhacker
Member
Registered: 2012-08-06
Posts: 45

Re: [SOLVED] Systemd boots to tty1 after updating systmd

Okay well I got rid of initscripts and switched to pure systemd boot up. No longer do I stay on tty1, but a new problem has arrised seeing as how plymouth quit working correctly. Oh well. Now at least I have a smooth boot and am going to be figuring out how to switch the title to solved... hmm..

Offline

Board footer

Powered by FluxBB