Date: Tue, 17 Apr 2001 18:22:23 -0000 From: "Greg Smith" <gregsmith59@hotmail.com> To: Johannes.Hofmann@gmx.de Cc: freebsd-mobile@freebsd.org Subject: Re: Hibernation on IBM Thinkpad 1200i (I have TP600) Message-ID: <F217XSVvR0WssM5sGmh00000ea9@hotmail.com>
next in thread | raw e-mail | index | archive | help
Johannes, >Unfortunately the thinkpad still does not suspend >even with a hibernation partition There may be more than one problem here. Problem 1: In FreeBSD and APM (and IBM) the suspend refers to [suspend to RAM]. IBM's (and others', e.g. Phoenix) BIOS supports an additional service called hibernate [suspend to disk]. On my TP600 I can get suspend [suspend to RAM] by typing zzz. To get hibernate [suspend to disk] I just use the keyboard combo Fn-F12, the same one used when I boot Win95. On my TP600 (2645-41U) the hibernate BIOS function writes to the hibernation file within my DOS FAT c: partition, to the PM_HIBER.BIN file I referred to in my earlier email, regardless of operating system booted. It does what I want under Win95 AND FreeBSD. Possible problem 2: The BIOS is smart enough not to hibernate when there is a PCMCIA card inserted. Instead of hibernating it will issue an unhappy beep and do nothing. "Stopping" the card under Win95, or "powering down" under FreeBSD will allow the hibernate to proceed. I believe you should be able to get hibernate to work under FreeBSD if you already have it working under Winxx. Attached is various data from my system, with irrelevant lines removed. I am unable to comment on why suspend is not available on your machine's APM. HTH, Greg ===================== config (4.1-Release): --------------------- options PNPBIOS options PSM_HOOKRESUME #hook the system resume event options PSM_RESETAFTERSUSPEND #reset the device at the resume event device apm0 at nexus? flags 0x20 options PCIC_RESUME_RESET # reset cards after resume ===================== apm output: --------------------- APM version: 1.2 APM Managment: Enabled AC Line status: on-line Battery status: high Remaining battery life: 100% Remaining battery time: unknown Number of batteries: 1 Resume timer: unknown APM Capacities: global standby state global suspend state resume timer from suspend ===================== dmesg output(including boot and after): --------------------- boot -v: --------------------- Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.1-RELEASE #22: Mon Apr 16 18:01:03 PDT 2001 root@gregsIBM:/usr/src/sys/compile/IBM1 Calibrating clock(s) ... TSC clock: 232090702 Hz, i8254 clock: 1193107 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method CPU: Pentium II/Pentium II Xeon/Celeron (232.11-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x650 Stepping = 0 Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR> real memory = 301793280 (294720K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x00309000 - 0x11fc7fff, 298577920 bytes (72895 pages) sc0: keyboard 0 sc0: kbd index:0, unit:0, flags:0x350000 avail memory = 290078720 (283280K bytes) bios32: Found BIOS32 Service Directory header at 0xc00fd800 bios32: Entry = 0xfd820 (c00fd820) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0x0 pnpbios: Found PnP BIOS data at 0xc00fe700 pnpbios: Entry = f0000:e724 Rev = 1.0 pnpbios: Event flag at 415 Other BIOS signatures found: ACPI: 00000000 : : apm0: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 : : chip1: <Intel 82371AB Power management controller> port 0xefa0-0xefaf at device 7.3 on pci0 : : pcic0: <Intel i82365> at port 0x3e0-0x3e1 on isa0 pcic0: Polling mode pccard0: <PC Card bus -- kludge version> on pcic0 pccard1: <PC Card bus -- kludge version> on pcic0 : : BIOS Geometries: 0:03127f3f 0..786=787 cylinders, 0..127=128 heads, 1..63=63 sectors 0 accounted for : : ata0-master: success setting up UDMA2 mode on PIIX4 chip ad0: <IBM-DYKA-23240/YK4IA74G> ATA-3 disk at ata0 as master ad0: 3102MB (6354432 sectors), 6304 cyls, 16 heads, 63 S/T, 512 B/S ad0: 16 secs/int, 1 depth queue, UDMA33 ad0: piomode=4 dmamode=2 udmamode=2 cblid=0 Creating DISK ad0 Creating DISK wd0 ata1-master: piomode=4 dmamode=2 udmamode=-1 dmaflag=1 ata1-master: success setting up PIO4 mode on generic chip acd0: <TOSHIBA CD-ROM XM-1702BC/1562> CDROM drive at ata1 as master acd0: read 4134KB/s (4134KB/s), 128KB buffer, PIO4 acd0: Reads: CD-R, CD-RW, CD-DA stream acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked Mounting root from ufs:/dev/ad0s3a ad0s1: type 0x6, start 63, end = 4096511, size 4096449 : OK ad0s2: type 0x5, start 4096512, end = 5265791, size 1169280 : OK ad0s3: type 0xa5, start 5265792, end = 6354431, size 1088640 : OK ad0s5: type 0xb, start 4096575, end = 5265791, size 1169217 : OK pccard: card inserted, slot 0 : : pcic: I/O win 0 flags 15 300-31f pcic: I/O win 0 flags 5 300-31f ed0 at port 0x300-0x31f irq 9 slot 0 on pccard0 pcic: I/O win 0 flags 15 300-31f ed0: address 00:e0:98:71:b4:5a, type NE2000 (16 bit) pcic: I/O win 0 flags 5 300-31f ----------------- zzz command did this: ----------------- ed0: detached stray irq 9 pccard: card disabled, slot 0 ----------------- Fn key did this: ----------------- resumed from suspended mode (slept 00:00:25) kbdc: TEST_AUX_PORT status:0000 kbdc: RESET_AUX return code:00fa kbdc: RESET_AUX status:00aa kbdc: RESET_AUX ID:0000 pccard: card inserted, slot 0 ata0: resetting devices .. ata0: mask=01 status0=50 status1=00 ata0-master: success setting up UDMA2 mode on PIIX4 chip done ata1: resetting devices .. ata1: mask=01 status0=10 status1=fd ata1-master: no status, reselecting device ata1-master: success setting up PIO4 mode on generic chip done pcic: I/O win 0 flags 15 300-31f pcic: I/O win 0 flags 5 300-31f ed0 at port 0x300-0x31f irq 9 slot 0 on pccard0 pcic: I/O win 0 flags 15 300-31f ed0: address 00:e0:98:71:b4:5a, type NE2000 (16 bit) ad0: WRITE command timeout - resetting ata0: resetting devices .. ata0: mask=01 status0=50 status1=00 ata0-master: success setting up UDMA2 mode on PIIX4 chip done ------------------ Fn-F4 keys wrote nothing: [screen blanked] ------------------ Fn key did this: ------------------ resumed from suspended mode (slept 00:00:29) kbdc: TEST_AUX_PORT status:0000 kbdc: RESET_AUX return code:00fa kbdc: RESET_AUX status:00aa kbdc: RESET_AUX ID:0000 ata0: resetting devices .. ata0: mask=01 status0=50 status1=00 ata0-master: success setting up UDMA2 mode on PIIX4 chip done ata1: resetting devices .. ata1: mask=01 status0=10 status1=fd ata1-master: no status, reselecting device ata1-master: success setting up PIO4 mode on generic chip done ------------------ Fn-F12 keys gave unhappy beep ------------------ pccardc power 0 0 command did this: ------------------ pcic: I/O win 0 flags 5 300-31f ed0: detached pccard: card removed, slot 0 ------------------ I removed pccard to avoid possible problems ------------------ Fn-F12 keys wrote nothing: [white screen with hibernate animation] ------------------ Power switch did this: [white screen with un-hibernate animation] then wrote this: ------------------ resumed from suspended mode (slept 00:01:56) kbdc: TEST_AUX_PORT status:0000 kbdc: RESET_AUX return code:00fa kbdc: RESET_AUX status:00aa kbdc: RESET_AUX ID:0000 ata0: resetting devices .. ata0: mask=01 status0=50 status1=00 ata0-master: success setting up UDMA2 mode on PIIX4 chip done ata1: resetting devices .. ata1: mask=01 status0=10 status1=fd ata1-master: no status, reselecting device ata1-master: success setting up PIO4 mode on generic chip done ==================== PM_HIBER.BIN (top): -------------------- 00000000 4842 0104 1710 0928 504D 5F48 4942 4552 HB.....(PM_HIBER 00000010 4249 4E00 0000 0000 0000 0000 0000 BA01 BIN............. 00000020 0000 280F 0980 1000 0217 0401 2902 5080 ..(.........).P. 00000030 0000 4000 F000 0380 02FF FF7F 0000 0033 ..@............3 00000040 8312 0008 C939 FC01 1100 34E1 0380 FD10 .....9....4..... 00000050 09B7 FFFF 2086 F086 FD10 0000 0000 0000 .... ........... 00000060 0000 37A8 0200 0002 000A 0008 7040 0005 ..7.........p@.. 00000070 3908 5002 5014 0128 F020 0C28 F02C 0000 9.P.P..(. .(.,.. 00000080 2811 9800 C741 0002 0201 9680 300E 0020 (....A......0.. 00000090 029E 0406 FC00 0000 0002 380C 0283 4953 ..........8...IS 000000A0 B200 0000 0000 0000 0000 0000 0000 0000 ................ 000000B0 0000 0000 0000 0000 0000 0000 0000 0000 ................ 000000C0 0000 0000 0000 0000 0000 0000 0000 0000 ................ 000000D0 0000 0000 0000 0000 0000 0000 0000 0000 ................ 000000E0 0000 0000 0000 0000 0000 0000 0000 0000 ................ 000000F0 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000100 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000110 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000120 0000 B709 1100 0000 0000 0000 0000 0000 ................ 00000130 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000140 0000 0000 0000 0000 0000 0000 0000 0000 ................ --------------------- total file size is 304,816,128 bytes my machine has 288MB of RAM (see dmesg) my machine has about 2MB of video RAM _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F217XSVvR0WssM5sGmh00000ea9>