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 04-17-2008, 08:27 AM   #1
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Rep: Reputation: 30
Advice on power save


Hi all,

I'm investigating power saving options for my laptop. I don't need help with the implementation, just a bit of guidance beforehand.

Can someone tell me the difference between:

suspend to RAM
suspend to disk
hibernation

The first two I guess are pretty obvious. It's the latter I'm not sure about.

Please advise.


Mark.
 
Old 04-17-2008, 09:39 AM   #2
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
See and thee shall find

Okay, after a more thorough STFW I have ascertained that:
  • Suspend to disk - hibernate
  • Suspend to RAM - standby

Someone correct me if I'm wrong...


M.
 
Old 04-17-2008, 02:50 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Suspend to disk is indeed hibernate. It uses your swap partition (or a swap file, but I don't quite know how to set that up) to write the contents of the RAM and turns off your PC. When you start it up, as long as you have a line like append="resume=/dev/hda1" in your /etc/lilo.conf (assuming that your swap partition is /dev/hda1), your system will boot into the same state it was in when you hibernated. It should be noted that the default Slackware kernels do not have suspend to disk enabled by default, and also that these ACPI functions have greatly improved since the 2.6.21.5 kernel, so it would be best to use a recent kernel.

Suspend to RAM means that everything in your PC powers down except for your RAM (or something like this -- I am sure *some* other stuff gets powered as well, but it's very little). Suspending to RAM leaves my PC completely silent, and I've left it suspended for several hours with no ill effects. This functionality has also improved immensely since the 2.6.21.5 kernel (my PC crashed once or twice during suspend to RAM using that kernel but has never crashed using a 2.6.24.x kernel).

Standby basically means only a few things power down -- it's like "standby" in Windows. It's not really very useful considering how much better suspend to RAM is, in my opinion, but it's still an option.

Last edited by T3slider; 04-17-2008 at 02:51 PM.
 
Old 04-18-2008, 02:06 AM   #4
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
You don't need anything in lilo.conf, at least i never had an s2disk is still fine.
 
Old 04-18-2008, 04:01 AM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Hmm I could only get hibernation to work with the 'resume=..' in lilo.conf.
 
Old 04-18-2008, 04:23 AM   #6
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hi,

Thanks for your replies.

I'm gonna go with suspend to RAM, although I can't at the moment as X crashes 9 times out of 10 when I shutdown / restart. This is a problem with X and the intel driver (Dell D430), which I hope will be fixed in 12.1.


M.
 
Old 04-18-2008, 11:29 AM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by pdw_hu View Post
You don't need anything in lilo.conf, at least i never had an s2disk is still fine.
Quote:
Hmm I could only get hibernation to work with the 'resume=..' in lilo.conf.
You can define a default resume partition in the kernel, in which case you don't need it in lilo.conf.

Brian
 
Old 04-19-2008, 01:13 AM   #8
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
Quote:
Originally Posted by BCarey View Post
You can define a default resume partition in the kernel, in which case you don't need it in lilo.conf.

Brian
Yes, I just presumed others did too.
 
Old 04-19-2008, 02:45 AM   #9
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
I just couldn't get the hardware in my laptop to work with the standby or hibernate in slackware 11 with a 2.6.17.13 kernel.

Instead, I optimised the boot-up so that from completely off to command prompt it was about as fast as win xp coming out of standby on that laptop (and much faster than hibernate). Getting to the KDE desktop took longer, but battering away at keys and using pico is perfect for my daily commute on the train (emails, drafts to be tarted up later in OOo). Another advantage of this is that there is no steady drain on the battery.

I'll give hibernate/standby another go when 12.1 is ready.
 
Old 04-19-2008, 10:22 AM   #10
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by mcnalu View Post
I just couldn't get the hardware in my laptop to work with the standby or hibernate in slackware 11 with a 2.6.17.13 kernel.
I had to use tuxonice (formerly suspend2) to get it to work under 2.6.17.

Brian
 
  


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
Monitor power save mode rehan999 Linux - Software 15 03-02-2008 10:44 PM
Power OFF save Power? novell1 Linux - Software 2 12-31-2007 01:49 AM
Power Save on Laptop? carlosinfl Linux - Laptop and Netbook 9 11-27-2006 10:34 AM
swatch and power save treebug Linux - Software 0 02-02-2006 08:48 AM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 01:17 PM

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

All times are GMT -5. The time now is 05:17 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