Skip to content

[Bug] cosmic-greeter prevents laptop from sleeping before logging back in #534

Description

@l33tllama

Description:
When waking the system from sleep, cosmic-greeter is displayed. When the lid is closed immediately again, the laptop does not return to sleep, which appears to be because cosmic-greeter fails to release its sleep inhibitor lock.

Steps to Reproduce:

  1. Start playing a media source with continuous audio (e.g., a YouTube video) to easily monitor the suspend state.
  2. Close the laptop lid. The system suspends correctly and the audio stops.
  3. Open the lid. The system wakes and the audio resumes.
  4. Before logging in or interacting with the greeter, close the lid again.
  5. Notice the audio continues playing—the system fails to suspend (and the display is still on).

Expected Behavior:
The greeter should gracefully release the sleep inhibitor lock if a hardware suspend event is triggered before the UI completes its sequence, allowing the system to sleep.

Actual Behavior:
The system fails to sleep (presumably) because cosmic-greeter permanently holds the sleep lock.

System Information:

  • OS: Fedora 44
  • DE: COSMIC
  • Hardware: Framework 13

Evidence / Logs:
Output of systemd-inhibit --list while the bug is active:

WHO             UID  USER      PID  COMM            WHAT            WHY                                       
ModemManager    0    root      1479 ModemManager    sleep           ModemManager needs to reset devices       
NetworkManager  0    root      1355 NetworkManager  sleep           NetworkManager needs to turn off networks 
UPower          0    root      1382 upowerd         sleep           Pause device polling                      
COSMIC Greeter  1000 username  2703 cosmic-greeter  sleep           COSMIC Greeter needs to display a lock scree>
Cosmic Session  1000 username  2370 cosmic-session  handle-power-key Show confirmation dialog.                  
signal-desktop  1000 username  3181 xdg-dbus-proxy  sleep           Application cleanup before suspend          
slack           1000 username  3169 xdg-dbus-proxy  sleep           Application cleanup before suspend          
teams-for-linux 1000 username  3172 xdg-dbus-proxy  sleep           Application cleanup before suspend

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions