Laptop Won't Wake From Suspend
I am working with an Lenovo Ideapad C940 Yoga. It has a 512gb ssd, 16gb mem and i7 intel processor. It dual boots with Win 10 and Fedora 38 Cinnamon with standard ext4 partitions including /, /home, /swap.
Following is some information generated by lsblk: Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS Code:
bash-5.2$ /sbin/lspci I am trying to correct two seemingly related problems. Under mem_sleep=s2idle, power use during sleep (suspend) is in the range of 6% per hour. Attempting to correct that, I have changed to mem_sleep=deep (see GRUB_CMDLINE entry below): After inserting the GRUB-CMDLINE statement into /etc/default/grub, I ran: sudo grub2-mkconfig -o /etc/grub2-efi.cfg and then re-booted GRUB currently looks like this: Code:
GRUB_TIMEOUT=5 Code:
cat /sys/power/mem_sleep When installing F38, I understood that a swap partition is required for suspend or hibernate and for 12-16 gb of memory, about 10gb is satisfactory. I’m not sure this is correct, nor am I sure that having a swap partition and zram at the same time is proper. I have run the command “journal -b” following a lid closure and re-boot. I’ve looked for clues toward the end of the file as to what is going on but there are thousands of lines which mean little to me. I see nothing regarding "suspend" in that timeframe. I can provide a copy of as many lines as might be useful to you but I will need some guidance as to what to look for. I found on this suggestion on this forum from a year ago: "Briefly, the issue was caused by problems with ASPM resulting in the system not being able to properly wake up the SSD after suspend. To fix, "pcie_aspm=off" was added to the kernel parameters in order to explicitly disable ASPM." It does not explain how to do this and I would be going blind and dumb to proceed on my own. So, I would like some advice on this before proceeding. Any advice would be appreciated. |
Quote:
|
Certainly worth a try. Does everything else in GRUB loo OK?
|
Deep sleep may have to be enabled in BIOS - check your ACPI/power BIOS settings, it is usually called 'Suspend to RAM' or STR there (which makes rather obvious that it doesn't use swap and cannot be affected by swap settings). If your notebook has a sleep LED, does it behave as expected when suspended?
|
First. To JailBait, No. Increasing the size of of Swap did not make anything better.
To lvm, I checked the BIOS again to make sure and, no, there is no setting regarding ACP/power, sleep, or hibernation. This is a relatively new (2021) Lenovo and the BIOS is apparently Lenovo's with their label on the BIOS page and is very limited in what settings it offers. It is not the more comprehensive "blue text on grey background" one that I am used to seeing. I have read that there are boot up key combinations that will open the "advanced" BIOS but none of those combinations work for me. Also, while checking, I noticed that under "storage" settings the "mode" is still at RTS which is a setting used by Optane. I thought when I disabled Optane that I also reset the mode to AHCI. Apparently I didn't and perhaps that has an effect on my current issues? However, If I select it to make the change I get a warning that the disk will be erased which would mean re-installing both Windows and Fedora. I'm, of course, willing to do that if it will result in a fix. Any advice on that?lv o Update: lvm, Sorry. I forgot to answer your last question. No. The power indicator light does not flash which is normal during sleep. It stays steady on. |
I have found some different processes to change RST to ACHI in my BIOS. Does anyone have an opinion as to which is the best:
Quote:
Quote:
Quote:
|
It appears that I have found a solution to my suspend issues (actually it wasn't suspending at all but just locking up after turning off the screen). A while back, I installed Fedora 38 Cinnamon spin. After using it a while, I decided to try the Gnome desktop and installed it along with Cinnamon. After wasting a lot of time and questions trying to fix the suspend issue it finally occurred to me that there could be some issues with the combination after trying to do some configurations of Gnome. Anyway, this evening I reinstalled the Cinnamon spin and removed every remnant of Gnome I could find from my dot files. It now seems to be working perfectly; close the lid and it goes right to sleep and open it and it wakes right up. Hooray! And, the little white light on the power button winks very nicely when it is asleep.
I hope this helps someone. |
All times are GMT -5. The time now is 09:59 PM. |