This is a DiscontinuedProject. Currently, no effort is made for further work here. This somehow just hangs the system, making it a bit hard to boot again.

Added a second slice of 1GB with type 0x84 (or 0xa0, the outcome is identical) to the disk, in case something wants to write RAM contents to harddisk:

1[root@fey:~]# fdisk ad0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=124032 heads=15 sectors/track=63 (945 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=124032 heads=15 sectors/track=63 (945 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 115112277 (56207 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 534/ head 11/ sector 63
The data for partition 2 is:
sysid 132 (0x84),(OS/2 hidden C: drive)
    start 115112340, size 2096955 (1023 Meg), flag 0
        beg: cyl 980/ head 0/ sector 1;
        end: cyl 126/ head 14/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

I am still wondering what the Figures below won't work with BIOS for partitions not in cyl 1 part wants to tell me.

Removed all loadable modules by "unload" at boot loader prompt, then reloaded kernel and acpi module. Booted into single user mode with verbose messages ("boot -v -s"), and did:

# acpiconf -s 4
re0: wake_prep disabled wake for \_SB_.C064.C058.C1AD (S4)
atkbdc0: wake_prep disabled wake for \_SB_.C046.C059.C1A3 (S4)
psmcpnp0: wake_prep disabled wake for\_SB_.C046.C059.C1A4 (S4)
uhci0: wake_prep disabled wake for\_SB_.C046.C0AC (S4)
uhci1: wake_prep disabled wake for\_SB_.C046.C0B3 (S4)
uhci2: wake_prep disabled wake for\_SB_.C046.C0B4 (S4)
ehci0: wake_prep disabled wake for\_SB_.C046.C0B5 (S4)
unknown: wake_prep disabled wake for\_SB_.C046.C0E7 (S4)
acpi_lid0: wake_prep disabled wake for\_SB_.C136 (S4)
pci2:1:0: Transition from D0 to D3
cga0: saving 68 bytes of video state
pci0:29:7: Transition from D0 to D3
======== acpi_printcpu() debug dump ========
gdt[0097:c06fa1e0] idt[07ff:c06fa600] ldt[0050] tr[0048] efl[00000082]
eax[00000001] ebx[c2f9b180] ecx[c2ef069c] edx[009e227]
esi[00000004] adi[00000000] ebp[e5539c1c] esp[e5539c00]
cr0[8005003b] cr2[0804a32c] cr3[1f4c5000] cr4[00000691]
cs[0020] ds[0028] es[0028] fs[0008] fs[001b] ss[0028]

--> here, the system hung.

Hanging could not be terminated by "hard power off" of the notebook (that is by holding the power button for some time, as usually worked), but only by removing AC adapter and battery.

This is what the "interesting" ACPI sysctls look like:

5[root@fey:~]# sysctl hw.acpi
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S3
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 1
hw.acpi.verbose: 0
[ ... ]


CategoryComputer CategoryHelpWanted


THIS DATA IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DATA, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

All product and brand names mentioned on there pages and in the source code are registered names and/or trademarks of the respective owner and are mentioned for identification purposes only.

For a full copyright notice, please see this link. For imprint and contact information, please see http://www.thiemo.net/.

FreeBSD on feynman/SuspendToDisk (last edited 2008-04-10 19:46:16 by ThiemoNordenholz)