LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2009, 06:27 AM   #1
anutosho
Member
 
Registered: Nov 2007
Posts: 32

Rep: Reputation: 30
Question Unmotivated wakeup from suspend


Hi,

I'm not sure if this is the right board, so please excuse if it is not.

I try to put my Ubuntu 9.04 server asleep, when everybody has left the local net.
I'm doing this by regular pinging around and execute a "powersave -u" when nobody answers for three times.
This is working well so far, except that the box wakes up shortly after going to sleep.

The script is as follows (simplified)

SLEEPTIME=300
_ping_range {
# ping all numbers in our subnet
...
}

while 1; do
_ping_range
if [ $? -ne 0 ]; then
powersave -u
fi
sleep $SLEEPTIME
done


Now I found out, that the box always wakes up exactly after SLEEPTINE Seconds.
When I change SLEEPTIME the Box again wakes up exactly after that time.

That looks pretty weird to me.
It seems as if the sleep command is exeuted in spite of the preceding powersave command and sets a trigger to wakeiup before the machine is in suspens mode.

Does that make any sense?

Is there any means to find out which event did wake up the box?
 
  


Reply



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
Plz explain Suspend to Disk and Suspend to Ram pkhera_2001 Linux - Newbie 2 02-18-2008 07:23 AM
hardware suspend, run script on wakeup stan.distortion Linux - Laptop and Netbook 0 10-04-2006 06:37 AM
suspend to ram, doesn't wakeup, old laptop, new kernel and slack Quercus ruber Linux - Laptop and Netbook 3 09-16-2006 06:59 AM
Ubuntu 6.06 - Automatic Wakeup after Suspend librano Linux - Laptop and Netbook 2 06-22-2006 04:22 AM
How do I wakeup my laptop? susefan Linux - Laptop and Netbook 2 03-02-2005 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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