Debian sid マシンとして甦った? Vaio C1 VR/BPで、ACPI S3 (Suspend to RAM) を試してみた。
Sony Vaio PCG-C1VRX/K and Debian Linux Sarge に書いてある通りに行って、特に問題なくサスペンドへの移行、そして復帰が出来た。
LCDを閉じたときにそのイベントを検出しスクリプトを動かすための /etc/acpi/events/lid_switch を作成する。
event=button[ /]lid
action=/etc/acpi/lid_switch.sh
サスペンド/復帰を行うスクリプト /etc/acpi/lid_switch.sh を作成し、実行権限を付けておく(chmod +x)。
#!/bin/bash
killall cardmgr
sleep 3
cardctl eject
rmmod usb_storage
rmmod uhci_hcd
rmmod usbcore
sleep 2
echo "mem" > /sys/power/state
cardctl insert
sleep 3
cardmgr
modprobe usbcore
modprobe uhci_hcd
modprobe usb_storage
起動オプション acpi_sleep=s3_bios をつけて Debian を再起動すれば、サスペンドが可能となる。
/boot/grub/menu.lst に書いておけばよい。
title Debian GNU/Linux, kernel 2.6.12-1-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-1-386 root=/dev/hda1 ro acpi_sleep=s3_bios
initrd /boot/initrd.img-2.6.12-1-386
savedefault
boot