Re: Suspend 2 merge: 24/51: Keyboard and serial console hooks.

Nigel Cunningham
2004-11-24T21:45:06Z

Hi.

On Thu, 2004-11-25 at 00:29, Christoph Hellwig wrote:
> On Wed, Nov 24, 2004 at 11:59:02PM +1100, Nigel Cunningham wrote:
> > Here we add simple hooks so that the user can interact with suspend
> > while it is running. (Hmm. The serial console condition could be
> > simplified :>). The hooks allow you to do such things as:
> >
> > - cancel suspending
> > - change the amount of detail of debugging info shown
> > - change what debugging info is shown
> > - pause the process
> > - single step
> > - toggle rebooting instead of powering down
>
> And why would we want this? If the users calls the suspend call
> he surely wants to suspend, right?

Have you ever pressed control-alt-delete/init 0 and then gone "Oh. I
forgot, I wanted to..."? That's why you'd want to be able to cancel
suspending.

The ability to toggle rebooting is helpful because you don't have to
edit a config file/proc entry. You can use one key press to initiate the
suspend, and press 'R' iif you want to reboot (eg for dual booting)
instead of powering down.

The other options are really helpful when testing and debugging, and can
be turned off at compile time.

By the way, thanks for all the feedback.

Regards,

Nigel
--
Nigel Cunningham
Pastoral Worker
Christian Reformed Church of Tuggeranong
PO Box 1004, Tuggeranong, ACT 2901

You see, at just the right time, when we were still powerless, Christ
died for the ungodly. -- Romans 5:6