You are not logged in.

#1 2016-05-25 05:14:05

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

[SOLVED] How to Start getty@tty1 with SDDM at tty7

I have installed kde plasma with SDDM login manager.  By default, 'MinimumVT' was set to 1 in '/etc/sddm.conf' and sddm started fine in tty1.  When I set 'MinimumVT=7', I found sddm starting fine in tty7 but no virtual terminal in tty1.  I enabled getty@tty1.service to start after boot

sudo systemctl enable getty@tty1.service

But still after sddm login screen if I press 'ctrl+alt+f1' I get blank screen.  Can anyone please show me how to get login prompt in tty1 with sddm in tty7

Thanks in advance

Last edited by nlern (2016-05-27 04:31:50)

Offline

#2 2016-05-25 07:10:42

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] How to Start getty@tty1 with SDDM at tty7

You need to remove

Conflicts=getty@tty1.service

by editing sddm.service.

Offline

#3 2016-05-25 13:27:05

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

Re: [SOLVED] How to Start getty@tty1 with SDDM at tty7

Hello Raynman,  I tried to edit sddm.service by following instructions described in your link.  But I got following error:

$ sudo systemctl edit sddm.service
Received SIGHUP or SIGTERM
editor failed with error code 1.
Editing "/etc/systemd/system/sddm.service.d/override.conf" canceled: temporary file is empty.

Edit 1: Warning:Not recommended I commented the 'Conflicts' line by editing the original sddm.service file and putting a # before 'Conflicts'.  I found the location of the file using

$ systemctl cat sddm.service
# location of sddm.service
...

After that I enabled 'getty@tty1.service' by following command

$ sudo systemctl enable getty@tty1.service

Then I rebooted my computer and got sddm login in tty7 and virtual terminal in tty1.

But according to Arch wiki article on editing service files posted by Raynman, this is not the recommended way.  I had also tried the following :

$ sudo systemctl edit --full sddm.service

1. Comment out Conflicts line by putting # at start
2. Save the file
3. Restart sddm.service and then start getty@tty1.service

This also works temporally and changes are lost after reboot.  Can anyone point out how to make this change permanent after reboot?

Edit 2: Ok after step 2, if one issues

# systemctl reenable sddm.service

then the new unit becomes activated.  But this does not remains after sddm upgrade.  Also if I login as root and issue

# systemctl edit sddm

then I can create a new conf file to override the original.  But now what should be entry of the file?  Following does not work

[Unit]
Conflicts=
Conflicts=

Last edited by nlern (2016-05-25 14:39:55)

Offline

#4 2016-05-27 04:31:10

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

Re: [SOLVED] How to Start getty@tty1 with SDDM at tty7

Marking topic solved.  However if anyone can point out how to delete Conflicts line by using override.conf file I would be grateful

Offline

#5 2016-05-27 05:21:54

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] How to Start getty@tty1 with SDDM at tty7

This works fine in /etc/systemd/system/sddm.service as long as you re-enable the service.

[Unit]
Description=Simple Desktop Display Manager
Documentation=man:sddm(1) man:sddm.conf(5)
#Conflicts=getty@tty1.service
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service

[Service]
ExecStart=/usr/bin/sddm
Restart=always
#PrivateTmp=yes

[Install]
Alias=display-manager.service

All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#6 2016-05-27 05:24:46

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

Re: [SOLVED] How to Start getty@tty1 with SDDM at tty7

Thanks loafer.

Offline

#7 2016-05-27 07:50:47

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] How to Start getty@tty1 with SDDM at tty7

nlern wrote:

Marking topic solved.  However if anyone can point out how to delete Conflicts line by using override.conf file I would be grateful

The wiki gives a number of examples, including one where a particular setting (ExecStart in that example) is being cleared. Does that somehow not work for Conflicts? I see now that you mentioned this in an edit, but then the above quote, although related, was posted as a separate reply, so I missed it when jumping to "new posts". Maybe I'll see if I can figure it out later.

Last edited by Raynman (2016-05-27 07:55:11)

Offline

#8 2016-05-27 08:04:46

nlern
Member
From: West Bengal, India
Registered: 2015-06-29
Posts: 51

Re: [SOLVED] How to Start getty@tty1 with SDDM at tty7

Thanks Raynman.  This is what I wanted- to comment out or delete Conflicts line using override.conf file, but since replacing the original sddm.service file with one in /etc also works, so I marked this thread solved

Offline

Board footer

Powered by FluxBB