HIbernate on older Thinkpads - 760XD (was Re: [ltp] Success: Hibernation)

Charles E Taylor IV linux-thinkpad@www.bm-soft.com
Fri, 10 May 2002 13:11:44 -0400


On 10 May 2002 03:22:54 +0200
Edi Weitz <edi@agharta.de> wrote:

> I'm one of those who never succeeded in enabling hibernation for their
> Thinkpad although I (thought I) had tried almost everything. I've just
> switched from a T21 (2647 9AG) to a new T23 (2647 HSU) and it now
> works for me. Although this is a different machine I don't think this
> is the reason.

It took me about a week of fiddling, but I got hibernation working on my
760XD (9546-U9E).  When I redo my 380XD I'll see if I've got the magic
formula for older Thinkpads. :)

Since part of my problem with getting hibernate working on this old
thinkpad was a lack of documentation all in one place, I'm going to modify
your procedure for users of older thinkpads.

> The main difference seems to be that I now was smart enough to create
> a small FAT16 partition as my _first_ partition - all else is the same
> as before.

I'm not sure if that's required - at least not on older systems.  Here are
my partitions:

Disk /dev/hda: 128 heads, 63 sectors, 746 cylinders
Units = cylinders of 8064 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       659   2657056+  83  Linux
/dev/hda2           660       697    153216    6  FAT16
/dev/hda3           698       746    197568   82  Linux swap

And the output of df:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1              2615260   2148908    333500  87% /
/dev/hda2               153048    110408     42640  73% /mnt/msdos

My partition's a little bigger than it needs to be for hibernating the
system, but I also keep the PS2 utility on there and a couple of other DOS
programs.

Here's what the hibernate file looks like:
[root@proxima dos]# ls -lh pm_hiber.bin 
-rwxr-xr-x    1 root     root         106M May  9 21:23 pm_hiber.bin

(104M RAM + 2M video card?)

> 1. Create, as your first partition, a primary partition, formatted as
>    FAT16 and big enough for you RAM as well as the RAM of your video
>    card. I have 768 MB RAM and a SuperSavage/IX card with 16 MB
>    VideoRAM, so I've chosen 850 MB because I also wanted to use this
>    partition to share my Gnus files between Windows and Linux.

Some people just have too much RAM and hard drive space ... :)

Apparently, it works as long as you create a primary FAT16 partition.  It
apparently doesn't have to be bootable *or* first.  (Mine's second and not
bootable :) )

> 2. Get the hibernation utility diskette from IBM. It's at
>    <http://w ww.pc.ibm.com/qtechinfo/MIGR-4PESMK.html>.
> 3. Boot from this diskette and create a hibernation _file_ - do not
>    create a hibernation partition!!
 
On the old thinkpads, just use PS2.EXE under DOS to create the hibernation
file.  A simple "PS2 HFILE C" created the file for me and will probably
suffice if you have ancient hardware like mine. :)

> 4. Reboot and you should now be able to hibernate by either pressing
>    Fn-F12 on your keyboard or by using the --hibernate option of tpctl
>    - see <http://tpctl.sourceforge.net/tpctlhome.htm>.

I also had to recompile my kernel to keep the machine from hanging either
on suspend/hibernate or when i woke the system up (stock RH 7.2).  This
set of APM options worked for me:

CONFIG_APM=y
CONFIG_APM_IGNORE_USER_SUSPEND=y
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_DISPLAY_BLANK=y
CONFIG_APM_RTC_IS_GMT=y
CONFIG_APM_ALLOW_INTS=y
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

After about a week or so of testing, I went ahead and used "PS2 HSWITCH
ENABLE" to tell the system to hibernate if I hit the power switch.  Very
convenient.

> Of course, the usual disclaimers apply: If you do this with your own
> laptop, you may end up causing damage to your software, your hardware,
> or your mental health. I take no responsibility for anything that you
> may do as a result of reading this message. The contents of this
> message are provided 'as is' with no warranty. Yada, yada, yada...

Ditto. I felt like tearing my hair out with my 380XD the first time I
attempted to get hibernate to work (and suspend).

-- 
--------------------------------------------------------------------
*  Charles Taylor <tomalek@mindspring.com>
*  Chemistry teacher, Linux enthusiast!
--------------------------------------------------------------------
*  College Chemistry website: http://home.mindspring.com/~charletiv/
--------------------------------------------------------------------

----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html