Bug 218106 - System will crash when trying to wake up from second suspend
Summary: System will crash when trying to wake up from second suspend
Status: RESOLVED CODE_FIX
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: AMD Linux
: P3 low
Assignee: acpi_power-sleep-wake
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-05 19:24 UTC by yofail2
Modified: 2023-11-22 02:25 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmidecode system information (2.12 KB, text/plain)
2023-11-05 19:24 UTC, yofail2
Details
kludge fix for my laptop (411 bytes, patch)
2023-11-06 00:33 UTC, yofail2
Details | Diff
nvs patch to sleep.c for the m6 sleekbook/ m6 k010 (839 bytes, patch)
2023-11-22 02:23 UTC, yofail2
Details | Diff

Description yofail2 2023-11-05 19:24:31 UTC
Created attachment 305370 [details]
dmidecode system information

11/5/2023

Total carbon copy of the following bug in terms of symptoms described, warning displayed after needing to hard restart after failed second suspend, and solution, but with a different laptop vendor and an A10-5745m APU instead of the A6-6310: https://bugzilla.kernel.org/show_bug.cgi?id=189431

The problem occurred on the latest stable patch of Debian 12 at the time of writing, as well as Arch Linux using the latest lts kernel at the time of writing, mainline Arch kernel 6.5.9 as well as the testing Arch 6.6 kernel.
 
changing linux/drivers/acpi/sleep.c

by removing

if (dmi_get_bios_year() >= 2012)
   acpi_nvs_nosave_s3();

from the acpi_sleep_dmi_check() method
as a kludge to enable nvs memory during s3 for my laptop and building + installing completely fixed the issue after several days of failed attempts at fixes. Evidentially, the HP envy m6 sleekbook needs nvs memory despite being manufactured after 2012. Bios is at the latest available version provided by HP.

I'll include part of my dmidecode to help better identify my exact laptop model.
Comment 1 yofail2 2023-11-06 00:33:11 UTC
Created attachment 305371 [details]
kludge fix for my laptop

eh
Comment 2 yofail2 2023-11-22 02:23:42 UTC
Created attachment 305457 [details]
nvs patch to sleep.c for the m6 sleekbook/ m6 k010

Better non-kludge patch, in the exact same style as the already existing patch in sleep.c for the Lenovo G50-45.

Note You need to log in before you can comment on or make changes to this bug.