From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Bambini Subject: Catch "WakeUp" from "Sleep" Date: Sat, 17 Mar 2007 11:10:39 +0100 Message-ID: <96FAB187-7AE8-4750-9A76-D2963BA290FC@vampiresoft.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Return-path: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; delsp="yes"; format="flowed" To: linux-c-programming@vger.kernel.org I need to be notified inside my console app when the computer "WakeUp" from "Sleep". Please note that I cannot run my process as run and I do not need to write anything, I just need to be notified in some way. What is the right approach? What are the right routines/headers to examine? Thanks a lot for you help, Marco Bambini