Skip to content

595.80 (open): kernel oops in nvEvoDisableVblankSemControl on hibernate entry — NULL page fault, GPU left hard-locked (krcWatchdog loop) #1226

Open

Description

@SithSense

Summary

Attempting to hibernate (systemctl hibernate) on a hybrid-graphics laptop with the
dGPU active crashes in the nvidia PM notifier before the hibernation image is written.
systemd-sleep is killed mid-notifier ("exited with irqs disabled"), hibernation is
aborted, and the GPU is left permanently locked (RC watchdog loop) — the Wayland
compositor never recovers and a hard reboot is required. 100% reproducible on first
attempt under the conditions below.

Environment

  • Driver: 595.80, open kernel module (Fedora RPMFusion akmod-nvidia-595.80-1.fc44,
    kmod-nvidia-7.0.13-200.fc44.x86_64-595.80-1.fc44)
  • Kernel: 7.0.13-200.fc44.x86_64 (Fedora 44), PREEMPT(lazy); Secure Boot disabled,
    lockdown [none]
  • GPU: RTX 4060 Laptop (Max-Q), PCI 01:00.0, hybrid with AMD Raphael iGPU (09:00.0)
  • Machine: ASUS ROG Strix G713PV (BIOS G713PV.327), Ryzen 9 7845HX, 64 GB RAM
  • Session: KDE Plasma 6.7.1, Wayland (kwin_wayland compositing on the dGPU-driven
    external output)
  • Displays: internal eDP on the AMD iGPU; external HDMI monitor driven by the NVIDIA
    dGPU, connected and active at the time of the crash
  • Module options: NVreg_PreserveVideoMemoryAllocations=1,
    NVreg_TemporaryFilePath=/var/tmp, NVreg_DynamicPowerManagement=0x00
  • nvidia-suspend/resume/hibernate systemd services: enabled
  • Hibernate target: 59.6 GiB disk swap partition (zram excluded), resume=UUID=... on
    the kernel cmdline, initramfs rebuilt with resume support; ~14 GiB RAM in use
  • Platform sleep: firmware exposes s2idle only (no S3)

Steps to reproduce

  1. Hybrid mode (dGPU active, external HDMI display connected), Wayland session running.
  2. systemctl hibernate

Expected

Hibernation image written; machine powers off; resume restores the session (or, if
something is unsupported, a clean refusal with no side effects).

Actual

Kernel oops inside the nvidia PM notifier during hibernate entry — before the image
write starts:

