Messages in this thread | | | Date | Wed, 24 Oct 2001 09:55:40 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [RFC] New Driver Model for 2.5 |
| |
On 24 Oct 2001, Xavier Bestel wrote: > > le mer 24-10-2001 à 18:15, Linus Torvalds a écrit : > > Also, realize that the act of suspension is STARTED BY THE USER. Which > > ... or triggered by some kind of inactivity timer, or low battery > condition.
Note that even when that happens, it's not supposed to be the kernel start _starts_ the activity of suspension.
An inactivity timer or low battery notification will just notify the proper deamon, and the policy on what to do should be in user space. For example, on low battery you might want to set up a X window warning the user that the machine _will_ suspend in five seconds. And the kernel certainly won't do that.
So as far as the kernel is concerned, a suspend is _always_ started by "the user". Of course, the whole point with computers is that many things can be automated, and "the user" may not be a human sitting at the machine.
Linus
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |