I have Fedora 35 installed on my HP Spectre x360 13t-aw200. I suspected that it wasn’t suspending correctly because the battery would often drain 25%-30% overnight. After snooping around a bit, I found this, which was somewhat suspicous (removed some unrelated log entries, after closing my laptop hood at 8:35am and opening it at 9:06am:
% sudo systemctl status sleep.target suspend.target
○ sleep.target - Sleep
Loaded: loaded (/usr/lib/systemd/system/sleep.target; static)
Active: inactive (dead)
Feb 21 08:35:02 mies systemd: Reached target Sleep.
Feb 21 09:06:29 mies systemd: Stopped target Sleep.
○ suspend.target - Suspend
Loaded: loaded (/usr/lib/systemd/system/suspend.target; static)
Active: inactive (dead)
Feb 21 09:06:29 mies systemd: Reached target Suspend.
Feb 21 09:06:29 mies systemd: Stopped target Suspend.
It looks like systemd threw it into sleep state where it remained until I opened the laptop, when it quickly entered and exited suspend state. I then tried to enter “Suspend” from the Gnome menu item in the upper right and it demonstrated the same behavior.
I’m guessing this means it’s not reaching suspend.
Just in case, the only non-standard aspect of my installation is that both my root and swap partitions are LUKS encrypted.
Thanks in advance for any insight you might be able to share!
Would you like to share the result of journalctl -b 0 and post it on pastebin.com or gist.github.com or any other services (there limited character can be shares here) then share the link here when it wake up after failed to sleep? May be it will give us a start to find out what’s happen.
I updated my boot options via grubby and although it booted with the “mem_sleep_default=deep” option (confirmed in dmesg), the problem persists. /sys/power/mem_sleep still contains [s2idle] and not [s2idle] deep.
Here is a gisthub of the most recent journalctl -b 0 after closing/opening cover.
The other things, may be you want to check your bios if there any option in power management to enable the deep sleep.
About suspend to disk (hibernate), there should be lot of tutorial available on the internet but I’m afraid it will bring another problem since it not enabled by default (and I believe most distros also disable it).
My suggestion, stick with current config and adapt the your workflow. Also try to upgrade regularly. May be in the future there an upgrade related to your system ACPI.
I’d like to revisit this. First, I was able to get hibernate working reliably which works for some but not all of my needs. I’d also really like to get this s2idle working as well as possible.
I do believe that something is wrong. For comparison, I booted into Windows 10 to see how the battery degrades when it sleeps. I kept opening/closing the laptop so it didn’t get into hibernate. By comparison, the battery emptied VERY slowly compared to what happens with linux, two to five times more slowly.
So where I am now is wondering if there is any way to debug what is actually happening to the processor and processes while in s2idle. For instance, is it possible that it’s waking up or perhaps falsely going into s2idle even if the logs say it is?
I have the same issue but I’m on F36. My machine (HP Spectre x360 Convertible 14-ea1xxx) has optane (sucks, I know) and my BIOS does not have the option to switch to AHCI from RAID (doubly sucks, I know).
I also am not able to enable s2idle deep even after adding it as a kernel param.
Babby, to enable hibernate, I simply followed the instructions found on this page.
To anyone out there, we both can really use help with this. Hopefully someone is listening. One thing I’m hoping: I read this article about the 5.19 kernel and updates to ACPI and I’m hoping that MAYBE something was fixed inadvertently. I guess that tells you how desparate I am for help