# \[SOLVED\] Hyprsunset doesn't work when suspended

**URL:** <http://forum.hypr.land/t/solved-hyprsunset-doesnt-work-when-suspended/899>\
**Category:** Bugs / FRs / Support\
**Tags:** hyprsunset, bug, config\
**Created:** [September 27, 2025, 12:07am UTC](http://forum.hypr.land/t/solved-hyprsunset-doesnt-work-when-suspended/899 "2025-09-27T00:07:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![TySpicer](http://forum.hypr.land/user_avatar/forum.hypr.land/tyspicer/32/748_2.png) [@TySpicer](http://forum.hypr.land/u/TySpicer)\
**Post date:** [September 27, 2025, 4:26pm UTC](http://forum.hypr.land/t/solved-hyprsunset-doesnt-work-when-suspended/899/3 "2025-09-27T16:26:06Z")

</div>

Looks like I got it to work! I installed gdm (GNOME Display Manager), so I have a nice login screen instead of the Arch tty. I added `exec-once = hypridle` to my `hyprland.conf`. Altogether, my `hypridle.conf` looks like this now:

```auto
#hypridle.conf
general {
    lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
    before_sleep_cmd = hyprlock # lock before suspend.
	after_sleep_cmd = systemctl --user restart hyprsunset # make sure hyprsunset reloads after opening laptop
  # to avoid having to press a key twice to turn on the display.
}

```

After a couple more tests, everything works as I want it to! After opening my laptop, the new hyprsunset profile might take about 30 seconds to kick in, but it appears to work.

Thanks for the help!

---

_[View the full topic](http://forum.hypr.land/t/solved-hyprsunset-doesnt-work-when-suspended/899)._
