42 | | |
| 42 | * 在 "[http://www.mythtv.org/wiki/ACPI_Wakeup MythTV ACPI Wakeup]" 一文中,提到很多背景知識: |
| 43 | * 要使用 ACPI Wakeup 機制,必須 (1) 設定 BIOS (2) 關閉 hwclock 更新 (3) |
| 44 | * Kernels 2.6.22 and newer use /sys/class/rtc/rtc0/wakealarm |
| 45 | * Kernels 2.6.21 and older use /proc/acpi/alarm |
| 46 | * 套件 [http://packages.debian.org/pm-utils pm-utils] 可以幫忙作電源管理跟 Suspend to RAM 的動作 |
| 47 | {{{ |
| 48 | # /usr/sbin/pm-suspend |
| 49 | }}} |
| 50 | * /proc/driver/rtc 可以用來檢查 Alarm Date 跟 Alarm Time 是否正確 |
| 51 | * /proc/acpi/wakeup 會顯示可以用來 Wakeup 的裝置(Ex. PCI, USB, etc...) |
| 52 | {{{ |
| 53 | jazz@drbl:~$ cat /proc/acpi/wakeup |
| 54 | Device S-state Status Sysfs node |
| 55 | PCI0 S5 disabled no-bus:pci0000:00 |
| 56 | PEX0 S5 disabled pci:0000:00:1c.0 |
| 57 | PEX1 S5 disabled |
| 58 | PEX2 S5 disabled |
| 59 | PEX3 S5 disabled |
| 60 | PEX4 S5 disabled |
| 61 | PEX5 S5 disabled |
| 62 | HUB0 S5 disabled pci:0000:00:1e.0 |
| 63 | UAR1 S3 disabled pnp:00:07 |
| 64 | USB0 S3 disabled pci:0000:00:1d.0 |
| 65 | USB1 S3 disabled pci:0000:00:1d.1 |
| 66 | USB2 S3 disabled pci:0000:00:1d.2 |
| 67 | USB3 S3 disabled pci:0000:00:1d.3 |
| 68 | USBE S3 disabled pci:0000:00:1d.7 |
| 69 | AZAL S5 disabled pci:0000:00:1b.0 |
| 70 | }}} |