[ltp] hotswap dvd + battery

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


Hello,

th.trauco@neverbox.com wrote:

>On Tue, 2005-11-15 at 20:32 +0100, Arnd Hannemann - arnd@arndnet.de
>wrote:
>  
>
>>th.trauco@neverbox.com schrieb:
>>
>>    
>>
>>>On Tue, 2005-11-15 at 18:20 +0100, Jerome Poggi - Jerome.Poggi@hsc.fr
>>>wrote:
>>> 
>>>
>>>      
>>>
>>>>On Tue, 15 Nov 2005, th.trauco@neverbox.com wrote:
>>>>   
>>>>
>>>>        
>>>>
>>>>>Do you mean you can take the dvd out and put the battery in, but not put
>>>>>the dvd back in?
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>exactly.
>>>>
>>>>But it's perharps I use a kernel 2.6.X, I didn't try with 2.6.14.
>>>>
>>>>Thanks for your answer. That's what happens to me too (using 2.6.14). 
>>>>
>>>>I guess hotswap is not quite there yet.
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>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.
>>
>>Arnd
>>    
>>
>
>Yes, but I remember losing dma if I put it back in. Is that your
>experience?
>  
>
DMA is disabled when I put it back in, but I can switch it on again with 
hdparm -d1 /dev/hdc with no problem.


After one remove-insert-switch_dma_on_again-cycle:

ZZPlural9:/cdrom# hdparm -I /dev/hdc

/dev/hdc:

> ATAPI CD-ROM, with removable media
>         Model Number:       HL-DT-STCD-RW/DVD DRIVE GCC-4240N
>         Serial Number:
>         Firmware Revision:  0213
> Standards:
>         Likely used CD-ROM ATAPI-1
> Configuration:
>         DRQ response: 50us.
>         Packet size: 12 bytes
> Capabilities:
>         LBA, IORDY(can be disabled)
>         DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2
>              Cycle time: min=120ns recommended=120ns
>         PIO: pio0 pio1 pio2 pio3 pio4
>              Cycle time: no flow control=120ns  IORDY flow control=120ns



I tried to play a DVD and it works great ;-)

regards Arnd