{"id":7534,"date":"2024-08-31T14:25:47","date_gmt":"2024-08-31T11:25:47","guid":{"rendered":"https:\/\/mummila.net\/kommentit\/?p=7534"},"modified":"2024-08-31T14:25:47","modified_gmt":"2024-08-31T11:25:47","slug":"nvidia-system-freezes-when-called-to-suspend-since-linux-6-7-0-on-nvidia-hardware-with-modeset","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2024\/08\/31\/nvidia-system-freezes-when-called-to-suspend-since-linux-6-7-0-on-nvidia-hardware-with-modeset\/","title":{"rendered":"(Nvidia) system freezes when called to suspend since Linux 6.7.0 on Nvidia hardware with modeset"},"content":{"rendered":"<p>== Summary ==<br \/>\nOn 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&#8217;s no way to resume from this frozen state apart from forcing a reboot (with a hardware reset button\/poweroff).<\/p>\n<p>== Steps to reproduce ==<br \/>\n* boot with modeset enabled<br \/>\n* run `sysctl suspend`<\/p>\n<p>== What I expect to happen ==<br \/>\nFor the system to suspend, shutting down all fans and hard drives.<\/p>\n<p>== What happens ==<br \/>\nThe system begins to suspend, but freezes halfway, leaving the display on and fans and hard drives spinning, but the keyboard unresponsive.<\/p>\n<p>== Workaround ==<br \/>\nDisable kernel modesetting by adding &#8221;nomodeset&#8221; to the kernel commandline.<\/p>\n<p>== Affected kernels ==<br \/>\nPrior 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:<\/p>\n<p>* 5.15.50: unaffected<br \/>\n* 5.15.165: unaffected<br \/>\n* 5.19.17: unaffected<br \/>\n* 6.4.0: unaffected<br \/>\n* 6.6.0: unaffected<br \/>\n* 6.6.48: unaffected<br \/>\n* 6.7.0: first to fail<\/p>\n<p>I also tried the current newest mainline kernel 6.10.7, and the issue is still present there.<\/p>\n<p>== Background ==<br \/>\nI 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&#8217;ve come across since.<\/p>\n<p>In the BIOS settings of the affected machine there are three &#8221;suspend mode&#8221; alternatives to choose from: &#8221;S1 (POS) only&#8221;, &#8221;S3 only&#8221; and &#8221;Auto&#8221;. I&#8217;ve always had it on &#8221;Auto&#8221;, but with this issue I also tested both &#8221;S1 only&#8221; and &#8221;S3 only&#8221;, with no effect.<\/p>\n<p>The issue is also present when booting from the installation media (USB) into a live environment.<\/p>\n<p>I&#8217;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.<\/p>\n<p>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\u00e0! Suspend and wake were working again.<\/p>\n<p>Well, except for the display, which stayed black. But I couldn&#8217;t say if this was the way it was before, because the NAS is normally running headless.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s no way to resume from this frozen state apart from forcing a reboot (with a hardware reset button\/poweroff).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[9863,2679],"class_list":["post-7534","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-nvidia","tag-ubuntu","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=7534"}],"version-history":[{"count":12,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7534\/revisions"}],"predecessor-version":[{"id":7547,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7534\/revisions\/7547"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=7534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=7534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=7534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}