Debian 11 Suspend problems

My debian 11 with an nvidia GeForce RTX 2070 SUPER graphics card started to have suspend problem (when hitting the suspend button), automatic suspend continued to work.

My current workaround is:

Add this line to /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="text quiet init_on_alloc=0 intel_iommu=off"

No sure if init_on_alloc or intel_iommu=off would work alone

  1. open terminal: sudo vim /etc/default/grub
  2. go to: GRUB_CMDLINE_LINUX=“ ” and add to: GRUB_CMDLINE_LINUX=“init_on_alloc=0”
  3. save and exit
  4. sudo update-grub
  5. reboot pc

Ref: https://forums.debian.net/viewtopic.php?t=149965