[ltp] Hibernation, dead hard drive reads

Zinx Verituse linux-thinkpad@linux-thinkpad.org
Tue, 24 Sep 2002 13:16:16 -0500


On Mon, Sep 23, 2002 at 11:13:03PM -0400, Charles E Taylor IV wrote:
> On Mon, 23 Sep 2002 17:11:49 -0500
> Zinx Verituse <zinx@epicsol.org> wrote:
> 
> [Disk writes and hibernation]
> 
> > So, I was wondering if anyone had any suggestions (even if
> > they're "don't hibernate" :) )
> 
> For what it works, this works fine on a mostly similar Thinkpad running
> Redhat 7.3.  That's kernel 2.4.18.  DMA is enabled.
> 
> I'm not using tpctl (no need for me), and am using Redhat's normal apmd
> scripts/software for hibernation (apmd-3.0.2-10).

Ah, this was the problem.  tpctl seems to use an odd way of putting
the thinkpad in hibernation, which something doesn't like..  I was
previously running a script to suspend/hibernate, which ran apmd_proxy
manually to suspend pcmcia and other stuff, then tpctl to finish.

I'm now running a little daemon which 'cardctl eject's my cards when i
hit Fn+F8 (screen expand, all my modes are 1024x768), so I can use the
actual suspend/hibernate buttons without physically removing the NIC :)

all works well, thanks :)

> 
> The only hibernation "problems" I've seen are:
> * Need to reload mwave driver and cs4232 drivers on resume - handled by
> apmd script.
> * Resuming with a PCMCIA ethernet card in the slot doesn't work quite
> right.  I need to wait until the system wakes up before sticking in the
> card.

Hmm, my apmd scripts are automatically suspending/resuming the PCMCIA cards,
try putting 'cardctl suspend' in your suspend script, and 'cardctl resume'
in your resume script (the suspend probably isn't actually required, but it's
probably a good idea to put it there anyway ;) )

In debian, there is such a script (which i think is part of the stock pcmcia-cs
package, so you probably have it too), which is just waiting to be activated
by putting 'APM=suspend' in /etc/pcmcia/apm.opts.
The script is at /etc/apm/event.d/pcmcia in debian, and possibly RH too

> 
> So instead of "Don't hibernate", maybe "Don't use Debian"? :)

hehe :)

> 
> > System info follows:
> > 
> > Thinkpad 600E 2645-RP1
> > Linux 2.4.19, DMA/PIIXn tuning enabled
> 
> *  Charles Taylor <tomalek@mindspring.com>

-- 
Zinx Verituse