After echo "mem" > /sys/power/state directory, it jumps to kernel. start to execute code at /linux-2.6.24/kernel/power/main.c, it execute function
state_store() -> enter_state() ->
1. suspend_prepare()
2. suspend_device_and_enter() // machine stop here, and wakeup here!!!
3. suspend_finish()
remember, all the printk statement you added will be print into /var/log/message.
It doesn't necessary to pint out immediately. For example, printk statement before OS get into S3 state may print out after wakeup OS.
Basically, printk will write to memory first, and then print out to file.
Showing posts with label ACPI. Show all posts
Showing posts with label ACPI. Show all posts
Thursday, May 5, 2011
Tuesday, April 19, 2011
asl compiler and DSDT
ASL(ACPI Source language) compiler: translate ACPI source language into ACPI machine language.
http://www.acpi.info/toolkit.htm
DSDT (Differentiated System Description Table): part of the ACPI specification and it supplies configuration information about a base system
https://wiki.archlinux.org/index.php/DSDT
tool: acpidump
dump the DSDT table from BIOS to a file
http://www.acpi.info/toolkit.htm
DSDT (Differentiated System Description Table): part of the ACPI specification and it supplies configuration information about a base system
https://wiki.archlinux.org/index.php/DSDT
tool: acpidump
dump the DSDT table from BIOS to a file
Subscribe to:
Posts (Atom)