Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926259 - gui-wm/hyprland-0.36.0-r1 freezes if you switch to another tty and back to hyprland
Summary: gui-wm/hyprland-0.36.0-r1 freezes if you switch to another tty and back to hy...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Julien Roy
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-03-06 12:05 UTC by Constantitus
Modified: 2024-03-10 03:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (fix-tty-freeze.patch,486 bytes, patch)
2024-03-06 12:14 UTC, Constantitus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Constantitus 2024-03-06 12:05:32 UTC
Switching to another tty and back to hyprland's tty freezes the whole system, rendering it entirely unresponsive.
Hyprland can be killed through ssh to restore the system.
This only happens when a resolution and refresh rate are set in the hyprland config.
For example:
Freezes:
monitor = HDMI-A-1, 1920x1080@75, 0x0, 1
monitor = HDMI-A-1, 1920x1080@75, auto, 1
monitor = HDMI-A-1, 1920x1080@75.002998, 0x0, 1
Works as expected (no freeze):
monitor = HDMI-A-1, preferred, auto, 1
monitor = HDMI-A-1, highrr, 0x0, 1

This issue has been discussed on the official Hyprland github repository and the maintainer has provided a patch which fixes the issue.
https://github.com/hyprwm/Hyprland/issues/4839#issuecomment-1965486439

I have tested the patch and it works.

The last working version is 0.34.0, and the bug was introduced in 0.35.0.
Comment 1 Constantitus 2024-03-06 12:14:16 UTC
Created attachment 886804 [details, diff]
patch
Comment 2 Larry the Git Cow gentoo-dev 2024-03-10 03:40:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06091e0976c20b8b52ce005cd21a31e3f5b0e025

commit 06091e0976c20b8b52ce005cd21a31e3f5b0e025
Author:     Julien Roy <julien@jroy.ca>
AuthorDate: 2024-03-09 17:56:07 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2024-03-10 03:40:02 +0000

    gui-wm/hyprland: add patch for bug 926259
    
    Closes: https://bugs.gentoo.org/926259
    Closes: https://github.com/gentoo/gentoo/pull/35686
    Signed-off-by: Julien Roy <julien@jroy.ca>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 gui-wm/hyprland/files/tty-freeze.patch                       | 12 ++++++++++++
 .../{hyprland-0.35.0-r2.ebuild => hyprland-0.35.0-r3.ebuild} |  3 +++
 .../{hyprland-0.36.0-r1.ebuild => hyprland-0.36.0-r2.ebuild} |  3 +++
 3 files changed, 18 insertions(+)