Hibernate is working fine.
Sadly tough, when hibernating, my PC directly restarts.
This is my CPU: 11th Gen Intel i7-1165G7 (8) @ 4.700GHz and GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics].
Hibernate is working fine.
Sadly tough, when hibernating, my PC directly restarts.
This is my CPU: 11th Gen Intel i7-1165G7 (8) @ 4.700GHz and GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics].
As it is written here
hibernate writes the contents of the ram to disk and reaches a zero battery consumption state. In my case led on Power button is OFF.
I could be wrong.
I made a swap partition same size as the RAM and mounted in fstab
sudo mkdir /etc/sytemd/sleep.conf.d/
sudo cp /etc/systemd/sleep.conf /etc/systemd/sleep.conf.d/
grep -v '^#' /etc/systemd/sleep.conf.d/sleep.conf
[Sleep]
AllowSuspend=yes
AllowHibernation=yes
AllowSuspendThenHibernate=yes
AllowHybridSleep=yes
SuspendState=freeze
HibernateMode=platform
HibernateOnACPower=yes
in Power management selected When sleeping, enter: Hybrid sleep
and used Sleep which is with non-zero consumption (blinking led) w fast resume though login.
For me it’s much ado about nothing. Sorry if this does not pass the scientific test.
I think
sudo cp /etc/systemd/sleep.conf /etc/systemd/sleep.conf.d/
is unnecessary, as sleep.conf is already used.
I have a swap which exceeds my ram size.
Hibernation works. The only issue, when I hibernate, my PC directly restarts and resumes hibernation instead of power off.
As I read in the header of sleep.conf
systemd-analyze cat-config systemd/sleep.conf
tells what is valid. I see the uncommented lines as well.
If I initiate a Hibernate by a shortcut a shutdown is done and does not restart by itself.
Pressing power on Grub appears. Having booted it conpains for swap and does not resume…
journalctl -b 0 | grep -i hibern
febr 17 17:59:14 a-81w8 kernel: PM: hibernation: Registered nosave memory: [mem 0xfee01000-0xffffffff]
febr 17 17:59:14 a-81w8 systemd-hibernate-resume-generator[98]: Reported hibernation image: ID=endeavouros kernel=6.12.13-1-lts UUID=7f923590-fba5-4292-944b-67f96ac418fc offset=0
febr 17 17:59:14 a-81w8 systemd-hibernate-resume-generator[98]: HibernateLocation system identifier doesn't match currently running system, would not resume from it.
febr 17 17:59:19 a-81w8 systemd[1]: Starting Clear Stale Hibernate Storage Info...
febr 17 17:59:19 a-81w8 systemd[1]: Finished Clear Stale Hibernate Storage Info.
febr 17 17:59:19 a-81w8 systemd-hibernate-resume[323]: Reported hibernation image: ID=endeavouros kernel=6.12.13-1-lts UUID=7f923590-fba5-4292-944b-67f96ac418fc offset=0
febr 17 17:59:19 a-81w8 systemd-hibernate-resume[323]: Successfully cleared HibernateLocation EFI variable.
Sadly that didin’t help.
[Sleep]
AllowSuspend=yes
AllowHibernation=yes
AllowSuspendThenHibernate=yes
AllowHybridSleep=yes
SuspendState=mem standby freeze
HibernateMode=platform shutdown
#MemorySleepMode=
#HibernateDelaySec=
HibernateOnACPower=yes
#SuspendEstimationSec=60min
Also it broke hibernate. It is not resuming anymore. Thus I will comment out the entries.
@huebi ,
With me
swapon --show
NAME TYPE SIZE USED PRIO
/dev/sdb6 partition 10,1G 257,8M -2
This sdb6 swap is not mounted in fstab
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=24f68a84-5079-47d9-a9e9-36c91aad9d28 / ext4 noatime 0 1
UUID=7f923590-fba5-4292-944b-67f96ac418fc none swap sw 0 0
manually set and tested
resume=UUID=7f923590-fba5-4292-944b-67f96ac418fc
systemctl hybrid-sleep
I wait 20-30 sec and then only power led is blinking at 0.25 Hz
Restarting with power button stands up less than 5 sec, login screen
and all is as they were left.
Search with / in
journalctl -b 0
for PM: and it shows how much memory was allocated and copied.
So thank ArchWiki hybrid-sleep seems to be working here.
OS: EndeavourOS x86_64
Host: 81W8 (Lenovo IdeaPad S145-15IIL)
Kernel: Linux 6.12.13-1-lts
Packages: 1107 (pacman), 3 (snap)
Shell: bash 5.2.37
DE: KDE Plasma 6.3.0
WM: KWin (Wayland)
WM Theme: Klassy
Memory: 2.81 GiB / 7.32 GiB (38%)
Swap: 257.58 MiB / 10.06 GiB (3%)
@eso
I think it looks fine:
❯ bat /etc/fstab
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: /etc/fstab
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ # /etc/fstab: static file system information.
2 │ #
3 │ # Use 'blkid' to print the universally unique identifier for a device; this may
4 │ # be used with UUID= as a more robust way to name devices that works even if
5 │ # disks are added and removed. See fstab(5).
6 │ #
7 │ # <file system> <mount point> <type> <options> <dump> <pass>
8 │ UUID=C06D-2024 /efi vfat fmask=0137,dmask=0027 0 2
9 │ /dev/mapper/luks-8d2b5327-fd24-44d3-933c-31a6ed41fab9 / ext4 noatime 0 1
10 │ /dev/mapper/luks-a64b0f0d-7362-4290-be8a-aa89a8d857e2 swap swap defaults 0 0
11 │ tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────
❯ swapon --summary
Filename Type Size Used Priority
/dev/dm-1 partition 53944156 9571892 -2
Hibernate works. My only issue is, that when I hibernate it directly restarts instead of power off.
@huebi
I threw away my test Plasma 6.
Reinstalled Mercury online with manual partitioning ext4.
So the swap partition was automatically recognized.
In Power management the only modification:
When sleeping, enter : Hybrid sleep
systemctl hybrid-sleep
or a shortcut to Sleep does the same:
in 45 sec the screen is Off and no blinking led on power button (Ideapad)
Pressing any key asks password and in no time I can carry on this post.
journalctl -b 0
...
febr 19 20:14:58 a-81w8 kernel: PM: hibernation: Wrote 2543548 kbytes in 34.59 seconds (73.53 MB/s)
febr 19 20:14:58 a-81w8 kernel: PM: Image size after compression: 942438 kbytes
febr 19 20:14:58 a-81w8 kernel: PM: S|
febr 19 20:14:58 a-81w8 kernel: printk: Suspending console(s) (use no_console_suspend to debug)
febr 19 20:14:58 a-81w8 kernel: sd 2:0:0:0: [sdc] Synchronizing SCSI cache
febr 19 20:14:58 a-81w8 kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
febr 19 20:14:58 a-81w8 kernel: ata1.00: Entering standby power mode
Have not touched any config files. External grub is used.