SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I prefer hibernation on my laptop. Just close the lid, wait for it to finish, unplug, and put it away. When ready to start again, take it out, plug it in, turn it on, wait a few seconds and bingo back to business. I do this every day. Only time I don't is when updating Slackware and I need to reboot.
Some systems support hybrid suspend, which does the work of hibernation but suspends the system. If you restart the laptop before it runs out of power, it is as if you merely suspended. Otherwise, the system acts as if you had hibernated.
EDIT: the command...
Code:
pm-is-supported --suspend-hybrid && echo "hybrid suspend is supported" || echo "your system doesn't support hybrid suspend"
...should tell you if it supported on your (presumably) laptop.
I tested hybrid-suspend on my old HP-635 (which believes that hybrid suspend is supported, according to the code snippet), but I didn't see the laptop hibernate after 15 minutes. I'll admit that I didn't restart after following the instructions at the link I gave, but the instructions there didn't say that you needed to do so. I also wasn't running on battery power during the test, so that might be a factor as well.
Or the instructions at the link simply don't do the right thing.
The command pm-suspend-hybrid has been around for a loooong time, but that requires using the command line to kick it off.
And root, maybe. But that's no issue really, I'll try this out later today. One can always execute a script to lock the x session before hibernating so the machine is protected on wake up. But this is not needed if LILO is password-protected.
I tested hybrid-suspend on my old HP-635 (which believes that hybrid suspend is supported, according to the code snippet), but I didn't see the laptop hibernate after 15 minutes. I'll admit that I didn't restart after following the instructions at the link I gave, but the instructions there didn't say that you needed to do so. I also wasn't running on battery power during the test, so that might be a factor as well.
Or the instructions at the link simply don't do the right thing.
So, running under battery power appeared to do the right thing.
I opened various windows (terminal and firefox), unplugged the laptop, closed the lid, and walked away.
After a day, I plugged the laptop back into power (it's at 6% as I type this) and hit the power button. On restart, I got the environment that I had when I closed the lid.
As someone who had to claw their way to a working hibernation function, I'm always surprised that people don't really understand what hibernation is for. Being able to return to a workflow and not setup everything as you would from a cold boot, is a time saver. It is suspend without the power drain.
I'm using a partition for mine, but I wonder if anyone could point me to using a swap file instead? I'd prefer that myself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.