LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-16-2007, 09:12 AM   #1
alkos333
Member
 
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
erklaerbaer
Member
 
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?

http://www.suspend2.net/old-site/
 
Old 03-16-2007, 09:40 AM   #3
alkos333
Member
 
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
campher
Member
 
Registered: Jul 2006
Distribution: slackware
Posts: 51

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

http://www.suspend2.net/old-site/

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.

campher
 
  


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
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 01:13 PM.

Main Menu
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