user: in the past this laptop has frozen (no inputs register and the screen stays still) but audio can still play, and the only way i figured out to fix it was holding the power button to shut it down. can you look into what caused this and how to fix it? ai: This matches a **display-pipeline hang**, not a full machine death. The kernel and audio kept running; the Intel GPU / niri compositor stopped flipping frames and taking input. Holding the power button was the only way out because recovery keys are turned off on this install. ## What it looks like HP Victus 16-r0xxx (`7N4X6UA`): Intel i7-13700HX + UHD 770 driving the built-in panel, RTX 4060 on the side, niri on Wayland, CachyOS 7.1.5, NVIDIA 580.173.02. The panel is a Chimei Innolux **1920×1080 @ 144 Hz**. Sleep is **s2idle** (this laptop has no deep S3). That exact combo — Victus hybrid Intel/NVIDIA, 144 Hz eDP, s2idle, NVIDIA 580.x, kernel 7.0/7.1 — is a known class of bugs: the Intel `i915` driver loses the internal panel (link training / PSR), the compositor’s screen freezes, audio keeps playing, and you have to hard power-off. Login records show unclean shutdowns labeled `crash` on **May 16, Jun 5, Jul 3, and Jul 15**. This boot has been up 13 days and has survived lid-close suspends, so it is intermittent. I cannot pin the last freeze to a single log line. systemd is capped at **50 MB** of journals, so older boots are gone, and a hung GPU often never flushes a “GPU hang” message. What is still here is the same failure mode on the way in: every lid-close, niri fails a page flip on Intel `/dev/dri/card2` (`Permission denied`). This boot it recovered; the public bugs are the cases where it does not. Two settings made the hard power-off feel like the only option: - Kernel cmdline includes `nowatchdog`, so the hardware watchdog will not reboot a hung GPU/CPU. - `kernel.sysrq = 16` allows only “sync”. **Alt+SysRq+B / REISUB will not work** until that is changed. High zram use (~20 GB compressed) is a separate health issue (lots of long-lived browsers). It can make the machine feel stuck, but it does not explain “screen frozen, audio still playing.” ## How to fix it Do these in order. The first two help even before the next freeze. **1. Recover without holding power** Enable Magic SysRq, then if it freezes: hold **Alt+SysRq** (often **PrtSc**) and tap **R E I S U B** slowly, or at least **B** to reboot. ```bash sudo tee /etc/sysctl.d/99-sysrq.conf >/dev/null <<'EOF' kernel.sysrq = 1 EOF sudo sysctl --system ``` **2. Keep enough logs for the next time** ```bash sudo mkdir -p /etc/systemd/journald.conf.d sudo tee /etc/systemd/journald.conf.d/99-size.conf >/dev/null <<'EOF' [Journal] SystemMaxUse=1G MaxRetentionSec=2month EOF sudo systemctl restart systemd-journald ``` **3. The actual stability workaround** Disable Intel Panel Self Refresh (the usual trigger for “frozen screen, audio lives”). In `/etc/default/limine`, add to the existing cmdline: ```text i915.enable_psr=0 ``` so it looks like: ```text KERNEL_CMDLINE[default]+="quiet nowatchdog splash rw rootflags=subvol=/@ root=UUID=605e5049-e27e-467c-8890-85b58290f7a6 i915.enable_psr=0" ``` Then regenerate the boot entry and reboot: ```bash sudo limine-update ``` If it still happens, add `i915.enable_dc=0` the same way. **4. Cheap test with no reboot** Drop the laptop panel to 60 Hz in niri (`output "eDP-1" { mode "1920x1080@60.008" }`) and reload config. 144 Hz eDP is over-represented in these hangs. **5. Sleep** Lid-close suspend is the risky path. Hibernate is more reliable on this hardware than s2idle. BIOS is **F.12 (Oct 2023)** — HP has shipped much newer firmware for this family, but Victus BIOS updates have also *caused* freezes for some people, so only flash from [your exact SKU’s HP driver page](https://support.hp.com/us-en/drivers/victus-by-hp-16.1-inch-gaming-laptop-pc-16-r0000/model/2101566991?sku=7N4X6UA) after reading the notes. I did not change boot options, SysRq, or niri from here (those need root and a reboot). If you want, I can apply **SysRq + larger journals** now, and/or **PSR-off + 60 Hz** as the next step.