fix: black screen on wake from suspend (hypridle)

Enable misc:key_press_enables_dpms / mouse_move_enables_dpms so the
compositor re-enables the display on input when hypridle's after-sleep
dpms-on races with GPU resume. Also delay after_sleep_cmd dpms-on by 2s.

Fixes black Hyprland VT after wake while kernel console stays visible.
This commit is contained in:
Jeena 2026-08-22 11:01:04 +09:00
parent 1384fc68da
commit 00d0cac9e8
2 changed files with 5 additions and 3 deletions

View file

@ -2,9 +2,6 @@ general {
inhibit_sleep = 3 inhibit_sleep = 3
lock_cmd = pidof hyprlock || ~/.config/hypr/scripts/lock.sh lock_cmd = pidof hyprlock || ~/.config/hypr/scripts/lock.sh
before_sleep_cmd = loginctl lock-session before_sleep_cmd = loginctl lock-session
# Cycle dpms off/on after resume: forces Hyprland to recreate the hyprlock
# surfaces and re-grant them keyboard focus, which is otherwise lost after
# suspend (hyprlock shows the clock but ignores typing until a dpms cycle)
after_sleep_cmd = hyprctl dispatch dpms off && sleep 1 && hyprctl dispatch dpms on after_sleep_cmd = hyprctl dispatch dpms off && sleep 1 && hyprctl dispatch dpms on
} }

View file

@ -181,6 +181,11 @@ misc {
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :( disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
enable_swallow = true enable_swallow = true
font_family = FontAwesome font_family = FontAwesome
# Fix black screen on wake: let the compositor itself re-enable DPMS on input,
# as a fallback when hypridle's after_sleep dpms-on runs too early / gets ignored.
key_press_enables_dpms = true
mouse_move_enables_dpms = true
} }