From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Stefan Seyfried <seife@suse.de>
Cc: Pavel Machek <pavel@ucw.cz>,
linux-kernel@vger.kernel.org,
suspend-devel List <suspend-devel@lists.sourceforge.net>,
Frank Seidel <fseidel@suse.de>,
akpm@linux-foundation.org, nigel@nigel.suspend2.net
Subject: Re: [PATCH, 2nd try] make disable_console_suspend runtime configurable
Date: Thu, 14 Jun 2007 01:09:04 +0200 [thread overview]
Message-ID: <200706140109.04866.rjw@sisk.pl> (raw)
In-Reply-To: <20070613222308.GA17266@suse.de>
On Thursday, 14 June 2007 00:23, Stefan Seyfried wrote:
> On Thu, Jun 14, 2007 at 12:08:00AM +0200, Pavel Machek wrote:
> > Hi!
> >
> > > I hate having to recompile the kernel, just to be able to debug suspend.
> > > Remove CONFIG_DISABLE_CONSOLE_SUSPEND, replace it by a tunable in
> > > /sys/power/disable_console_suspend.
> >
> > > Signed-off-by: Stefan Seyfried <seife@suse.de>
> > > Signed-off-by: Frank Seidel <fseidel@suse.de>
> >
> > I wonder if there's a better name?
>
> Suggest one.
>
> > Or maybe this should not be /sys configurable, but just have value for
> > each console "this console can work while suspended"?
> >
> > (serial can, vesafb can, netconsole can't)?
>
> Go ahead, submit a patch. It won't be that trivial. And i wonder
> if it is actually worth the hassle. This is a debugging facility.
>
> > Exporting "crash-me" option to user does not seem that cool to me.
>
> We have "echo c > /proc/sysrq-trigger" also.
> This is a debugging option, and forcing users to recompile the kernel just
> to debug suspend problems (not resume problems, the "it does not even go to
> sleep" stuff is where this matters most) is IMO a bad idea.
>
> We can also make this a boot parameter, i don't care, but i want to disable
> console suspend without recompiling the kernel.
It's a bit similar to the pm_trace thing.
As long as there is a sane default (ie. the consoles are disabled), I don't see
a big problem with that.
Moreover, distributions will probably want to have a switch so that they can
tell the user "please do 'echo 1 > ...' and retest" and if they start to add
such things by themselves that wouldn't be nice.
Greetings,
Rafael
--
"Premature optimization is the root of all evil." - Donald Knuth
next prev parent reply other threads:[~2007-06-13 23:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-13 20:03 [PATCH, 2nd try] make disable_console_suspend runtime configurable Stefan Seyfried
2007-06-13 21:36 ` Rafael J. Wysocki
2007-06-13 22:08 ` Pavel Machek
2007-06-13 22:23 ` Stefan Seyfried
2007-06-13 23:09 ` Rafael J. Wysocki [this message]
2007-06-14 12:14 ` Rafael J. Wysocki
2007-06-14 13:59 ` [PATCH, 3rd " Frank Seidel
2007-06-14 22:20 ` Rafael J. Wysocki
2007-06-17 21:35 ` Pavel Machek
2007-06-17 21:49 ` [Suspend-devel] " Pavel Machek
2007-06-18 5:27 ` Stefan Seyfried
2007-06-21 13:20 ` Pavel Machek
2007-06-21 21:14 ` Stefan Seyfried
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200706140109.04866.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=fseidel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=nigel@nigel.suspend2.net \
--cc=pavel@ucw.cz \
--cc=seife@suse.de \
--cc=suspend-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.