i asked ai for help with my specific laptop. maybe putting this here could be helpful later...

4.2 kB · 79 lines · Created 3mo ago
Markdown

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.

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

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:

i915.enable_psr=0

so it looks like:

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:

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 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.

additional details:

Both changes are live. SysRq is on, and journals can grow up to 1 GB and stay for two months.

SysRq: kernel.sysrq is now 1 via /etc/sysctl.d/99-sysrq.conf. If the screen freezes again, hold Alt+SysRq (on this HP that is usually Alt+PrtSc; add Fn if PrtSc is a function key) and tap slowly:

  • R unraw keyboard
  • E terminate processes
  • I kill remaining processes
  • S sync disks
  • U remount filesystems read-only
  • B reboot

If nothing else responds, Alt+SysRq+B alone is still better than holding the power button.

Journals: /etc/systemd/journald.conf.d/99-size.conf sets SystemMaxUse=1G and MaxRetentionSec=2month. After the next hang, journalctl -b -1 should still have the previous boot.


Intel Panel Self Refresh #

The built-in screen is an eDP panel (embedded DisplayPort). Normally the Intel GPU must push a new frame 144 times per second, even if nothing on screen changed. That means the display link, scanout engine, and some memory stay awake the whole time.

PSR (Panel Self Refresh, eDP 1.3+) is a power-saving deal between the GPU and the panel:

  1. The panel has a small remote frame buffer of its own.
  2. When the picture is static, Intel’s i915 driver tells the panel: “keep showing this frame yourself.”
  3. The GPU shuts down the eDP link and related clocks (deeper variants are PSR2 / Panel Replay, plus DC5/DC6 display power states).
  4. When something changes (cursor, video, a window update), the driver must wake the link, retrain it if needed, and start sending frames again in sync with vblank.

The kernel’s own docs say the hardware’s “did the screen change?” tracking is unreliable, so i915 uses extra software tracking (intel_psr_invalidate / intel_psr_flush) and re-enables PSR from a work queue. That path is easy to get wrong, especially on:

  • 12th–14th gen Intel (this is 13th gen HX)
  • high refresh eDP (yours is 144 Hz)
  • hybrid NVIDIA, which adds another GPU and runtime power management
  • s2idle lid-close, where the link is torn down and brought back

When the wake handshake fails, typical results are: the last frame stays on screen (frozen picture), the compositor stops getting vblanks so keyboard/mouse look dead, and audio keeps playing because PipeWire never needed that display link. That is exactly the hang you described.

i915.enable_psr=0 does not turn the screen off. It only stops the GPU from parking the panel in that “refresh yourself” mode. Cost is a bit more idle display power / heat, not a feature loss. It is the usual first workaround; it is not applied yet (that needs a Limine cmdline change and a reboot).


Updating firmware from Linux #

fwupd / LVFS will not flash this BIOS. HP’s consumer Victus line is not on LVFS (no Victus devices listed). fwupd is not installed here anyway. HP’s Linux firmware support is mostly ZBook/workstation. You can still install fwupd later for other things (NVMe, UEFI dbx), but it will not replace HP’s BIOS installer on this laptop.

You can still update from Linux. The BIOS file is the same Windows SoftPaq; the flash itself runs in UEFI, not in Windows.

Your machine:

  • Product: Victus 16-r0073cl (7N4X6UA#ABA)
  • Board: 8BC2
  • CPU: i7-13700HX → you must use “HP Notebook System BIOS Update (Intel Core HX55 Processors)”, not the H45 package
  • Current BIOS: F.12 (2023-10-26) — quite old; this family has had much newer HX55 builds (forum copies mention F.30)

Official download: HP drivers for 7N4X6UA → choose Windows 11 (HP hides BIOS if you pick Linux) → BIOS → HX55 only.

Method that stays on Linux #

  1. Plug in the charger. Do not flash on battery.
  2. Download the HX55 SoftPaq (.exe), then extract it:
mkdir -p ~/hp-bios && cd ~/hp-bios
7z x ~/Downloads/spXXXXXX.exe
# if 7z is incomplete, try: wine spXXXXXX.exe /s /f extracted
  1. You want a board image like 8BC2.bin plus its .s12 signature. Copy them onto the EFI partition (yours is /boot):
sudo mkdir -p /boot/EFI/HP/BIOS/New /boot/EFI/Hewlett-Packard/BIOS/New
sudo cp 8BC2.bin 8BC2.s12 /boot/EFI/HP/BIOS/New/
sudo cp 8BC2.bin 8BC2.s12 /boot/EFI/Hewlett-Packard/BIOS/New/
  1. Reboot → Esc → F2 (HP Hardware Diagnostics) → BIOS Management → Update BIOS,
    or reboot → Esc → F10 (Setup) and look for firmware update,
    or from the Limine/firmware boot menu: Update System and Supported Device Firmware.

Fallback: copy the same files to .../BIOS/Current instead of New, shut down, then power on while holding Windows+B (HP BIOS recovery). Screen can go black for several minutes — leave it alone.

Do not pick the H45 BIOS. A wrong image can brick the board. Also worth knowing: some Victus users got new freezes after a BIOS update, so this is optional and not a guaranteed fix for the display hang. Read the SoftPaq notes before flashing.

If you want next, I can add i915.enable_psr=0 to Limine (reboot required), or walk through extracting a specific SoftPaq once you have the file.

Sign up or Sign in to add to the discussion.