(Nvidia) system freezes when called to suspend since Linux 6.7.0 on Nvidia hardware with modeset
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| linux (Ubuntu) |
New
|
Medium
|
Vinicius Peixoto | ||
Bug Description
== Summary ==
On my computer with an ancient Nvidia chipset (Geforce 7025/nForce 630a), running `sysctl suspend` (or suspending from the Gnome menu) causes the system to start suspending, but it freezes halfway, leaving fans and hard drives spinning. There's no way to resume from this frozen state apart from forcing a reboot (with a hardware reset button/poweroff).
== Steps to reproduce ==
* boot with modeset enabled
* run `sysctl suspend`
== What I expect to happen ==
For the system to suspend, shutting down all fans and hard drives.
== What happens ==
The system begins to suspend, but freezes halfway, leaving the display on and fans and hard drives spinning, but the keyboard unresponsive.
== Workaround ==
Disable kernel modesetting by adding "nomodeset" to the kernel commandline.
== Affected kernels ==
Prior to upgrades the system was running HWE kernel 5.15.0, so I tried the 5.15 series, and found that I could now suspend and wake the machine again just as before. I worked my way up the versions:
* 5.15.50: unaffected
* 5.15.165: unaffected
* 5.19.17: unaffected
* 6.4.0: unaffected
* 6.6.0: unaffected
* 6.6.48: unaffected
* 6.7.0: first to fail
I also tried the current newest mainline kernel 6.10.7, and the issue is still present there.
== Background ==
I have an old desktop machine now functioning as a NAS, and yesterday I upgraded it from Ubuntu 20.04 first to 22.04, and then all the way up to 24.04. The upgrade went smoothly, and this is the only issue I've come across since.
In the BIOS settings of the affected machine there are three "suspend mode" alternatives to choose from: "S1 (POS) only", "S3 only" and "Auto". I've always had it on "Auto", but with this issue I also tested both "S1 only" and "S3 only", with no effect.
The issue is also present when booting from the installation media (USB) into a live environment.
I've previously upgraded my laptop to 24.04, and there suspending still works as it did before the ugprade, so this is probably hardware-specific; the laptop is a modern one with all-Intel hardware.
Googling around, I could smelled hints of this being once again related to the troublesome Nvidia chipset, so I tried nomodeset with the stock 6.8.0 kernel (6.8.0-41 currently) and voilà! Suspend and wake were working again.
Well, except for the display, which stayed black. But I couldn't say if this was the way it was before, because the NAS is normally running headless.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-
ProcVersionSign
Uname: Linux 6.8.0-41-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version k6.8.0-41-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/timer', '/dev/snd/seq', '/dev/snd/
CRDA: N/A
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card0.Amixer.
CasperMD5CheckR
Date: Sat Aug 31 14:16:51 2024
HibernationDevice: RESUME=
MachineType: System manufacturer System Product Name
ProcFB: 0 simpledrmdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 20240318.
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
SourcePackage: linux
UpgradeStatus: Upgraded to noble on 2024-08-30 (1 days ago)
dmi.bios.date: 08/23/2010
dmi.bios.release: 8.14
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1804
dmi.board.
dmi.board.name: M2N68-AM Plus
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: To Be Filled By O.E.M.
dmi.product.
dmi.sys.vendor: System manufacturer
mtime.conffile.
| Changed in linux (Ubuntu): | |
| assignee: | nobody → Vinicius Peixoto (vpeixoto) |
| tags: | added: kernel-daily-bug |

Hi Jani,
Thanks for taking the time to submit the bug report. I suspect this is happening due to a kernel panic in the nouveau driver (which I can't reproduce on my Nvidia GPUs). Can you please try booting without `nomodeset` to reproduce the issue when suspending, and then reboot (with `nomodeset`) in order to collect the logs with
journalctl --boot=-1 > log.txt
However, I suspect the panic log might not make it to the disk in time (since you're halfway through the suspend process), so it would be great if we had access to a serial console. Do you happen to have a serial port PCIe card, or an RS232-USB adapter, by any chance?
Also, I noticed you tried booting 6.10.7 (latest upstream stable, I'm assuming), can you also try 6.11-rc6 [1][2], just in case?
Thanks,
Vinicius
[1] https:/ /wiki.ubuntu. com/Kernel/ MainlineBuilds /kernel. ubuntu. com/mainline/ ?C=N;O= D
[2] https:/