You are not logged in.

#1 2016-06-07 11:49:41

chicao
Member
Registered: 2013-03-08
Posts: 11

[SOLVED] SDDM enabled but won't start at boot

Hi

I have a problem regarding my Arch installation at a Dell Inspiron 13 7000 Series.
Since this laptop wireless hardware have a firmware issue (Atheros QCA6174), I installed
everything offline, using the Archiso page of the wiki and instructions to download and
install packages from a device.

Everything is working just fine, except that my SDDM won't start at boot, even if it's
enabled:

 # systemctl enable sddm.service 

If I manually starts sddm using

 # systemctl start sddm.service 

a Plasma 5 session loads without issues.

I generated the example configuration file and modified accordingly:

[Autologin]
# Autologin again on session exit
Relogin=false

# Autologin session
Session=plasma.desktop

# Autologin user
User=chicao


[General]
# Halt command
HaltCommand=/usr/bin/systemctl poweroff

# Initial NumLock state
# Valid values: on|off|none
# If property is set to none, numlock won't be changed
Numlock=none

# Reboot command
RebootCommand=/usr/bin/systemctl reboot


[Theme]
# Current theme name
Current=breeze

# Cursor theme
CursorTheme=breeze

...

The service symlink is properly set:

# ls -la /etc/systemd/system/display-manager.service 
[...]  /etc/systemd/system/display-manager.service -> /usr/lib/systemd/system/sddm.service

and its syntax and configuration is also properly set:

[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

However, running

 # systemctl status sddm.service 

yields the following output

sddm.service - Simple Desktop Display Manager
  Loaded: loaded (/usr/lib/systemd/system/sddm.service; enabled; vendor preset: disabled)
  Active: inactive (dead)
   Docs: man: sddm(1)
         man: sddm.conf(5)

And running

 systemctl --all 

doesn't show sddm at all, which is weird since it shows the loaded services, both active and inactive.
The sddm.service unit only shows in the listing of unit files:

 systemctl list-unit-files | grep sddm
sddm.service                                         enabled

making more stranger the situation.


Anyway, does anybody knows what's the deal of sddm not loading at boot?

Last edited by chicao (2016-06-07 18:35:56)

Offline

#2 2016-06-07 11:57:43

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] SDDM enabled but won't start at boot

At a guess, I would say it looks like you're booting into multi-user.target instead of graphical.target

What do the following say?:

$ systemctl status default.target
$ cat /proc/cmdline

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-06-07 12:15:42

chicao
Member
Registered: 2013-03-08
Posts: 11

Re: [SOLVED] SDDM enabled but won't start at boot

These where the outputs


# systemctl status default.target
● multi-user.target - Multi-User System
   Loaded: loaded (/usr/lib/systemd/system/multi-user.target; enabled; vendor preset: disabled)
   Active: active since Tue 2016-06-07 09:11:17 BRT; 1min 58s ago
     Docs: man:systemd.special(7)

Jun 07 09:11:17 anahata systemd[1]: Reached target Multi-User System.
# cat /proc/cmdline
initrd=\EFI\arch\initramfs-linux.img root=PARTUUID=214cda00-b8d8-01d1-006d-a0106cdce800 rw

Offline

#4 2016-06-07 13:05:05

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] SDDM enabled but won't start at boot

So my theory was correct, you've told systemd that you want to boot into multi-user.target instead of graphical.target. Use 'systemctl set-default' to change it back to graphical.target.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-06-07 18:34:51

chicao
Member
Registered: 2013-03-08
Posts: 11

Re: [SOLVED] SDDM enabled but won't start at boot

Setting the default target as graphical solved the issue:

 # systemctl set-default graphical.target 

Thank you very much.

I'll mark the post as solved.

Offline

Board footer

Powered by FluxBB