[ltp] Ultrabay re-power?

Adam Sloboda linux-thinkpad@linux-thinkpad.org
Thu, 02 Aug 2007 21:58:03 +0200


At Thu, 2 Aug 2007 21:48:08 +0200,
Nils  wrote:
> 
> Hi,
> 
> is there any command to re-power an ultrabay device ?
> 
> I have dvd-rom and use the following commands:
> echo 1 > /sys/class/scsi_device/1:0:0:0/device/delete
> echo eject > /sys/devices/platform/bay.0/eject
> 
> The ultrabay led is off and now I can use the eject  lever.to remove and 
> reinsert the device and after 
> echo "0 0 0" > /sys/class/scsi_host/host1/scan 
> I can use it again.
> 
> But if I don't remove the device is there any command like:
> echo 1 > /sys/devices/platform/bay.0/insert ?? 
> for re-power the ultrabay?
> 
> Thanks for any help,
> Nils
> 

You can just push the lever back without removing the device.
Otherwise I don't know about any software insert, you have to trigger
it by lever I suppose.

adam