[SRU] Fix black screen on second boot due to video drivers not being ready.

Bug #2066275 reported by Scarlett Gately Moore
50
This bug affects 6 people
Affects Status Importance Assigned to Milestone
sddm (Ubuntu)
Fix Released
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

 * Users experience black screen on second boot after fresh install due to video drivers not being ready.

 * The patch adds a needs for systemd to wait until drivers are complete before sddm login manager.

[ Test Plan ]

 * New install. Reboot 2 times, you will run into a black screen ( seems random, all video drivers affected though )

 * With the random nature of the bug it cannot be cleanly reproduced. Of 3 computers only one of mine experienced the problem.

[ Where problems could occur ]

 * systemd services boot order? possibly affect something else?

 * Tested in oracular and no issues have arised.

[ Other Info ]

 * Closes {LP #2065321)

summary: - SRu: Fix black screen on second boot due to video drivers not being
+ [SRU] Fix black screen on second boot due to video drivers not being
ready.
Changed in sddm (Ubuntu Noble):
milestone: none → noble-updates
milestone: noble-updates → ubuntu-24.04.1
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sddm (Ubuntu Noble):
status: New → Confirmed
Changed in sddm (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

I looked at the source code for sddm in Oracular and discovered that this change is included in it so I'm marking the Oracular task as Fix Released.

Changed in sddm (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

I don't understand why a second bug was created for this SRU when using bug 2063143 (of which bug 2065321 is a duplicate) would likely have more people willing to do the verification.

Changed in sddm (Ubuntu Noble):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Scarlett, or anyone else affected,

Accepted sddm into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/sddm/0.20.0-2ubuntu4.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

Hi,
This fixes the bug for me. Thanks, Scarlett

Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

As for the duplicate bug, I didn't know about the first bug when I ran into the issue. I was later pointed to the first bug and then I linked them. Sorry for any confusion.

Changed in sddm (Ubuntu Noble):
status: Fix Committed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Mario Limonciello (superm1) wrote :

I do think it makes sense to pull in the change you're doing for now, but I do want to mention this is tech debt to pick up that approach to avoid this issue as that isn't merged and there isn't really line of sight to a proper fix:

https://github.com/sddm/sddm/pull/1924

Revision history for this message
Mario Limonciello (superm1) wrote :

I also think it should target Jammy because eventually the 6.8 kernels will backport there and introduce this bug to even more people.

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :

I enabled proposed and installed the updated package with

$sudo apt install sdddm=0.20.0-2ubuntu4.1

But my /usr/lib/systemd/system/sddm.service still looks like this:

------------------------
[Unit]
Description=Simple Desktop Display Manager
Documentation=man:sddm(1) man:sddm.conf(5)
# Change this if you want to start sddm in a different tty
<email address hidden>
<email address hidden>

# If using tty1 and plymouth, sddm will fail till plymouth stops
# consider using:
## After=plymouth-quit.service
# or to forcefully stop plymouth and start earlier:
## Conflicts=plymouth-quit-wait.service
## After=plymouth-start.service plymouth-quit-wait.service
## OnFailure=plymouth-quit.service

# Ordering
Conflicts=plymouth-quit-wait.service
After=systemd-user-sessions.service plymouth-start.service plymouth-quit-wait.service plymouth-quit.service systemd-logind.service
OnFailure=plymouth-quit.service

[Service]
# temporary safety check until all DMs are converted to correct
# display-manager.service symlink handling
ExecStartPre=/bin/sh -c '[ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/sddm" ]'
ExecStart=/usr/bin/sddm
Restart=always
RestartSec=1s
EnvironmentFile=-/etc/default/locale

[Install]
Alias=display-manager.service
------------------------

It seems it is lacking the changes from the patch.

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :

And indeed I get failing boots even with sdddm=0.20.0-2ubuntu4.1.

Changed in sddm (Ubuntu Noble):
status: Fix Committed → In Progress
Revision history for this message
cascagrossa (cascagrossa-cascao) wrote (last edit ):

Installed sddm proposed 0.20.0-2ubuntu4.1 and nothing changed, still freeze with black screen on boot.

As workaround inserting "plymouth.use-simpledrm" to kernel parameters in grub configuration does show plymouth theme and switches to sddm normally.

Dell Inspiron 15 3530, NVIDIA MX550/INTEL Raptor Lake-P [Iris Xe Graphics].

Revision history for this message
dastillero (dastillero) wrote :

Installed sddm proposed sddm proposed 0.20.0-2ubuntu4.1 and the issue persists, but adding the changes shown in https://github.com/sddm/sddm/pull/1924/files to sddm.service file the issue is fixed.

Revision history for this message
cascagrossa (cascagrossa-cascao) wrote :

Confirm that the sddm proposed 0.20.0-2ubuntu4.1 doesn't have the suggested patch, but adding manually that lines to "/usr/lib/systemd/system/sddm.service" fixed the issue.

tags: added: noble simpledrm
tags: added: verification-failed verification-failed-noble
removed: verification-needed verification-needed-noble
Revision history for this message
KDE (kde-community) wrote :

0.20.0-2ubuntu4.1 is not the correct version. 0.20.0-2ubuntu5 is the version I had. Looking into what may have happened.

Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

It is the correct version, Rik fixed it for me. The patch is in there. Still investigating.

Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

Alright, found the issue. So it seems we ship a custom sddm.service in debian/ and we do not use the provided sddm.service from upstream, and thus my patch has no significance. I have now patched the custom sddm.service file that is shipped. Unfortunately I do not have upload rights here and have asked Rik to please upload the new version. Sorry for any inconvenience.
Scarlett

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Scarlett, or anyone else affected,

Accepted sddm into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/sddm/0.20.0-2ubuntu4.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in sddm (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
removed: verification-failed verification-failed-noble
Revision history for this message
cascagrossa (cascagrossa-cascao) wrote :

I can confirm that the package proposed 0.20.0-2ubuntu4.2 has the patch and fixed the issue for me.
Kubuntu 24.04 Dell Inspiron 15 3530, NVIDIA MX550/INTEL Raptor Lake-P [Iris Xe Graphics].

tags: added: verification-done-noble
removed: verification-needed-noble
Revision history for this message
captaintrav (captaintrav) wrote :

AMD Ryzen 7 3700X, ASUS PRIME B450M-A II, AMD Radeon RX 6650 XT system and also affected. Just thought I'd comment as I initially thought it was something to do with amdgpu, because system was happily running 22.04

Revision history for this message
walther (walther-tw) wrote :

Can confirm that version 0.20.0-2ubuntu4.2 of sddm fixes this issue on my fresh Kubuntu install (with xserver-xorg-video-amdgpu, Radeon RX 6600 XT).
Thanks for your work on this! I spent the better part of a day searching for the cause since the logs contained no errors or warnings.

Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for sddm has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sddm - 0.20.0-2ubuntu4.2

---------------
sddm (0.20.0-2ubuntu4.2) noble; urgency=medium

  * Apparently we use a custom sddm.service in debian/ and not
  the upstream provided sddm.service. Second attempt (LP: #2066275)

 -- Scarlett Moore <email address hidden> Mon, 01 Jul 2024 14:53:35 +0100

Changed in sddm (Ubuntu Noble):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.