Hyprland: Hyprland crashes when the monitor is turned off.

Hyprland crashes whenever I turn off my monitor, or from what I understand it crashes exactly when it’s powered back on.

The monitor is properly configured in config, plugged via HDMI. Other HDMI monitor works fine.

Crash Log

$ hyprctl monitors
Monitor HDMI-A-1 (ID 0):
	1920x1080@60.000000 at 0x0
	description: ASUSTek COMPUTER INC ASUS VP249 R1LMTF049118 (HDMI-A-1)
	make: ASUSTek COMPUTER INC
	model: ASUS VP249
	serial: R1LMTF049118
	active workspace: 1 (1)
	special workspace: 0 ()
	reserved: 64 0 0 0
	scale: 1.00
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: 0

According to the crashlog, the monitor is removed once it’s powered off.

[LOG] Monitor HDMI-A-1 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] Removed monitor HDMI-A-1!

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 8
  • Comments: 51 (20 by maintainers)

Most upvoted comments

To add another data point, I’m suffering from the same issue. When I hyprctl dpms off and go to bed, 10/10 times when I wake my computer up in the morning I’m back at my login manager. For some reason the backtrace in my crash report has less information than the ones posted in the thread however.

hyprlandCrashReport2635.txt

Building master fixes the crash back to TTY for me but then I get back a desktop with the default wallpaper, no waybar, and no response (except for the Super+m to quit).

The issue appears to be resolved for me, no longer crashes when I turn my monitors off and back on.

brother b156a965 is 2 days old

@vaxerski: git bisect shows:

01f85a09a981eb6c8784d459f729d418c0dd19e3 is the first bad commit
commit 01f85a09a981eb6c8784d459f729d418c0dd19e3
Author: vaxerski <vaxry@vaxry.net>
Date:   Fri Jun 23 21:14:04 2023 +0200

    xwayland: send zero scaling to xwayland if enabled

Also after reverting this commit from v0.27.0, the issue can no longer be reproduced.

Can say that the same happens here on a git version from the chaotic aur. When monitor is turned off Hyprland seems to just log out and the system enters SDDM. Official hyprland version from Arch’s repositories works fine though as far as I can tell.

I use the package in the Arch archive, and started to see the same issue after updating to 0.27.0-1 earlier today. My monitor connects to DP instead of HDMI, so the problem is even worse… DPMS off/on triggers the issue as well.