Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-16-2007, 09:12 AM   #1
Registered: Dec 2006
Posts: 271

Rep: Reputation: 31
Suspend script Problems

I'm using Suspend (swsusp) to suspend to hard disk. Since it isn't Suspend2, all I have to do is 'echo disk > /sys/power/state' and it suspends fine. It also recovers fine, but as usual, there are some things I need to reset like internet connection for example. I'm thinking about writing a bash script that would take care of that for me. Any ideas how I would tell the system to run it after ever suspend, so it could completely recover my previous state?

I checked ACPI's log to see if it returns a special event, but it doesn't.

Last edited by alkos333; 03-16-2007 at 11:56 AM.
Old 03-16-2007, 09:23 AM   #2
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
swsusp is really antique.
maybe there is something like a /sbin/init.d/resume? did you modify your /etc/inittab?
Old 03-16-2007, 09:40 AM   #3
Registered: Dec 2006
Posts: 271

Original Poster
Rep: Reputation: 31
I decided to try swsusp because it's a lot more compact than suspend2 and works fairly fast. This is the only problem I have with it - can't figure out how to run a script after coming back from suspend.

I haven't modified /etc/inittab, but I don't think swsusp runs init when it recovers.

Last edited by alkos333; 03-16-2007 at 09:43 AM.
Old 03-16-2007, 04:18 PM   #4
Registered: Jul 2006
Distribution: slackware
Posts: 51

Rep: Reputation: 15
Originally Posted by erklaerbaer
swsusp is really antique.
maybe there is something like a /sbin/init.d/resume? did you modify your /etc/inittab?

i ve tried really hard to get suspend2 to work on a t60 with no success
swsusp may be antique but if its working then its better than a not working suspend2.

@alkos333 if you are changing your location after suspend its safer to reset your network with a script manually after resume.



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
fglrx suspend problems drewbug01 Linux - Laptop and Netbook 0 03-12-2007 10:04 PM
suspend to ram script, slack11 dell inspiron 8500 bioe007 Slackware 3 03-11-2007 01:24 PM
hardware suspend, run script on wakeup stan.distortion Linux - Laptop and Netbook 0 10-04-2006 06:37 AM
How to suspend to ram ? I have problems. gkiagia Linux - Laptop and Netbook 3 09-09-2006 03:45 AM
Suspend / hibernate problems in FC5 cdhgee Fedora 2 04-11-2006 08:32 AM

All times are GMT -5. The time now is 09:48 AM.

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