[ltp] Hibernation update

Atul Chitnis linux-thinkpad@linux-thinkpad.org
Sun, 23 Mar 2003 12:04:28 +0530 (IST)


All:

Was battling with the usual nemesis (hibernation on my Thinkpad T30). 
Finally got it working. There were a few differences in approach, so am 
documenting them here:

1. Using Tridge's utility tphdisk.c doesn't appear to work - looks 
   like IBM/Phoenix changed the format of the file - you need IBM's 
   floppy-only solution to create the hibernation (save2dsk.bin) file 
   on your *first* FAT-formatted partition.

2. There is a good reason why IBM insists on the floppy-only approach - 
   Windows XP won't allow direct INT13 disk access that the phdisk utility 
   on the diskette uses. I suspect there is more to this than meets the 
   eye, but for now - don't expect to be able to copy the files into a 
   directory on Windows-side and expect to be able to run things under XP.

   My T30 shipped without a floppy disk drive. This had me stumped for a
   while. Finally had someone download the IBM package, 

   ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/stndalhd.exe

   run it and create a diskette, then use 

   dd if=/dev/fd0 of=ibmfloppy.img

   to obtain a disk image of that floppy. I then used that image to create 
   a bootable CD

   mkdir tmp
   cp ibmfloppy.img tmp/
   mkisofs -b ibmfloppy.img -c boot.cat -o ibmfloppy.iso tmp
   cdrecord -blank=fast -v -eject ibmfloppy.iso

   Note that I used a CDRW - if you are using a CDR, don't use the 
   "-blank=fast" statement. Also, this procedure assumes that your 
    CD-writing config (/etc/cdrecord.conf, etc.) is correct.

   After this, I just booted off the CD and created the file (note - file, 
   not partition - the T series doesn't have support for hibernation 
   partitions). 

   Also note that if you had made any previous attempts to create that 
   file, it is safest to delete the file (is an option in the menu) and 
   re-create it.

   I later realised that I could have just copied ibmfloppy.img to /boot
   and used  grub to boot the image. I tried this, but wasn't able to get 
   it going. If I manage, I'll send in a note. If someone else with more 
   grub knowledge could figure it out and let us know, I'd be grateful.

Now hibernation via Fn-F12 and tpctl --H works, but I seem to have issues 
getting back my display when the system returns from hibernation. On 
un-hibernating, it asks for the system bootup password, but the lock icon 
does not appear on the screen - I typed this in blindly. Then the system 
comes up without display, and is fully functional (I can ssh in, etc.) but 
no display.

I recall something about a Radeon patch (or was it Radeon-related APM 
patch?). Does anyone have any information about this? I run RedHat Linux 
8.0 with all updates applied (except the recent glibc update, which breaks 
my wine).

TIA, and sorry for the long note.

Atul

-- 
-------------------------------------------
Atul Chitnis       | achitnis@exocore.com
Exocore Consulting | http://www.exocore.com
Bangalore, India   | +91 (80) 344-0397
-------------------------------------------