-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
After going to sleep
KeyBoard stay On
Screen stay OFF
and the OS stay unresponsive
avoids the critical mistake of calling dpms off just before systemctl suspend:
general {
lock_cmd = pidof hyprlock || hyprlock
unlock_cmd = loginctl unlock-session
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on
}
# Lock screen after 5.5 minutes
listener {
timeout = 330
on-timeout = pidof hyprlock || ~/show_desktop.sh 0.05 ; $(hyprlock ; ~/show_desktop.sh)
}
# Turn screen off after 6 minutes
listener {
timeout = 360
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
# Suspend after 30 minutes (no dpms off before suspend!)
listener {
timeout = 1800
on-timeout = systemctl suspend
}
Key Fixes:
✅ Removed dpms off before systemctl suspend — this prevents display state conflicts on resume.
✅ after_sleep_cmd = hyprctl dispatch dpms on ensures the display is re-enabled after waking from suspend.
✅ Works reliably with AMD GPUs, as no NVIDIA-specific quirks are needed.
Test such update & wait and see