LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-29-2019, 06:10 AM   #1
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
To hibernate or not to hibernate?


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?
 
Old 07-29-2019, 06:17 AM   #2
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,456

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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.
 
2 members found this post helpful.
Old 07-29-2019, 06:38 AM   #3
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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
 
Old 07-29-2019, 07:15 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,382

Rep: Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761
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.
 
5 members found this post helpful.
Old 07-29-2019, 07:19 AM   #5
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by allend View Post
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.
 
Old 07-29-2019, 07:41 AM   #6
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by Lysander666 View Post
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.
 
Old 07-29-2019, 08:02 AM   #7
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by montagdude View Post
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:

https://docs.slackware.com/howtos:sl...?do=export_pdf

I just entered the location of the swap partition and ran lilo-v. It's literally all I did to get it to work.
 
3 members found this post helpful.
Old 07-29-2019, 08:02 AM   #8
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
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.
 
Old 07-29-2019, 08:07 AM   #9
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by PROBLEMCHYLD View Post
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.
 
Old 07-29-2019, 08:13 AM   #10
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Quote:
Originally Posted by Lysander666 View Post
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..
 
Old 07-29-2019, 08:21 AM   #11
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by Lysander666 View Post
The link I referred to in order to get the boot flag was this one:

https://docs.slackware.com/howtos:sl...?do=export_pdf

I just entered the location of the swap partition and ran lilo-v. It's literally all I did to get it to work.
Wow, it works! Thanks Lysander666!
 
2 members found this post helpful.
Old 07-29-2019, 10:27 AM   #12
termayto
LQ Newbie
 
Registered: Jan 2019
Distribution: Slackware64 14.2
Posts: 17

Rep: Reputation: 17
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.
 
1 members found this post helpful.
Old 07-29-2019, 10:36 AM   #13
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by termayto View Post
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.
 
Old 07-29-2019, 11:57 AM   #14
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
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.
 
Old 07-29-2019, 12:13 PM   #15
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I prefer hibernation. I like to be able to pick up where I left off; without any fuss.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hibernate one distro, de-hibernate another Ulysses_ Linux - Software 8 12-28-2010 09:34 AM
13.1 Beta1 :: KDE SC 4.4.3 :: pm-hibernate works, KDE hibernate just locks the screen zordrak Slackware 7 05-12-2010 03:55 AM
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 10:21 AM
ACPI problem -- not resuming from hibernate GoBillsBN Linux - Laptop and Netbook 13 04-20-2004 12:33 PM
ACPI problem -- not resuming from hibernate GoBillsBN Mandriva 2 03-24-2004 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration