[ltp] hotswap dvd + battery
Jerome Poggi
linux-thinkpad@linux-thinkpad.org
Wed, 16 Nov 2005 09:55:49 +0100
On Tue, 15 Nov 2005, Arnd Hannemann wrote:
> Did you load ibm-acpi and issued the "eject" command before removing the
> DVD-Drive?
> At least this works with my R40 and Kernel 2.6.10.
The ejection work perfectly,
I use this procedure :
ibm_bay()
{
case "$param1" in
00000001)
logger "BAY will be inserted"
/bin/sleep 1
/bin/sync
/sbin/idectl 1 rescan
;;
00000003)
logger "BAY will be ejected"
/bin/sync
/sbin/idectl 1 off
/bin/echo eject > /proc/acpi/ibm/bay
;;
*) logger "ACPI ibm/bay $param1 is not configured";;
esac
}
My T42 ooops when I do the "/sbin/idectl 1 rescan" if I put the DVD
back. If it's a Battery : all is ok (eect/insert/eject ...)
--
Jerome POGGI Jerome.Poggi@hsc.fr
Herve Schauer Consultants -=- Consultant Sécurité Informatique, CISSP
http://www.hsc.fr/ Tèl : +33 141 409 700