I'm going to stand firm on this one, Pavel.
I think being able to cancel a suspend is a really useful feature, and
I'll be surprised if we don't see Microsoft including it in their next
version of Windows (perhaps I should take a patent out! :>)
That's not to say that I haven't listened to you, however. That's why I
tightened up the requirements for using it yesterday. As to the extra
proc entry, it's not a biggie: 2.4 swsusp now has it's own proc handling
code which is easily extensible. I did this to make it easier to
understand.
This...
[nigel@laptop-linux nigel]$ ls -l /proc/swsusp/
total 0
--w------- 1 root root 0 Jul 15 08:28 activate
-rw------- 1 root root 0 Jul 15 08:28 async_io_limit
-rw------- 1 root root 0 Jul 15 08:28 beeping
-rw------- 1 root root 0 Jul 15 08:28 checkpage
-rw------- 1 root root 0 Jul 15 08:28 debug_sections
-rw------- 1 root root 0 Jul 15 08:28 default_console_level
-rw------- 1 root root 0 Jul 15 08:28 enable_escape
-rw------- 1 root root 0 Jul 15 08:28 image_size_limit
-r-------- 1 root root 0 Jul 15 08:28 interface_version
-r-------- 1 root root 0 Jul 15 08:28 last_result
-rw------- 1 root root 0 Jul 15 08:28 log_everything
-rw------- 1 root root 0 Jul 15 08:28 no_async_reads
-rw------- 1 root root 0 Jul 15 08:28 no_async_writes
-rw------- 1 root root 0 Jul 15 08:28 no_output
-rw------- 1 root root 0 Jul 15 08:28 nopageset2
-rw------- 1 root root 0 Jul 15 08:28 pause_between_steps
-rw------- 1 root root 0 Jul 15 08:28 progressbar_granularity_limit
-rw------- 1 root root 0 Jul 15 08:28 reboot
-rw------- 1 root root 0 Jul 15 08:28 slow
-r-------- 1 root root 0 Jul 15 08:28 version
[nigel@laptop-linux nigel]$
is easier to understand and configure. The /proc/sys/kernel/swsusp
interface is still there to make it easy to save & restore them all at
once.
Regards,
Nigel
On Tue, 2003-07-15 at 08:18, Pavel Machek wrote:
> Hi!
>
> > > Having listened to the arguments, I'll make pressing Escape to cancel
> > > the suspend a feature which defaults to being disabled and can be
> > > enabled via a proc entry in 2.4. I won't add code to poll for ACPI (or
> > > APM) events :>
> >
> > I'd suggest making it a mappable function in the keymap, like reboot is
> > for example. Both for initiating and stopping the suspend. How about
> > that?
>
> Any user can load his own keymap, I believe... And I do not like
> having special /proc options for esc key...
> Pavel
-- Nigel Cunningham 495 St Georges Road South, Hastings 4201, New ZealandYou see, at just the right time, when we were still powerless, Christ died for the ungodly. -- Romans 5:6, NIV.
- 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/