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'm a big fan of suspend, but I've worked out that by adding
Code:
append="resume=/dev/nvme0n1p2"
to my lilo.conf [the location of my swap partition] I can get resume from hibernate to work under Xfce. However, this still has to load the kernel and, timing a resume from hibernate vs a normal restart is only an 11 second difference to desktop [53 seconds vs 64 seconds].
Is there any point in hibernating when there's only an 11 second difference?
I never hibernate. If someone tries to convince me that hibernation works well in Linux, please don't. I just always turn off my laptop before putting it in its bag.
I stopped hibernation a while ago. With SSDs, it made a huge difference in boot speed. My drive is encrypted (requirement), so it's not quite as fast as 11 seconds
I am convinced that hibernate works well for me. Close the lid on the netbook and put it in my bag. Open the next day, power on and back to where I was, with battery power maintained. Suspend drains battery power on this device.
I am convinced that hibernate works well for me. Close the lid on the netbook and put it in my bag. Open the next day, power on and back to where I was, with battery power maintained. Suspend drains battery power on this device.
I remember with my netbook a full power on/restart didn't take more than about 65-70 seconds with the generic kernel. And that's a slow machine. My argument is that hibernating, although it works, is next to pointless if it only saves about ten seconds of time. Unless, of course, one doesn't like closing all of one's applications.
I remember with my netbook a full power on/restart didn't take more than about 65-70 seconds with the generic kernel. And that's a slow machine. My argument is that hibernating, although it works, is next to pointless if it only saves about ten seconds of time. Unless, of course, one doesn't like closing all of one's applications.
The main point is being able to pick up where you left off, not having a faster boot time. Suspend does that too, but it drains the battery. Hibernation doesn't work on my laptop for some reason, sadly, but I never bothered trying to figure out why. (I wonder if the lilo boot flag you posted would work for me?)
There is also hybrid suspend/hibernate, which suspends first and then hibernates after awhile to save the battery.
Last edited by montagdude; 07-29-2019 at 07:42 AM.
Hibernation doesn't work on my laptop for some reason, sadly, but I never bothered trying to figure out why. (I wonder if the lilo boot flag you posted would work for me?)
The link I referred to in order to get the boot flag was this one:
I have hibernation configured but don't use it since I now have a SSD. I have read many topics saying it kills the lifespan on SSD. So I shutdown. System boots about 17 seconds or so.
I have hibernation configured but don't use it since I now have a SSD. I have read many topics saying it kills the lifespan on SSD. So I shutdown. System boots about 17 seconds or so.
That's interesting, I'm using an NVMe drive and it's pretty slow to boot compared to your time. But then the kernel does load the Intel microcode which takes quite a bit longer.
That's interesting, I'm using an NVMe drive and it's pretty slow to boot compared to your time. But then the kernel does load the Intel microcode which takes quite a bit longer.
It's like more than 15 seconds but less than 20 seconds ballpark figure. Of course my Slackware box is mildly modified, lots of things removed, only certain things start up etc..
Even though I almost always prefer suspend, I think it's worth configuring on laptops (and maybe desktops with an UPS?). Setting your power manager to hibernate when your battery gets low enough can save some worry in instances where you can't get to an outlet in time. Especially useful if you travel often or like to do your computing outdoors now and then.
Even though I almost always prefer suspend, I think it's worth configuring on laptops (and maybe desktops with an UPS?). Setting your power manager to hibernate when your battery gets low enough can save some worry in instances where you can't get to an outlet in time. Especially useful if you travel often or like to do your computing outdoors now and then.
This is actually a very good idea. I've set it to hibernate at 10% now.
Of course I use hibernation, both at home and at work and together with ddcutil to turn my monitors off and on automatically and xscreensaver to increase security. I don't use swap partition but a swap file as I think it's more flexible. As montagdude said here https://www.linuxquestions.org/quest...2/#post6019523 hibernation is not about speed but about saving the state of the system. I have plenty of buffers opened in Emacs, usually at least several pdfs containing datasheets and documentation opened in zathura, some ad-hoc services started etc. and I really don't want to even think about recreating that state every single morning.
Last edited by average_user; 07-29-2019 at 11:59 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.