LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Suspend script Problems (https://www.linuxquestions.org/questions/slackware-14/suspend-script-problems-538010/)

alkos333 03-16-2007 09:12 AM

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.

erklaerbaer 03-16-2007 09:23 AM

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/

alkos333 03-16-2007 09:40 AM

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.

campher 03-16-2007 04:18 PM

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


All times are GMT -5. The time now is 11:54 AM.