From 3918f66bbba26eea89eaec9bbb71a253be5e3576 Mon Sep 17 00:00:00 2001 From: Inga Date: Fri, 2 Sep 2022 11:22:30 +0200 Subject: [PATCH] suspend is working now --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ad7dc9..e7cc362 100644 --- a/README.md +++ b/README.md @@ -215,10 +215,22 @@ doas apk install element-desktop ### Sleep -Laptop goes to sleep after some idle period. When it wakes up, the root fs is readonly, meaning that I have to restart the laptop. +With default settings, laptop goes to sleep after some idle period. When it wakes up, the root fs is readonly, meaning that I have to restart the laptop. Adding `acpiphp.disable=1` and `pcie_aspm=off` to grub config does not solve the issue. +Disabling S0ix in UEFI only made things worse: even though `cat /sys/power/mem_sleep` reported that S3 (deep) is default, +after system goes to sleep it is impossible to wake it up, it does not react to key or power button presses. + +What did solve the issue was: +* reenable S0ix in BIOS, +* `doas apk add linux-firmware-amdgpu`, +* editing `GRUB_CMDLINE_LINUX_DEFAULT` in `/etc/default/grub` to add the following options: +`acpiphp.disable=1 pcie_aspm=off acpi_osi='Windows 2020' iommu=soft`. + +Now after waking up (after being suspended with `doas pm-suspend`) root fs is still readwrite. +But network disappears sometimes after wakeup. + ### WiFi At the moment Linux kernel does not support Qualcomm NFA725.