LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-04-2004, 04:05 PM   #1
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
Anyone has Software Suspend working?


Slack 10, 2.6.8.1+SoftwareSuspend2 patch.

I am using Software Suspend 2 kernel patch for 2.6.8.1 from here

Tried to suspend in console (no X, no fancy modules - as clean as possible) and got some kind of fatal error on reboot. Kernel seemed to go through most of the devices and the crash occured right before I would expect the console.

Before I start posting my config files, I would like to know in general if someone has any of the 3 version of Software Suspend working? (2 in kernel, one as SS2 patch)

NOTE: this is not the same as "Sleeping" mode or whatever its called, when computer is still on, with some of the things shut off. The SoftwareSuspend i am talking about is the one that behaves like "Hibernate" in Windows, i.e. drop all memory on HD, shutdown completely, place the image from HD into memory on start up.

Last edited by suslik; 09-04-2004 at 04:09 PM.
 
Old 09-04-2004, 08:59 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
I can get both swsusp and pmdisk to work with kernel 2.6.6 (I presume it'll work with 2.6.8.1 as well; just downloaded the kernel, so will have to check first, though).

I did have some problems with modules not loading properly which I got around by compiling in what the kernel really needs and then a little script to run after resume. usb, pcmcia and network seemed to make trouble for me. Try shutting them off before suspending; maybe it'll behave better.
 
Old 09-05-2004, 05:40 PM   #3
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
Hi. Just a quick follow up to my response above. I can confirm that suspend to disk with pmdisk works on my laptop with kernel 2.6.8.1. I use apm and not acpi.

I haven't tried swsusp with 2.6.8.1 because I prefer pmdisk.

cheers
 
Old 09-05-2004, 06:11 PM   #4
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Original Poster
Rep: Reputation: 30
I think I tracked my problem with Software Suspend 2.

Even though it says no need for ACPI, when compiling the kernel with only APM chosen, the compilation craps out with something like "ACPI_******_*****" function missing.

If I choose the ACPI, the restore stops with fatal error cause it is looking for working ACPI and my computer is too old to have it enabled.

It's too sad to let SS2 go. On paper SS2 is superior in features compared to pmdisk. On paper...

I am glad to hear you have pmdisk working. You mentioned some -pre-sleep, post-sleep scripts. I'd be thankfull if you shared some of them if you can.
 
Old 09-05-2004, 09:16 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
Yeah, swsusp needs acpi and my laptop does better with apm at least when running linux so I use pmdisk.

Anyhow, I just have a simple script. The strcuture is:

stuff to be done before suspend
echo disk >/sys/power/state
stuff to be done after suspend

For example, USB stops working if kept running. I just need to remove the module ohci-hcd before suspend and load it back, so:

rmmod ohci-hcd
echo disk >/sys/power/state
modprobe ohci-hcd

I have the same problem with my ps/2 mouse (the mousepad as well as external mouse) so the script becomes

rmmod psmouse
rmmod ohci-hcd
echo disk >/sys/power/state
modprobe ogci-hcd
modprobe psmouse

It also seems that stopping pcmcia is better so I do

/etc/init.d/pcmcia stop {this is a script for starting/stopping pcmcia}
rmmod psmouse
rmmod ohci-hcd
echo disk>/sys/power/state
modprobe ohci-hcd
modprobe psmouse
/etc/init.d/pcmcia start

You ge the idea. The stuff after the echo line gets executed after resume. Of course, you can make it as complex as you please with sub-scripts and so on.
The suspending is done by running this script (as root). Other problems I had were my floppy drive and CD-Rom drive. I had to recompile my kernel to have support for them as modules so I could disable the drives before suspending.

hope this helps.

Last edited by quatsch; 09-05-2004 at 09:17 PM.
 
  


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
Getting Software Suspend 2 to work microsoft/linux Linux - Laptop and Netbook 33 08-30-2005 12:20 PM
swap + software suspend astrowill Linux - Software 1 03-27-2005 06:34 AM
Software Suspend 2 error VertX Linux - Laptop and Netbook 0 02-08-2005 08:43 AM
Software suspend won't work . iZvi Linux - Software 2 12-05-2004 06:32 AM
Software suspend won't compile jspenguin Linux - Software 0 07-17-2003 02:53 PM


All times are GMT -5. The time now is 09:06 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration