具体的には、USBメモリがさしたままになっていても、サスペンドモードから復帰後には認識しない(デスクトップ下のドライブアイコンが消える)というものです。USBブートの場合はお手上げとなります。
このことに関しては、
http://www.murga-linux.com/puppy/viewto ... 89&t=13410
のスクリプトを修正して、サスペンド前に
コード: 全て選択
rmmod ehci_hcd
コード: 全て選択
modprobe ehci_hcd
コード: 全て選択
#!/bin/sh
# this script was adapted for Puppy 2.12 by EdB, from the original in
# http://www.linux.com/article.pl?sid=06/05/24/1716222
rmmod ehci_hcd
# discover video card's ID
ID=`lspci -i /usr/share/pci-usb-pcmcia.ids | grep VGA | awk '{ print $1 }' | sed -e 's@0000:@@' -e 's@:@/@'`
# securely create a temporary file
TMP_FILE=`mktemp /var/tmp/video_state.XXXXXX`
# trap 'rm -f $TMP_FILE' 0 1 15
# switch to virtual terminal 2 to avoid graphics
# corruption in X
chvt 2
# write all unwritten data (just in case)
sync
# dump current data from the video card to the
# temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file
# on resume
cat $TMP_FILE > /proc/bus/pci/$ID
# switch back to virtual terminal 3 (running X)
chvt 3
# remove temporary file
rm -f $TMP_FILE
modprobe ehci_hcd