Debian 12 + backports + NVIDIA 550.40.07 sleep issues

Hi there
Everything works perfectly on my machine except one thing that is annoying me - every time I want to put my laptop to sleep I have to disconnect the external monitor from it, because the HDMI output prevents the machine to go to sleep.

Linux 6.5.0-0.deb12.4-amd64 x86_64

NVIDIA-SMI 550.40.07 Driver Version: 550.40.07

Please suggest what could be the culprit, laptop sleep mode is working perfectly without a plugged in monitor.
I also tried to disable the monitor via GNOME settings and it didn’t do much. Sleep only works when a HDMI cable is not connected.

What exactly is happening when hdmi is connected? How are you starting suspend?
Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

Hi, thanks for the reply
Sleep is initiated via the GNOME menu

image

Basically the laptop sleeps for like a split second and wakes up
RTX 4060 + Ryzen 9 7945HX (using only the NVIDIA GPU, disabled the integrated one in BIOS)

Here is the bug report
nvidia-bug-report.log.gz (661.8 KB)

At least there’s no crash preventing suspend, it’s suspending cleanly and then immediately resumes.
Please check
acpitool -w
whether the nvidia gpu 01:00.0 is set as wake-up source and try disabling it using acpitool -W

image

doesn’t seem to be the case, uploaded the lspci output

lspci.txt (2.9 KB)

That’s not really much, does cat /proc/acpi/wakeup give you some more?
Maybe
sudo dmidecode | grep “Wake-up”
will yield some info about the wake up source.

this is all I get

Odd, not even the lid switch is listed. Does
cat /sys/bus/pci/devices/0000:01:00.0/power/wakeup
output anything else but “disabled”?

yep, disabled

hi,
any updates on how to fix it?

No, not really. To find the acpi trigger you could install and run acpi_listen and then unplug/plug the hdmi cable to check what signal gets emitted.

Sorry for the late reply, I didn’t have much time these weeks
I bought a USB C to DisplayPort adapter, since on HDMI the system hanged when I run the acpi_listen and sleep the laptop

With the adapter I managed to see what was causing the issue

Seems like the sleep signal is actually waking up the PC
What can be done here?

Don’t really know, maybe related to “modern sleep”? e.g.
https://unix.stackexchange.com/questions/741521/linux-wakes-up-from-sleep-on-power-jack-plugging-or-unplugging