Am Donnerstag, 5. Juli 2007 schrieb V, Sankara Narayanan: > 1. Isn't it the kernel which is finally initiating a low power sleep > state? So, I added it in kernel/power/main.c where the kernel does all > the suspend related activities. Not really. The kernel takes the system to sleep if somebody with the proper credentials tells it to do so. The kernel doesn't take the initiative. So the most obvious place to do the notification is with the entity that initiates the sleep. > 2. To answer your second question, we really can't guarantee. But even > if you take Windows Vista (sorry linux enthusiasts for referring windows > here) or any other non-UNIX operating systems (which has this power > event notification), they really do not guarantee it. But, it is an > era-of-tera and the user space applications can do some minimal work > like saving the app's last state in a .tmp file or so (like firefox if > closed in an unclean way) to restore their state. Well, we want to better than that other OS. If you do this in user space, eg. the pm utilities, you can easily implement policies like waiting x seconds for the rest of the system to respond. Regards Oliver _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm