RTX 4060 - PC don't wake up after sleep (KDE)

I have setup my energy saving settings to go to sleep after 20 Minutes.
If the PC goes to sleep and I wake it up, I can see - on a LED at the PC, that he come up again… but the Screen stay black.

I have to hard-reset the PC to make it work again.

How can I debug, to find out, what the issue is?

BTW: The GPU is new, before I just used iGPU of intel i5 13th.

Operating System: Manjaro Linux
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.6.54-2-MANJARO (64-bit)
Graphics Platform: X11
Processors: 20 × 13th Gen Intel® Core™ i5-13600K
Memory: 31.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4060/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D98
System Version: 3.0

**INFO about PCI:** 

00:00.0 Host bridge: Intel Corporation Device a704 (rev 01)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, fast devsel, latency 0

00:02.0 Display controller: Intel Corporation Raptor Lake-S GT1 [UHD Graphics 770] (rev 04)
	DeviceName: Onboard - Video
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, fast devsel, latency 0, IRQ 148
	Memory at 6202000000 (64-bit, non-prefetchable) [size=16M]
	Memory at 4000000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 5000 [size=64]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

00:06.0 PCI bridge: Intel Corporation Raptor Lake PCIe 4.0 Graphics Port (rev 01) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 122
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: [disabled] [16-bit]
	Memory behind bridge: 82200000-822fffff [size=1M] [32-bit]
	Prefetchable memory behind bridge: [disabled] [64-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module (rev 01)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: fast devsel, IRQ 255
	Memory at 620312f000 (64-bit, non-prefetchable) [disabled] [size=4K]
	Capabilities: <access denied>

00:0a.0 Signal processing controller: Intel Corporation Raptor Lake Crashlog and Telemetry (rev 01)
	DeviceName: Onboard - Other
	Flags: fast devsel
	Memory at 6203110000 (64-bit, non-prefetchable) [size=32K]
	Capabilities: <access denied>
	Kernel driver in use: intel_vsec
	Kernel modules: intel_vsec

00:14.0 USB controller: Intel Corporation Raptor Lake USB 3.2 Gen 2x2 (20 Gb/s) XHCI Host Controller (rev 11) (prog-if 30 [XHCI])
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, medium devsel, latency 0, IRQ 126
	Memory at 6203100000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd
	Kernel modules: mei_me, xhci_pci

00:14.2 RAM memory: Intel Corporation Raptor Lake-S PCH Shared SRAM (rev 11)
	DeviceName: Onboard - Other
	Flags: fast devsel
	Memory at 6203128000 (64-bit, non-prefetchable) [disabled] [size=16K]
	Memory at 620312e000 (64-bit, non-prefetchable) [disabled] [size=4K]
	Capabilities: <access denied>

00:14.3 Network controller: Intel Corporation Raptor Lake-S PCH CNVi WiFi (rev 11)
	DeviceName: Onboard - Ethernet
	Subsystem: Intel Corporation Device 0094
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at 6203124000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

00:16.0 Communication controller: Intel Corporation Raptor Lake CSME HECI #1 (rev 11)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, fast devsel, latency 0, IRQ 150
	Memory at 620312d000 (64-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: mei_me
	Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation Raptor Lake SATA AHCI Controller (rev 11) (prog-if 01 [AHCI 1.0])
	DeviceName: Onboard - SATA
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 125
	Memory at 82300000 (32-bit, non-prefetchable) [size=8K]
	Memory at 82303000 (32-bit, non-prefetchable) [size=256]
	I/O ports at 5090 [size=8]
	I/O ports at 5080 [size=4]
	I/O ports at 5060 [size=32]
	Memory at 82302000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

00:1c.0 PCI bridge: Intel Corporation Raptor Lake PCI Express Root Port #1 (rev 11) (prog-if 00 [Normal decode])
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, fast devsel, latency 0, IRQ 123
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 4000-4fff [size=4K] [16-bit]
	Memory behind bridge: 82100000-821fffff [size=1M] [32-bit]
	Prefetchable memory behind bridge: [disabled] [64-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation Device 7a3c (rev 11) (prog-if 00 [Normal decode])
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, fast devsel, latency 0, IRQ 124
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: 3000-3fff [size=4K] [16-bit]
	Memory behind bridge: 81000000-820fffff [size=17M] [32-bit]
	Prefetchable memory behind bridge: 6000000000-6201ffffff [size=8224M] [32-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Device 7a06 (rev 11)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, fast devsel, latency 0

00:1f.3 Audio device: Intel Corporation Raptor Lake High Definition Audio Controller (rev 11)
	DeviceName: Onboard - Sound
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device ed98
	Flags: bus master, fast devsel, latency 32, IRQ 168
	Memory at 6203120000 (64-bit, non-prefetchable) [size=16K]
	Memory at 6203000000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

00:1f.4 SMBus: Intel Corporation Raptor Lake-S PCH SMBus Controller (rev 11)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: medium devsel, IRQ 18
	Memory at 620312c000 (64-bit, non-prefetchable) [size=256]
	I/O ports at efa0 [size=32]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801

00:1f.5 Serial bus controller: Intel Corporation Raptor Lake SPI (flash) Controller (rev 11)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: fast devsel
	Memory at 80800000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: intel-spi
	Kernel modules: spi_intel_pci

01:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. KC3000/FURY Renegade NVMe SSD E18 (rev 01) (prog-if 02 [NVM Express])
	Subsystem: Kingston Technology Company, Inc. KC3000/FURY Renegade NVMe SSD E18
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at 82200000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: nvme
	Kernel modules: nvme

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d98
	Flags: bus master, fast devsel, latency 0, IRQ 16
	I/O ports at 4000 [size=256]
	Memory at 82100000 (64-bit, non-prefetchable) [size=64K]
	Memory at 82110000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

03:00.0 VGA compatible controller: NVIDIA Corporation AD107 [GeForce RTX 4060] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Gigabyte Technology Co., Ltd Device 4109
	Flags: bus master, fast devsel, latency 0, IRQ 169
	Memory at 81000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 6000000000 (64-bit, prefetchable) [size=8G]
	Memory at 6200000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 3000 [size=128]
	Expansion ROM at 82000000 [virtual] [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

03:00.1 Audio device: NVIDIA Corporation Device 22be (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device 4109
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at 82080000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

You probably need to preserve the video memory:

https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend

If you’ve already done that, picom can also cause it (should you use picom). If that’s the case log into a tty and killall picom

Instead of hard resetting enable REISUB and use that instead:

EDIT:
Corrected command to kill picom, it was missing an l.

That’s helped, thank you.

I did the following Steps:

sudo nano /etc/modprobe.d/nvidia-power-management.conf

Add the line:

options nvidia NVreg_PreserveVideoMemoryAllocations=1
sudo mkinitcpio -P
sudo nano /etc/default/grub

Add nvidia-parameter to GRUB_CMDLINE_LINUX_DEFAULT :

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=6530cc25-576f-4bd4-b53f-07430073a66e udev.log_priority=3 nvidia_drm.modeset=1"

Run

sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo systemctl enable nvidia-suspend.service
sudo systemctl enable nvidia-hibernate.service
sudo systemctl enable nvidia-resume.service
sudo reboot

BTW: The hintw with REISUB is also a nice one, I didn’t know that before.
It is realy painfull for me when ever I have to do a hard-reset, as I know what might happend on a disk-crash.
Now I’m save with this. Thx.

1 Like

@dmt oh what a pity, it wasn’t the solution. Just before some minutes I had the exact same Problem again.

ps aux |grep picom return nothing, so I don’t use it.

Any other Ideas what the cause might be?

So to be clear, since you made the changes it usually wakes up ok, but not always?

Have you tried switching to a tty and back again?

Not right now. If it usually wakes up ok now, then it could be a separate issue.

You could try setting the temporary file path as mentioned in the link I posted. :man_shrugging:

options nvidia NVreg_TemporaryFilePath=/path/to/filesystem

Some relevant notes from that link:

  • The video memory contents are by upstream default saved to /tmp, which is a tmpfs. NVIDIA recommends using an other filesystem to achieve the best performance. This is also required if the size is not sufficient for the amount of memory. Arch Linux thus sets nvidia.NVreg_TemporaryFilePath=/var/tmp by default on supported drivers.
  • The chosen file system containing the file needs to support unnamed temporary files (e.g. ext4 or XFS) and have sufficient capacity for storing the video memory allocations (i.e. at least 5 percent more than the sum of the memory capacities of all NVIDIA GPUs). Use the command nvidia-smi --query-gpu=memory.total --format=csv,noheader,nounits to list the memory capacities of all GPUs in the system.

EDIT:

What software do you have running when you sleep?

Some software can interfere with putting a computer to sleep, and some may prevent waking up successfully.

A post was split to a new topic: Black screen after monitor turns off