LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11:02 PM   #16
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,987

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556

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.
 
Old 07-29-2019, 11:08 PM   #17
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
If you want great uptime stats, use hibernation.

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.

See https://www.maketecheasier.com/enabl...end-in-ubuntu/ which I haven't tested against Slackware as of writing this.

Last edited by Richard Cranium; 07-29-2019 at 11:12 PM.
 
2 members found this post helpful.
Old 07-30-2019, 06:34 AM   #18
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 Richard Cranium View Post

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.

See https://www.maketecheasier.com/enabl...end-in-ubuntu/ which I haven't tested against Slackware as of writing this.
I get:

Quote:
hybrid suspend is supported
Will look into this. Thanks, Richard.

Quote:
Originally Posted by Richard Cranium View Post
If you want great uptime stats, use hibernation.
It's tempting. Sad but true.

My swap partition is 4GB, which is apparently a little low for my 4GB of RAM, but it works fine with hibernate.

Last edited by Lysander666; 07-30-2019 at 06:37 AM.
 
Old 07-30-2019, 11:55 AM   #19
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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.
 
Old 07-31-2019, 11:01 PM   #20
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Hmm. xfce4-session-4.13.1 (if you are using XFCE) supports hybrid suspend in that you can actually select it. Dunno about KDE4.

The command pm-suspend-hybrid has been around for a loooong time, but that requires using the command line to kick it off.
 
Old 08-01-2019, 03:23 AM   #21
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 Richard Cranium View Post

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.
 
Old 08-02-2019, 12:18 AM   #22
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Richard Cranium View Post
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.
 
Old 06-09-2020, 03:01 AM   #23
2disbetter
LQ Newbie
 
Registered: May 2020
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 06-09-2020, 06:49 AM   #24
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,987

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Never mind, misread post. Swp file
 
  


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 12:29 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