[ltp] Suspend thinkpad

Dan Saint-Andre linux-thinkpad@linux-thinkpad.org
Thu, 05 Apr 2012 15:17:38 -0500


--=-VCvkUJdv2Pnq3Gw/enW5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit



On Thu, 2012-04-05 at 12:01 +0200,
linux-thinkpad-request@linux-thinkpad.org wrote:

> Hello everyone,
> 
> Anyone has suspend working on a recent Thinkpad? Running Gentoo in a
> X220
> here, it suspends perfectly on Gnome 3, the problem is resuming the
> session. No button seems to have an effect.
> 
> I press the on/off button and it continues blinking as if yet
> suspended, so
> I'm forced to reboot. No error is logged in /var/log/messages or in
> pm-suspend.log (attached), so I have no clue.
> 
> Anyone?
> 
> Regards
> 
> ps: I tried to suspend directly on the kernel and also using the
> hibernate
> script frontend to call the in-kernel suspend too. Difference is that
> on/off doesn't blink and I can resume suspension from the shell, but
> when
> entering X the system crashes completely becoming unresponsive.
> 

I've been fighting various suspend trouble with X220t for some time. No
joy, but I've learned some things.

1.  If you have USB or SD mounted, umount during the spin down.  Not a
cure, but you get farther.

2.  Remove your wireless and wire network drivers during the spin down.

3.  Remove your video driver during the spin down.

Not all drivers do a clean job of saving their state and thus resume in
a confused state.
A variation, here, is that saved driver state fails to properly init the
device on resume
before the state gets restored (even if saved well).

I can put my  X220t to sleep (Suspend to RAM) and then wake it most of
the time.
I cannot hibernate the X220t.  It stalls or hangs or crashes during spin
down.

Continuing to shoot troubles,
~~~ 0;-Dan



--=-VCvkUJdv2Pnq3Gw/enW5
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.1.92">
</HEAD>
<BODY>
<BR>
<BR>
On Thu, 2012-04-05 at 12:01 +0200, linux-thinkpad-request@linux-thinkpad.org wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <TT><FONT COLOR="#000000">Hello everyone,</FONT></TT><BR>
    <BR>
    <TT><FONT COLOR="#000000">Anyone has suspend working on a recent Thinkpad? Running Gentoo in a X220</FONT></TT><BR>
    <TT><FONT COLOR="#000000">here, it suspends perfectly on Gnome 3, the problem is resuming the</FONT></TT><BR>
    <TT><FONT COLOR="#000000">session. No button seems to have an effect.</FONT></TT><BR>
    <BR>
    <TT><FONT COLOR="#000000">I press the on/off button and it continues blinking as if yet suspended, so</FONT></TT><BR>
    <TT><FONT COLOR="#000000">I'm forced to reboot. No error is logged in /var/log/messages or in</FONT></TT><BR>
    <TT><FONT COLOR="#000000">pm-suspend.log (attached), so I have no clue.</FONT></TT><BR>
    <BR>
    <TT><FONT COLOR="#000000">Anyone?</FONT></TT><BR>
    <BR>
    <TT><FONT COLOR="#000000">Regards</FONT></TT><BR>
    <BR>
    <TT><FONT COLOR="#000000">ps: I tried to suspend directly on the kernel and also using the hibernate</FONT></TT><BR>
    <TT><FONT COLOR="#000000">script frontend to call the in-kernel suspend too. Difference is that</FONT></TT><BR>
    <TT><FONT COLOR="#000000">on/off doesn't blink and I can resume suspension from the shell, but when</FONT></TT><BR>
    <TT><FONT COLOR="#000000">entering X the system crashes completely becoming unresponsive.</FONT></TT><BR>
    <BR>
</BLOCKQUOTE>
I've been fighting various suspend trouble with X220t for some time. No joy, but I've learned some things.<BR>
<BR>
1.&nbsp; If you have USB or SD mounted, umount during the spin down.&nbsp; Not a cure, but you get farther.<BR>
<BR>
2.&nbsp; Remove your wireless and wire network drivers during the spin down.<BR>
<BR>
3.&nbsp; Remove your video driver during the spin down.<BR>
<BR>
Not all drivers do a clean job of saving their state and thus resume in a confused state.<BR>
A variation, here, is that saved driver state fails to properly init the device on resume<BR>
before the state gets restored (even if saved well).<BR>
<BR>
I can put my&nbsp; X220t to sleep (Suspend to RAM) and then wake it most of the time.<BR>
I cannot hibernate the X220t.&nbsp; It stalls or hangs or crashes during spin down.<BR>
<BR>
Continuing to shoot troubles,<BR>
~~~ 0;-Dan<BR>
<BR>
<BR>
</BODY>
</HTML>

--=-VCvkUJdv2Pnq3Gw/enW5--