r/archlinux • • 11d ago

SUPPORT [Hyprland] 5–6 second black screen when switching from greetd (Caelestia greeter) to desktop

Hey everyone!

I'm running Arch Linux with Hyprland and Caelestia, using greetd with a custom Quickshell-based Caelestia greeter.

I'm experiencing a 5–6 second black screen after entering my password and pressing Enter.

Here's what happens:

  1. I enter my password and press Enter.
  2. The greeter disappears almost immediately.
  3. The screen stays completely black for around 5–6 seconds.
  4. My Hyprland desktop finally appears.

Interestingly, once the desktop starts appearing, Caelestia itself loads quite quickly. So I'm wondering whether the delay is happening during the greeter-to-session handoff rather than during desktop startup.

What I've investigated so far:

  • Moved caelestia shell -d to the beginning of my Hyprland startup handler, but it made no noticeable difference.
  • Checked greetd journal timestamps. The greeter PAM session closes and the user session opens almost immediately.
  • Hyprland's session target is reached approximately 0.9 seconds after the user session opens.
  • Inspected the greeter launcher scripts and found no obvious hard-coded sleep.
  • Found an intentional launchDelay timer in the greeter's AuthService.qml, which waits for Motion.duration(Motion.defaultSpatial) before calling Greetd.launch().

My questions:

  • Is there a way to optimize the greeter-to-Hyprland handoff?
  • Could this be caused by GPU initialization or the Aquamarine backend?
  • Could PAM or systemd be delaying the actual session startup?
  • Has anyone experienced something similar with greetd and a Quickshell greeter?

I'd appreciate any suggestions or debugging steps. I'd particularly like to reduce the black-screen time without sacrificing the greeter's appearance or breaking the login process.

System information:

  • OS: Arch Linux
  • Compositor: Hyprland
  • Shell: Caelestia / Quickshell
  • Display manager: greetd
  • Greeter: Custom Caelestia Quickshell greeter

Thanks in advance!

0 Upvotes

3 comments sorted by

1

u/JoseLopezC11 9d ago

This normally happens when the greeter has a specific refresh rate and then hyprland has a different one. Try setting hyprland to 60hz then logout and see if the delay is still there, if its gone, you just have to set the greeter to the same refresh rate as your hyprland config.

1

u/No_Grape_388 10d ago

I had the same issue and resorted to using Claude to check why because I couldn't find anything, there was actually a purposeful delay (4 seconds iirc) included in the configuration.

I tried to take it out and reduce it to 1 but it caused issues so I just swapped to sddm instead.