Re: [PATCH]: In kernel hibernation, suspend to both

From: Borislav Petkov
Date: Sat Jun 16 2012 - 19:07:45 EST


On Sat, Jun 16, 2012 at 04:19:18PM -0400, Alan Stern wrote:
> On Sun, 17 Jun 2012, Bojan Smojver wrote:
>
> > "Rafael J. Wysocki" <rjw@xxxxxxx> wrote:
> >
> > >Hmm. Is there any fix, though?
> >
> > How do we tell printk() to not dump stuff into dmesg?
>
> You can't; that's what printk() does, by definition. If you don't want
> stuff to go into the dmesg buffer then don't call printk().
>
> > Or, how do we
> > otherwise just print to the console?
>
> That's a better question. Unfortunately, I don't know the answer.

Ok, I don't know the hibernation code at all but let me give it a try:

how about teach the piece that parses

$ echo suspend > /sys/power/disk

to make a note to self that we're doing the hibrid hibernation method
and then the function that prints the progress indicator to be let known
of the aforementioned self-note so that it doesn't do any output?

Purely hypothetical, of course.

--
Regards/Gruss,
Boris.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/