トップ(最新)

nDiki

2003年12月10日 (水)

[ Debian ] resume 時に /etc/apm/event.d/* が呼ばれない このエントリーを含むはてなブックマーク

スポンサード リンク

ThinkPad X31であるがサスペンド/レジュームするとUSBが使えなくなるが、hotplug再起動すると復帰する。 なので、/etc/apm/event.d/hotplug として

 #!/bin/sh
 echo "$1 --" >> /tmp/suspend.txt
 case "$1" in
 suspend)
   /etc/init.d/hotplug stop
   echo "suspend" >> /tmp/suspend.txt
   ;;

 resume)
   /etc/init.d/hotplug start
   echo "resume" >> /tmp/suspend.txt
   ;;
 esac

というファイルを用意。これでどうだ、と思ったら×。 なぜか suspend 時は実行されるが、resume 時は実行されない。 BIOSからapmdに通知がこないのだろうか?

◇ Twitter やってます。この記事が気にいったらぜひ twitter.com/Naney の follower になってください。


[ 12月10日全て ]

Related term


この日記のはてなブックマーク数 Add to Google RSS

Process Time: 0.080098s / load averages: 0.25, 0.25, 0.18
nDiki by WATANABE Yoshimasa (profile)
Powered by DiKicker
Base theme by Nana (for tDiary)