All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Tomas Carnecky <tom@dbservice.com>, linux-acpi@vger.kernel.org
Subject: Re: suspend to RAM failure on t61p
Date: Mon, 10 Dec 2007 12:06:14 +0100	[thread overview]
Message-ID: <200712101206.15037.rjw@sisk.pl> (raw)
In-Reply-To: <20071209232547.1d0c6599.akpm@linux-foundation.org>

On Monday, 10 of December 2007, Andrew Morton wrote:
> On Mon, 10 Dec 2007 02:04:13 +0100 "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> 
> > On Monday, 10 of December 2007, Andrew Morton wrote:
> > > On Sun, 09 Dec 2007 13:40:07 +0100 Tomas Carnecky <tom@dbservice.com> wrote:
> > > 
> > > > Andrew Morton wrote:
> > > > > 2.6.24-rc4 on a Lenovo t61p, using FC8 config.
> > > > > 
> > > > > echo mem > /sys/power/state while running X.
> > > > > 
> > > > > It appears to suspend OK but then it instantly resumes and runs
> > > > > OK except the display is blank.
> > > > 
> > > > http://bugzilla.kernel.org/show_bug.cgi?id=9258
> > > > 
> > > > I have a X61 tablet, and the screen is blank after resume, too, but
> > > > pressing ctrl+alt+F1/F7 usually fixes it. It seems a problem with the X
> > > > video driver. I'm not sure though.
> > > > 
> > > 
> > > This machine doesn't bring the display back after resume-from-RAM under
> > > 2.6.23 either.
> > > 
> > > The post-2.6.23 regresison here is that the suspend itself fails.  Under
> > > 2.6.23 the machine suspends and requires a keystrike to start resuming. 
> > > Under 2.6.24-rc4 it just instantly resumes all by itself.
> > 
> > Please see if the appended patch helps (it will probably break the RTC wakeup
> > again, but well ...).
> > 
> > 
> > ---
> >  kernel/power/disk.c |    9 ++++++---
> >  1 file changed, 6 insertions(+), 3 deletions(-)
> > 
> > Index: linux-2.6/kernel/power/disk.c
> > ===================================================================
> > --- linux-2.6.orig/kernel/power/disk.c
> > +++ linux-2.6/kernel/power/disk.c
> > @@ -378,9 +378,12 @@ int hibernation_platform_enter(void)
> >  		return error;
> >  
> >  	suspend_console();
> > -	error = device_suspend(PMSG_SUSPEND);
> > -	if (error)
> > -		goto Resume_console;
> > +	/*
> > +	 * FIXME: device_suspend(PMSG_SUSPEND) should be called here, but
> > +	 * some EHCI controllers make boxes reboot instead of going into the
> > +	 * S4 sleep state in that case.
> > +	 */
> > +	device_shutdown();
> >  
> >  	error = hibernation_ops->prepare();
> >  	if (error)
> 
> Nope, the machine still instantly resumes after suspend-to-RAM.
> 
> Sigh.  I guess I need to git-bisect my cant-find-root-disk problem and then
> once that is fixed I can bisect this suspend-to-RAM-resumes-itself
> regression and the resume-from-disk-causes-reboot regression.

Well, please try to revert the entire commit 9cd9a0058dd35268b24fa16795a92c800f4086d4
"Hibernation: Enter platform hibernation state in a consistent way" for the last one.

  reply	other threads:[~2007-12-10 10:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-09  9:19 suspend to RAM failure on t61p Andrew Morton
2007-12-09 12:40 ` Tomas Carnecky
2007-12-09 13:53   ` Rafael J. Wysocki
2007-12-10  0:40   ` Andrew Morton
2007-12-10  1:04     ` Rafael J. Wysocki
2007-12-10  7:25       ` Andrew Morton
2007-12-10 11:06         ` Rafael J. Wysocki [this message]
2007-12-11  6:21           ` Andrew Morton
2007-12-11  6:58             ` Andrew Morton
2007-12-11  9:57               ` Andrew Morton
2007-12-11 10:31                 ` Andrew Morton
2007-12-11 21:50             ` Rafael J. Wysocki
2007-12-09 23:48 ` Volker Braun

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=200712101206.15037.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@linux-foundation.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=tom@dbservice.com \
    /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.