Test ACPI and APM under Linux

| | Comments (0)

ACPI
1. S1: echo 1 > /proc/acpi/sleep Standby, 按 power key 後繼續動作
2. S2: 未使用
3. S3: echo 3 > /proc/acpi/sleep 沒反應
4. S4: echo 4 > /proc/acpi/sleep 沒反應
5. S5: echo 5 > /proc/acpi/sleep 直接關機, 未 sync
http://www.commoner.com/~lsimon/AsusM3N.html

Get pmtools
Usage: pmtest [OPTION] [TYPE] [ID]

where OPTION is one of:
-l list devices (default)
-d0 resume device (ACPI D0)
-d1, -d2, -d3 suspend device (ACPI D1-D3)

and TYPE is one of:
unknown PCI USB SCSI ISA system

and ID is one of:
keyboard serial irda floppy vga pcmcia
or a specific device number from /usr/include/linux/pm.h.

Examples:
pmtest -l PCI list all registered PCI devices
pmtest -d0 VGA resume (unblank) the console
pmtest -d3 PCI 0x1234 suspend a PCI device

ref. http://www.columbia.edu/~ariel/acpi/acpi_howto.txt

APM
apm -s, --suspend
Put the machine into suspend mode if possible.
apm -S, --standby
Put the machine into standby mode if possible.
ref. man apm

ACPI S1~S5 說明

S0 => 正常模式
S1 => Standby CPU 有供電, 停止指令運作, 許多週邊停止運作
S2 => 根據規格, 未使用
S3 => Suspend to RAM 即是把 windows 現在存在記憶體中的所有資料保存不動,然後進入「假關機」。此時除了記憶體需要電源來保持資料以外,其它的設備、裝置全部停止供電。
S4 => Suspend to Disk 即是把 windows 記憶體中的資料完整的存在硬碟中。
等開機時就直接從存這些資料的地方直接完整的讀到記憶體, 不需要跑一堆應用程式。
使用這種模式的話, 硬碟一定要騰出一個完整的連續空間。
WinME/2000/XP 本身就有休眠功能, Linux 2.4.x kernel 不支援
S5 => Soft Off, 立即關機

ref. http://ftp.sun.ac.za/ftp/mirrorsites/linux-extra/docs/acpi/sleep.html

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on August 23, 2004 11:47 AM.

一張網卡 bind 兩個不同網段的 IP was the previous entry in this blog.

Joe 3.1 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.