BUG: unable to handle page fault for address: 00000000000026b0
Oops: Oops: 0000 [#1] SMP NOPTI
CPU: 13 UID: 0 PID: 123864 Comm: systemd-sleep Tainted: G OE 7.0.13-200.fc44.x86_64 #1 PREEMPT(lazy)
Hardware name: ASUSTeK COMPUTER INC. ROG Strix G713PV_G713PV/G713PV, BIOS G713PV.327 08/23/2023
RIP: 0010:nvEvoDisableVblankSemControl+0x34/0xd0 [nvidia_modeset]
Call Trace:
 <TASK>
 nv_set_system_power_state.part.0+0x72/0x1b0 [nvidia]
 nv_pm_notifier+0x35/0xa0 [nvidia]
 notifier_call_chain+0x70/0x110
 blocking_notifier_call_chain_robust+0x73/0xf0
 pm_notifier_call_chain_robust+0x1d/0x40
 hibernate+0x10d/0x190
 state_store+0x45/0x60
 kernfs_fop_write_iter+0x171/0x220
 vfs_write+0x281/0x570
 ksys_write+0x7b/0x110
 do_syscall_64+0x109/0x6e0
note: systemd-sleep[123864] exited with irqs disabled

The fault address 0x26b0 is a small offset from NULL — this looks like a NULL/stale
device pointer dereferenced while disabling vblank semaphore controls in the hibernate
prepare path.

Aftermath: systemd-hibernate.service: Failed with result 'signal'; the kernel then
logs the RC watchdog indefinitely (~every 8 s):

NVRM: krcWatchdog_IMPL: RC watchdog: GPU is probably locked!  Notify Timeout Seconds: 7

The Wayland compositor on the dGPU output never recovers; hard reboot required.

Notes

  • Suspend (s2idle) on this configuration has a separate long-standing fragility
    (VRAM corruption / Xid 31 on interrupted suspend), so hibernate was the intended
    supported sleep path here.
  • This was the first hibernate attempt on this install; reproduced immediately.
  • Happy to provide nvidia-bug-report.log.gz, test patches, or try newer drivers.

Possibly related (different symbol/path, also 595.x mobile PM): #1142 (nv_suspend_devices WARNING on suspend). This report is a hard oops in nvEvoDisableVblankSemControl on the hibernate prepare path specifically.

Activity

  1. SithSense commented on Jul 2, 2026

    @SithSense
    Author

    Attaching diagnostics (as a gist — two files):

    https://gist.github.com/SithSense/eb3296590c87a2ee7e6a76a8eddb09bc

    • nvidia-bug-report-sanitized.log — full nvidia-bug-report.sh output, collected as root on the boot after the crash (the tool only captures the current boot).
    • journal-prev-boot-hibernate-oops.log — the previous boot's journal window covering the actual event: systemctl hibernate → oops in nvEvoDisableVblankSemControl → krcWatchdog: GPU is probably locked! loop until the forced reboot.

    Sanitization note: hostname, username, MAC addresses, local IPs, machine-id, and system/DIMM serials are redacted (REDACTED-* placeholders). Nothing GPU- or driver-related was altered — PCI/subsystem IDs, module parameters, kernel/driver logs, and the oops are verbatim. Happy to re-collect with --safe-mode --extra-system-data or test patches/newer drivers.

  2. costis-t commented on Aug 5, 2026

    @costis-t

    Encountering same problem on a desktop RTX (GB203), and reproducing it on 610.57.04. Some AI-assisted output below.


    Single GPU, no iGPU, KDE Plasma Wayland, kernel 6.18.41, hibernating to a btrfs swapfile on a LUKS2 root. Same nvEvoDisableVblankSemControl+0x34/0xd0, same Comm: systemd-sleep, same SIGKILL at 78 s as the original report.

    The base pointer is NULL on both driver versions

    The faulting instruction is identical across 595.84 and 610.57.04; only the displacement moved:

    595.84     lea rbp,[r14+0x26d8]   RBP=0x26d8  R14=0x0  CR2=0x26b0
    610.57.04  lea rbp,[r14+0x2618]   RBP=0x2618  R14=0x0  CR2=0x25f0
    

    Faulting insn is mov rdx,[rbp-0x28], and 0x2618 - 0x28 = 0x25f0 matches CR2 exactly (likewise 0x26d8 - 0x28 = 0x26b0 on 595.84). R14 is NULL in both dumps — the 192-byte shift is just a struct member that grew between releases. The defect is that nvEvoDisableVblankSemControl is reached with a NULL device pointer, which is also why the original report and mine hit the same symbol from two different call paths (nv_pm_notifier → hibernate+0x10d there, nvKmsResume → nvResumeDevEvo → nvRevokeDevice → nvFreePerOpenDev from hibernate.cold here).

    Two GSP RPC timeouts precede it, 8 s apart, identically on both drivers

    NVRM: rpcRmApiAlloc_GSP: GspRmAlloc failed: … hClass=0x0000ca7e; status=0x00000065
    nvidia-modeset: ERROR: GPU:0: Display engine push buffer channel allocation failed:
          0x65 (Call timed out [NV_ERR_TIMEOUT])
    nvidia-modeset: ERROR: GPU:0: Failed to allocate display engine window channels
    NVRM: rpcRmApiAlloc_GSP: GspRmAlloc failed: … hClass=0x0000ca7b; status=0x00000065
    <8 s later> BUG: unable to handle page fault for address: 00000000000025f0
    

    GSP stops answering → display engine channel allocation times out → teardown walks a device whose channels were never allocated → NULL deref. If that reading is right there are two separate issues: a GSP RPC timeout during hibernate, and a missing NULL check on the failure path. The second turns a recoverable error into a dead GPU.

    The initramfs decides which leg fails; the driver version changes nothing

    595.84 610.57.04
    A — NVIDIA modules in the initramfs (dracut force_drivers) restore leg: pci_pm_freeze returns -5 same
    B — modules not in the initramfs write leg: NULL deref above same

    In A the write leg is clean — image written, power-off in ~60 s — and the failure comes after
    PM: Image successfully loaded on the next boot:

    nvidia 0000:08:00.0: PM: pci_pm_freeze(): nvidia_isr_kthread_bh [nvidia] returns -5
    nvidia 0000:08:00.0: PM: failed to quiesce async: error -5
    PM: hibernation: resume failed (-5)
    

    preceded by PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. This system runs NVreg_UseKernelSuspendNotifiers=1 and has no /proc/driver/nvidia/suspend. The notifiers cover transitions from a running system — which is why the write leg works — but the restore leg runs in a freshly booted initramfs kernel, where the driver still seems to expect the procfs interface.

    So both failures are about bringing the GPU back, whether that happens in the initramfs (A) or on the running system after the snapshot (B). No combination completes a round trip. This matches the matrix in basecamp/omarchy#5554, reached independently.

    NVreg_PreserveVideoMemoryAllocations=0 is not a usable workaround here — it is required for a clean Wayland resume from S3, hich currently works; #5554's Test 2 reports it does not fix Blackwell anyway. Plain S3 suspend/resume is fine in every configuration tested; only hibernation is affected.

    Same signature, three configurations

    #1226 (original) this report, 595.84 this report, 610.57.04
    GPU RTX 4060 Laptop (Max-Q), hybrid + AMD iGPU RTX desktop, GB203 10de:2c05, single GPU same
    driver 595.80 open 595.84 open 610.57.04 open
    kernel 7.0.13-200.fc44 6.18.41, PREEMPT(lazy) same
    RIP nvEvoDisableVblankSemControl+0x34/0xd0 identical identical
    fault address 0x26b0 0x26b0 0x25f0
    Comm systemd-sleep identical identical
    result Failed with result 'signal' identical (SIGKILL @ 78 s) identical (SIGKILL @ 78 s)

    Full logs

    All four runs, full oops dumps, module parameters, dracut config, kernel command line and hardware inventory: gist

  3. atomicflag commented on Oct 16, 2026

    @atomicflag

    Also experiencing the same issue. More AI assisted info below.

    Confirming the same signature on a 615.78.08 (open) desktop system — the oops is still present on the current branch.

    Environment

    • GPU: GeForce RTX 4090 (AD102, 0000:01:00.0), single GPU, no iGPU in use
    • Driver: 615.78.08, open kernel modules (Arch nvidia-open)
    • Kernel: 7.2.9-arch1-1 (stock Arch), PREEMPT(full)
    • Machine: Gigabyte Z790 AORUS ELITE AX desktop

    Configuration

    • NVIDIA modules not in the initramfs (MODULES=())
    • PreserveVideoMemoryAllocations: 2 (default), UseKernelSuspendNotifiers: 1, EnableS0ixPowerManagement: 0

    So this is not the initramfs / PVMA=1 variant from #1343 — it is the plain default desktop setup, and S4 restore still fails.

    Sequence (real hibernate with actual power off/on; 100% reproducible — 3/3 cycles in my journal are byte-identical, including the fault address):

    PM: hibernation: hibernation entry
    <system powers off; powered back on manually; POST; resume>
    ACPI: PM: Waking up from system sleep state S4
    NVRM: rpcRmApiAlloc_GSP: GspRmAlloc failed: hClient=0xc1d0000c; hParent=0x00010013;
          hObject=0x00010027; hClass=0x0000c67e; paramsSize=0x00000028;
          paramsStatus=0x00000065; status=0x00000065
    nvidia-modeset: ERROR: GPU:0: Display engine push buffer channel allocation failed:
          0x65 (Call timed out [NV_ERR_TIMEOUT])
    nvidia-modeset: ERROR: GPU:0: Failed to allocate display engine window channels
    <~8 s later, same pair again with hClass=0x0000c67b>
    BUG: unable to handle page fault for address: 0000000000002740
    Oops: 0000 [#1] SMP NOPTI
    CPU: 10 UID: 0 PID: 1564 Comm: systemd-sleep Tainted: G OE 7.2.9-arch1-1 #1 PREEMPT(full)
    Hardware name: Gigabyte Technology Co., Ltd. Z790 AORUS ELITE AX/Z790 AORUS ELITE AX
    RIP: 0010:nvEvoDisableVblankSemControl+0x34/0xd0 [nvidia_modeset]
    CR2: 0000000000002740   R14: 0000000000000000
    Call Trace:
     FreeDeviceReference+0x70/0x1a0 [nvidia_modeset]
     nvRevokeDevice+0x8c/0xa0 [nvidia_modeset]
     FreeDeviceReference+0x187/0x1a0 [nvidia_modeset]
     nvRevokeDevice+0x8c/0xa0 [nvidia_modeset]
     nvResumeDevEvo+0x14d/0x280 [nvidia_modeset]
     nvKmsResume+0x5c/0xd0 [nvidia_modeset]
     nvkms_resume+0x1f/0x50 [nvidia_modeset]
     nv_set_system_power_state.part.0+0x11c/0x620 [nvidia]
     nv_pm_notifier+0x35/0xa0 [nvidia]
     hibernate.cold+0x25/0x4b5
     state_store -> kernfs_fop_write_iter (systemd-sleep)
    

    Notes:

    • Same R14=NULL base pointer as the two dumps above; on 615.78.08 the fault address is 0x2740 (vs 0x26b0/0x25f0 there) — the struct grew, the root cause did not.
    • Note the nested FreeDeviceReference -> nvRevokeDevice frames — the same re-entrant revoke pattern PR nvidia-modeset: ignore nested nvRevokeDevice() calls #1395 aims to remove.
    • This is the restore leg (after the image is restored, during PM_POST_HIBERNATION), with the modules not in the initramfs — a new cell in the matrix from the previous comment: no-initramfs + restore leg + GSP wedge, on a desktop AD102.
    • The two GSP timeouts and the oops are identical across all three cycles (same hClient/hClass handles, same fault address).

    For the record, this has been happening on my system since ~575, and it reproduces on 615.78.08 as well. Happy to attach a full journalctl window and a nvidia-bug-report.log.gz if useful, or to test the PR #1395 patch / driver builds.

  4. a-kurczyn commented on Nov 6, 2026

    @a-kurczyn

    Same bug here on a desktop RTX 4080 (AD103) with 615.78.08. I found a workaround that makes S4 resume work: reset the GPU (FLR) in the initramfs, just before the hibernation image is loaded. With the reset, S4 resume worked 6 out of 6 times. Without it, it failed 4 out of 4 times.

    Setup

    • GPU: GeForce RTX 4080 (AD103, 10de:2704), the only GPU. The Ryzen 5 5600X has no iGPU.
    • Board: ASUS ROG STRIX B550-F GAMING, BIOS 3636 (2026-01-04)
    • Driver: 615.78.08 open (RPM Fusion akmod-nvidia). It is not in the initramfs (RPM Fusion's default omit_drivers), so nvidia.ko loads after switch-root.
    • Kernel 7.2.15-300.fc45 (Fedora 45), systemd 262, KDE Plasma 6.8.2 Wayland
    • Display: LG OLED TV on HDMI, 3840x2160@120 HDR
    • Swap partition on NVMe, /sys/power/disk = platform
    • Parameters: PreserveVideoMemoryAllocations=1, TemporaryFilePath=/var/tmp, DynamicPowerManagement=3, EnableGpuFirmware=18

    The failure

    It failed 3 times out of 3 before the workaround: once with UseKernelSuspendNotifiers=1 (the driver default), and twice with UseKernelSuspendNotifiers=0 plus nvidia-hibernate/nvidia-resume.service. Each time the image is saved and restored fine. Then:

    ACPI: PM: Waking up from system sleep state S4
    PM: hibernation: hibernation exit
    NVRM: rpcRmApiAlloc_GSP: GspRmAlloc failed: hClient=0xc1d0000c; hParent=0x00010013; hObject=0x00010027; hClass=0x0000c67e; paramsSize=0x00000028; paramsStatus=0x00000065; status=0x00000065
    nvidia-modeset: ERROR: GPU:0: Display engine push buffer channel allocation failed: 0x65 (Call timed out [NV_ERR_TIMEOUT])
    nvidia-modeset: ERROR: GPU:0: Failed to allocate display engine window channels
    <60 s later, same with hObject=0x00010022; hClass=0x0000c67b>
    

    These are the same handles as in the 4090 report above. Here the two timeouts are 60 s apart, not 8 s. With UseKernelSuspendNotifiers=0, nvidia-sleep.sh resume hangs until systemd kills it. Then the same oops appears, but it comes through the procfs path instead of nv_pm_notifier:

    BUG: unable to handle page fault for address: 0000000000002740
    CPU: 6 UID: 0 PID: 32375 Comm: nvidia-sleep.sh Tainted: G OE 7.2.15-300.fc45.x86_64
    RIP: 0010:nvEvoDisableVblankSemControl+0x34/0xd0 [nvidia_modeset]
     FreeDeviceReference+0x75/0x180 [nvidia_modeset]
     nvRevokeDevice+0x8c/0xa0 [nvidia_modeset]
     FreeDeviceReference+0x161/0x180 [nvidia_modeset]
     nvRevokeDevice+0x8c/0xa0 [nvidia_modeset]
     nvResumeDevEvo+0x20c/0x240 [nvidia_modeset]
     nvKmsResume+0x86/0xb0 [nvidia_modeset]
     nvkms_resume+0x1f/0x50 [nvidia_modeset]
     nv_set_system_power_state.part.0+0x131/0x1b0 [nvidia]
     nv_procfs_write_suspend+0x113/0x200 [nvidia]
    

    The screen never comes back, and I have to hard reset. So UseKernelSuspendNotifiers changes how the resume starts, but not the result.

    Also ruled out: the HDMI 2.1 FRL link. It fails the same way at 3840x2160@60 (TMDS) with HDR off. S3 (deep) suspend works fine with the same setup, at both 60 and 120 Hz.

    Workaround: reset the GPU in the initramfs before the image is loaded

    My guess (one test below, "No display at power-on", supports it): when the PC powers on to resume from S4, the firmware does a full POST. The VBIOS/GOP turns on the display engine and shows the boot screen (simpledrm in the initramfs draws on it). After S3 this doesn't happen. The resume code in RM/nvidia-modeset doesn't seem to expect the display engine to be already on, and the GSP stops answering the window channel allocations. Resetting the GPU before the image is restored should put it back in a state closer to an S3 wake. At that point no driver is bound to 08:00.0, so the reset is safe.

    A dracut module (systemd initrd) adds a oneshot unit that runs before systemd-hibernate-resume.service. It only runs when systemd's HibernateLocation EFI variable exists, which means an image is waiting. It writes 1 to /sys/bus/pci/devices/<gpu>/reset. On this card reset_method is flr bus, so FLR is used.

    /usr/lib/dracut/modules.d/99gpu-reset-resume/module-setup.sh

    #!/bin/bash
    check() { return 255; }
    depends() { echo systemd; }
    install() {
        inst_script "$moddir/gpu-reset-before-resume.sh" /usr/libexec/gpu-reset-before-resume.sh
        inst_simple "$moddir/gpu-reset-before-resume.service" "$systemdsystemunitdir/gpu-reset-before-resume.service"
        $SYSTEMCTL -q --root "$initdir" add-wants systemd-hibernate-resume.service gpu-reset-before-resume.service
    }

    /usr/lib/dracut/modules.d/99gpu-reset-resume/gpu-reset-before-resume.service

    [Unit]
    Description=Reset NVIDIA GPU before hibernate resume
    DefaultDependencies=no
    Before=systemd-hibernate-resume.service
    ConditionPathExists=|/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
    ConditionKernelCommandLine=|rd.gpureset=1
    ConditionKernelCommandLine=!rd.gpureset=0
    ConditionKernelCommandLine=!noresume
    
    [Service]
    Type=oneshot
    ExecStart=/usr/libexec/gpu-reset-before-resume.sh

    /usr/lib/dracut/modules.d/99gpu-reset-resume/gpu-reset-before-resume.sh

    #!/bin/bash
    log() { echo "gpu-reset-before-resume: $*" > /dev/kmsg; }
    for dev in /sys/bus/pci/devices/*; do
        [ "$(cat "$dev/vendor" 2>/dev/null)" = "0x10de" ] || continue
        case "$(cat "$dev/class" 2>/dev/null)" in 0x0300*|0x0302*) ;; *) continue ;; esac
        name=${dev##*/}
        if [ -e "$dev/driver" ]; then drv=$(readlink "$dev/driver"); log "$name has driver ${drv##*/} bound, skipping"; continue; fi
        [ -w "$dev/reset" ] || { log "$name has no reset interface, skipping"; continue; }
        log "resetting $name (methods: $(cat "$dev/reset_method" 2>/dev/null))"
        echo 1 > "$dev/reset" && log "$name reset done" || log "$name reset FAILED"
    done
    exit 0

    To enable it, add add_dracutmodules+=" gpu-reset-resume " to a file in /etc/dracut.conf.d/ and run dracut -f. With mkinitcpio, the same thing would be a hook that runs before resume.

    Results

    The initramfs log is lost after a successful resume, so I checked the reset on its own: a normal boot with rd.gpureset=1 forces the reset. The log shows it ran, and the driver loaded fine afterwards:

    [3.955653] gpu-reset-before-resume: resetting 0000:08:00.0 (methods: flr bus)
    [4.031009] gpu-reset-before-resume: 0000:08:00.0 reset done
    [4.403712] systemd-hibernate-resume: Unable to resume from device ... continuing boot process.
    [7.618016] NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64  615.78.08
    

    With the module installed (same driver, kernel and parameters, UseKernelSuspendNotifiers=0), S4 resume works every time:

    22:56:21 hibernate requested   -> 22:57:55 System returned from sleep operation 'hibernate'
    23:20:13 hibernate requested   -> 23:21:44 System returned from sleep operation 'hibernate'
    23:26:54 hibernate requested   -> 23:28:25 System returned from sleep operation 'hibernate'
    23:29:17 hibernate requested   -> 23:31:15 System returned from sleep operation 'hibernate'
    

    Each one was a real power-off and POST. The last three were in a row, without rebooting in between. nvidia-hibernate and nvidia-resume.service succeeded every time, with no GSP timeout and no oops. There was one [nvidia-drm] Flip event timeout on head 0, on the first resume only. The desktop came back with 4K120 HDR. A fifth run, with the TV turned off during the resume and turned on afterwards, also worked.

    Without the reset: I turned the reset off for one boot (rd.gpureset=0), and it failed again. The image was restored and userspace ran for about a second. Then there was no picture, and the log stopped before any NVRM lines were saved. I had to reboot with SysRq.

    No display at power-on: with the reset still off (rd.gpureset=0), I hibernated, unplugged the HDMI cable while the PC was off, turned it on, waited about 2 minutes, and plugged the cable back in. That resume worked without the reset. nvidia-resume.service succeeded, there was one Flip event timeout, and the HDMI hotplug was picked up normally. With no display connected, the GOP has nothing to turn on. So the trigger seems to be the display state the firmware leaves after an S4 POST, not S4 itself. This is only one run, so take it as a strong hint, not proof.

    With the driver default: with the reset on and UseKernelSuspendNotifiers=1 (the driver default; nvidia-hibernate/nvidia-resume.service skip themselves through ExecCondition), S4 also worked: 23:56:17 hibernate requested, 23:57:27 hibernation exit, no NVRM errors. So the workaround works with both suspend paths.

    Totals: 6/6 with the reset (5 with UseKernelSuspendNotifiers=0, 1 with =1), and 0/4 without it when the TV is connected at power-on.

    If anyone else with a desktop that only has an NVIDIA GPU can try this, it would show whether it works beyond my machine. For NVIDIA: if my guess is right, the resume path probably needs to reset or reinitialise the display engine when the VBIOS has already turned it on after S4, the same way it does on a cold boot.

  5. atomicflag commented on Nov 6, 2026

    @atomicflag

    @a-kurczyn Tried your workaround - it worked. Thank you!

    edit: minimal example for anyone else on Archlinux:

    /usr/libexec/gpu-reset-before-resume.sh (executable):

    #!/bin/sh
    [ -e /sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67 ] || exit 0
    dev=/sys/bus/pci/devices/0000:01:00.0
    [ -e "$dev/driver" ] && exit 0
    [ -w "$dev/reset" ] || { echo "gpu-resume-reset: no reset interface, skipping" > /dev/kmsg; exit 0; }
    echo "gpu-resume-reset: resetting $dev (methods: $(cat "$dev/reset_method"))" > /dev/kmsg
    echo 1 > "$dev/reset" 2>/dev/null && echo "gpu-resume-reset: done" > /dev/kmsg
    exit 0

    /usr/lib/systemd/system/gpu-reset-before-resume.service:

    [Unit]
    Description=Reset NVIDIA GPU before hibernate resume
    DefaultDependencies=no
    Before=systemd-hibernate-resume.service
    ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
    
    [Service]
    Type=oneshot
    ExecStart=/bin/sh /usr/libexec/gpu-reset-before-resume.sh
    
    mkdir -p /etc/systemd/system/initrd.target.wants
    ln -s /usr/lib/systemd/system/gpu-reset-before-resume.service \
      /etc/systemd/system/initrd.target.wants/gpu-reset-before-resume.service

    /etc/mkinitcpio.conf — FILES array:

    FILES=(
      /usr/libexec/gpu-reset-before-resume.sh
      /usr/lib/systemd/system/gpu-reset-before-resume.service
      /etc/systemd/system/initrd.target.wants/gpu-reset-before-resume.service
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions