Hello world,
Some times the power gets cut off from my laptop to not kill the battery. I have Arch zen and XFCE, I tried suspend but that is S3, so all the data is lost when the battery dies. I tried the hibernate option in the power management but that just shuts down the laptop.
Also would be cool if it could automatically go to hibernate after x time in suspended mode.
Alvast bedankt
Need more information. What is your laptop model and CPU. Some systrms have known ACPI issues and thus cannot do standby/hybernate unkess you blacklist stuff ir build dkms modules.
Have you read through the hibernate docs?
https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation
That’s the first step for debugging these things.
1 Like
I had actually forgotten to put the resume hook in my mkinitcpio.conf file.
Now my sleep works 
Thanks!
2 Likes
Did i just hit you with splash damage for linux fixes? 
1 Like
Yea, sorry, I forgot ro include.
Lenovo T440p and i5-4300M
I did read that but didn’t get much of it. I have a swap space setup and I always create one double the size of the DRAM.
Good, that’s the primary requirement.
Well, I’m not really in a position to walk you through the entire thing. What didn’t you understand?
Generally, you need to do the following:
- ensure your swap file/partition is large enough
- make sure
resume hook is enabled in initramfs
- make sure the initramfs knows where to find the swap file/partition you’re hibernating to.
The doc above verbosely discusses those three (and more) activities.
https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Intel_Rapid_Start_Technology_(IRST)
Might be worth looking into. I haven’t actually played with this tech though, so I can’t really speak to it.
1 Like