ACPI的设置问题

ACPI的设置问题

(我前两天用root可以做到用acpitool -S关机)

下面提我的机子上的acpi的信息
引用:
root@Do admin # acpitool -e
Kernel version : 2.6.10-gentoo-r  -  ACPI version : 20041105
-------------------------------------------------------
Battery #1     : slot empty
Battery #2     : present
   Remaining capacity : 2463 mAh, 81.85%, 02:18:45
   Present rate       : 1065 mA
   Charging state     : charging
   Last full capacity : 3009 mAh
   Battery type       : rechargeable, 4E4F494C
   Model number       : Primary
   Serial number      : 30 30 30 31
AC adapter     : on-line
设置Suspend Computer ....执行:acpitool -S
从图行界面切到字符界面后,出现如下面内容
引用:
Freeing memory ....done ( 5012 pages freed)
Can't find swap device,try swapon -a!
ACPI CI interrupt ....IRQ 11
ACPI: PCI interrupt ....IRQ 5
Set latency timer of deivce0000:00.lf 5 to 60
e100:eth0:etho_watchdog links up 100Mbps full_duplex
Restart Task ...... done
Start Task ===========================|
然后,又从字符界面切到的图形界面.

fstab中swap分区挂载选项如下:
引用:
/dev/hda8               none            swap            sw                      0 0
或者
引用:
/dev/hda8               none            swap            sw,pri=0                      0 0
上面的两种设置方案设置后:
swapon -a
都出现
引用:
root@Do admin # swapon -a
swapon: /dev/hda8: Invalid argument
请问如何设置,才能让我的机子suspend?


man 2 swapon
引用:
PRIORITY
       Each swap area has a priority, either high or low.  The default priority is  low.   Within
       the low-priority areas, newer areas are even lower priority than older areas.

       All  priorities  set with swapflags are high-priority, higher than default.  They may have
       any non-negative value chosen by the caller.  Higher numbers mean higher priority.

       Swap pages are allocated from areas in priority order, highest priority first.  For  areas
       with different priorities, a higher-priority area is exhausted before using a lower-prior-
       ity area.  If two or more areas have the same priority, and it  is  the  highest  priority
       available, pages are allocated on a round-robin basis between them.
man swapon
引用:
         swapon, swapoff - enable/disable devices and files for paging and swapping
      -a     All  devices  marked  as  ``swap''  swap  devices in /etc/fstab are made available.
              Devices that are already running as swap are silently skipped.
          -p priority
                         priority is a value between 0 and 32767.  See  swapon for a full description of swap
                         priorities. Add pri=value to  the option field of /etc/fstab for use with swapon -a.
为什么要用acpitool -S关机呢?