LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-20-2014, 09:48 AM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
getting suspend-hybrid to work


On a 14.1 64 bit laptop I don't seem to be able to get suspend-hybrid to work. According to pm-is-supported this mode is available on my laptop and I have put 00-use-suspend-hybrid in /etc/pm/config.d. Never-the-less whenever the battery runs out while suspended, on reboot the laptop does not seem to find the image on swap. Is there something else I need to do to make this work?

Thanks,
Brian
 
Old 06-20-2014, 01:25 PM   #2
bl0tt0
Member
 
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 178

Rep: Reputation: 62
I fiddled with the hybrid suspend function a few years ago, and actually got it to work. The thing is that it isn't quite what you expect it to be. Most people would assume that it's the same as what you'd expect in windows where it writes the system state to disk and then goes to sleep, so that there is an image of the system state just in case the system runs out of battery while suspended to RAM. What the hybrid state in pm-utils actually does is utilize an older function in linux that suspends the system to RAM, and then suspends it to disk after a certain amount of time has elapsed on the rtc. You can set that amount of time through writing to a file in the /proc or /sys interface somewhere, but I can't remember where off the top of my head.

Fortunately, linux now also has the ability to suspend in the way that I think you want it to, although I'm not sure if you can do it through pm-utils. If you
Code:
echo "suspend" > /sys/power/disk
before
Code:
echo "disk" > /sys/power/state
, it should write an image to swap prior to going into suspend to RAM. At least that's how it works on recent kernels.
 
Old 06-20-2014, 09:33 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Bios has to support it too. I forget the mode number S number.

It could be that the battery runs out too fast for the system to correct.

Could be that action at power level is not this suspend.
 
Old 06-21-2014, 09:54 AM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
bl0tt0,

You are correct in your assumption. I want it to always write to disk before suspending. Are you suggesting I do not use pm-utils but rather just use a script with those two commands?

Brian
 
Old 06-25-2014, 09:56 PM   #5
bl0tt0
Member
 
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 178

Rep: Reputation: 62
Quote:
Originally Posted by BCarey View Post
bl0tt0,

You are correct in your assumption. I want it to always write to disk before suspending. Are you suggesting I do not use pm-utils but rather just use a script with those two commands?
Yep, I've been running my own custom acpi scripts for nearly a decade now, and rarely do anything through pm-utils, but I'm difficult like that . If you really want to use pm-utils, you could delve into using custom scripts in the right subdirectory of /etc/pm/.

Actually, just looking in my own /etc/pm/config.d/, there's a default file with a HIBERNATE_MODE value. If you switch that to "suspend", I'd bet you'd get the hibernate behavior you want from pm-utils when explicitly suspending to disk. Remember that the simultaneous suspend to disk and RAM feature came out in the 3.6 kernel release, but you should be fine on any recent Slackware version.
 
Old 06-26-2014, 06:59 AM   #6
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288

Rep: Reputation: 96
What it sounds like you are missing is the lilo.conf part. You have to make a change so it knows on boot where to pull your image. Details are here:
http://docs.slackware.com/howtos:sla...in:hibernation
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hybrid Routing Protocol beside ZRP can work on ns-2 splasher Linux - Software 6 07-01-2013 12:40 AM
Hibernate/Suspend doesn't work ibrahim52 Linux - Newbie 14 08-10-2011 08:39 PM
pm-suspend-hybrid; is it hardware based or kernel based? Romanus81 Slackware 1 05-02-2009 08:21 PM
vt's don't work after suspend to ram notapplicable Linux - Laptop and Netbook 0 11-23-2006 03:08 PM
Getting Software Suspend 2 to work microsoft/linux Linux - Laptop and Netbook 33 08-30-2005 11:20 AM

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

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