Subject: bug#801: Suspend/wake problem: screens do not come back

From: tempforever <[email-masked]>
Date: Thu, 26 Oct 2023 09:50:21 -0400

Package: xserver-xorg-core
Version: 2:21.1.7-3devuan2

When I use pm-suspend with this version of xserver-xorg-core, when I
later wake the computer up, the screens do not come back on (no video
signal).  This behavior did not occur on the previous version
2:21.1.7-3devuan1 which I have downgraded back to.  This happens every
time, not intermittently, so hopefully I'll be able to help debug the
problem and get it sorted out.  Other info that may be useful:
arch: x86_64
desktop: xfce
video card: nvidia geforce gtx 650
video driver: nvidia 470.199.02
devuan: 5 (daedalus)
kernel: 6.1.0-13-amd64

---

From: tempforever <[email-masked]>
Date: Thu, 23 Nov 2023 17:59:22 -0500

Package: xserver-xorg-core
Version: 2:21.1.7-3+deb12u2devuan1

Please close this bug report.  It seems to have been related to certain
kernel cmdline options I had in place; removing them resolved the issue.
 I have upgraded xserver-xorg-core on other systems and had no problem
with suspend/resume.

---

From: Hendrik Boom <[email-masked]>
Date: Thu, 23 Nov 2023 20:26:39 -0500

>  I have upgraded xserver-xorg-core on other systems and had no problem

It could be useful to others to post a description of those kernel command-line options in the bug tracker before closing the bug.

-- hendrik

---

From: tempforever <[email-masked]>
Date: Thu, 23 Nov 2023 21:22:22 -0500

> It could be useful to others to post a description of those kernel command-line options in the bug tracker before closing the bug.
I previously had:
GRUB_CMDLINE_LINUX_DEFAULT="quiet modprobe.blacklist=nouveau
acpi_enforce_resources=lax nordrand ipv6.disable=1 apparmor=0
amd_iommu=on iommu=pt"

with these options, my video was not coming back correctly upon resume
after suspend with the recent xserver-xorg-core updates.

From my notes, I had added "acpi_enforce_resources=lax" for an earlier
kernel, to work with X570 chipset sensors
kernel 5.9 was giving a warning about RDRAND, so I had added "nordrand"
at that point.
I had been experimenting with some iommu things previously (which I am
not doing anymore), so I had added "amd_iommu=on" and "iommu=pt"

My current cmdline is:
GRUB_CMDLINE_LINUX_DEFAULT="quiet modprobe.blacklist=nouveau
ipv6.disable=1 apparmor=0"

with these options, my video is correctly coming back upon resume after
suspend, and with the recent xerver-xorg-core updates.  I am not having
problems with sensors being detected or RDRAND warnings.

If it would be of any actual help, I could re-enable those options
one-at-a-time to see which one(s) cause the problem, but as it is I
don't need any of them anymore and am satisfied to leave them all out.