[ltp] hotswap dvd + battery

Arnd Hannemann linux-thinkpad@linux-thinkpad.org
Wed, 16 Nov 2005 10:52:50 +0100


Jerome Poggi wrote:

>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 ...)
>  
>
Hmm, well which kernel do you use? And what exactly does your idectl skript?
You could try without it (there will be some errors in syslog but as a 
DVD-drive cannot have a partition-table, it should work nevertheless).

>--
>Jerome POGGI                                      Jerome.Poggi@hsc.fr
>Herve Schauer Consultants -=- Consultant Sécurité Informatique, CISSP
>http://www.hsc.fr/                              Tèl : +33 141 409 700
>  
>
regards Arnd