You are not logged in.

#1 2019-09-23 19:02:02

Tom B
Member
Registered: 2014-01-15
Posts: 187
Website

[SOLVED] SDDM won't start correctly unless I switch TTY and restart

I'm having a problem on a 2015 macbook where sddm won't start correctly.

The service starts OK and shows as running but it hangs on the


I do not believe it's an entropy issue which is what comes up for this problem normally.

1. Without rngd I do get the entropy issue and pressing keys makes SDDM start correctly

2. With rngd it still hangs on /dev/sda7 clean..... but pressing keys does nothing.

If I switch TTY and restart the sddm service it works fine. It seems to be a timeout issue, it's as if sddm is starting too early and restarting it later works. Which is also why without rngd it runs after pressing keys as it takes longer for the service to start.

Here's the output of systemctl status sddm:

● sddm.service - Simple Desktop Display Manager
   Loaded: loaded (/usr/lib/systemd/system/sddm.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-09-23 19:57:01 BST; 1min 49s ago
     Docs: man:sddm(1)
           man:sddm.conf(5)
 Main PID: 564 (sddm)
    Tasks: 2
   Memory: 12.8M
   CGroup: /system.slice/sddm.service
           └─564 /usr/bin/sddm

Sep 23 19:57:01 laptop systemd[1]: Started Simple Desktop Display Manager.
Sep 23 19:57:01 laptop sddm[564]: Initializing...
Sep 23 19:57:01 laptop sddm[564]: Starting...
Sep 23 19:57:01 laptop sddm[564]: Logind interface found

and here's the output of journalctl -b 0 | grep sddm

Sep 23 19:57:01 laptop audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=sddm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 23 19:57:01 laptop sddm[564]: Initializing...
Sep 23 19:57:01 laptop sddm[564]: Starting...
Sep 23 19:57:01 laptop sddm[564]: Logind interface found

I've left it for 10 minutes and pressed hundreds of keys, nothing happens. The only way to get SDDM to start is to switch TTY and restart the service, at which point it works perfectly.

Last edited by Tom B (2019-09-25 16:03:51)

Offline

#2 2019-09-23 19:38:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: [SOLVED] SDDM won't start correctly unless I switch TTY and restart

Post a xorg log, potentially the issue with reaching graphical before the session/hardware has given you permission to access the video card. Enabling early KMS might help in this situation.

Offline

#3 2019-09-23 19:49:45

ua4000
Member
Registered: 2015-10-14
Posts: 418

Re: [SOLVED] SDDM won't start correctly unless I switch TTY and restart

Tom B wrote:

I do not believe it's an entropy issue

Don't believe, check the facts :-)
Does your hardware supports rngd or not ? Check the rngd logs. If your hardware doesn't support rngd try haveged.

Offline

#4 2019-09-23 20:14:39

Tom B
Member
Registered: 2014-01-15
Posts: 187
Website

Re: [SOLVED] SDDM won't start correctly unless I switch TTY and restart

I've found the cause of the issue, SDDM was being loaded before the gpu driver. As V1del suggested, adding radeon to MODULES in mkinitcpio.conf fixed it, it forces the GPU driver to load before X and everything works as intended.

Last edited by Tom B (2019-09-23 20:15:12)

Offline

#5 2019-09-23 21:06:25

matmoul
Member
Registered: 2015-08-31
Posts: 21

Re: [SOLVED] SDDM won't start correctly unless I switch TTY and restart

Tom B wrote:

I've found the cause of the issue, SDDM was being loaded before the gpu driver. As V1del suggested, adding radeon to MODULES in mkinitcpio.conf fixed it, it forces the GPU driver to load before X and everything works as intended.

For me, I've downgraded systemd and it works again.
Your solution is a good workaround too.

Do you use xf86-video-amdgpu or an ather package driver?

Now it would be nice to report the issue to the relevant project but which :
systemd, sddm, xf86-video-amdgpu, arch package maintainers or another?

Offline

#6 2019-09-24 02:58:44

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

Re: [SOLVED] SDDM won't start correctly unless I switch TTY and restart

update systemd, fixed.

Offline

#7 2019-09-24 07:55:21

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

Re: [SOLVED] SDDM won't start correctly unless I switch TTY and restart

Tom B wrote:

I've found the cause of the issue, SDDM was being loaded before the gpu driver. As V1del suggested, adding radeon to MODULES in mkinitcpio.conf fixed it, it forces the GPU driver to load before X and everything works as intended.

Please remember to mark your thread as solved by editing the first post and amending the topic title.


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

#8 2019-09-25 16:10:02

Tom B
Member
Registered: 2014-01-15
Posts: 187
Website

Re: [SOLVED] SDDM won't start correctly unless I switch TTY and restart

matmoul wrote:
Tom B wrote:

I've found the cause of the issue, SDDM was being loaded before the gpu driver. As V1del suggested, adding radeon to MODULES in mkinitcpio.conf fixed it, it forces the GPU driver to load before X and everything works as intended.

For me, I've downgraded systemd and it works again.
Your solution is a good workaround too.

Do you use xf86-video-amdgpu or an ather package driver?

Now it would be nice to report the issue to the relevant project but which :
systemd, sddm, xf86-video-amdgpu, arch package maintainers or another?

I was using the older radeon driver rather than amdgpu as last time I tried amdgpu (Admittedly, over a year ago) it didn't work for the GPU in the Macbook. I just tested it and it now works, but also requires adding to mkinitcpio, as it happens with both radeon and amdgpu, It's likely not a video driver issue.

Offline

Board footer

Powered by FluxBB