[ltp] How does /proc/acpi/ibm/bay work

Peter Frühberger linux-thinkpad@linux-thinkpad.org
Thu, 31 Mar 2005 08:09:09 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tino Keitel wrote:
> On Sun, Mar 27, 2005 at 12:45:29 +0200, Tino Keitel wrote:
> 
> [...]
> 
> 
>>Does anyone use /proc/acpi/ibm/bay and can write about his/her
>>experiences, especially what does work and what doesn't?
> 
> 
> Hum, is there really nobody out there who uses UltraBay hotswapping?
> 
> Regards,
> Tino

Hi Tino,
I use ultrabay hotwsapping, together with ibm_acpi, here my scripts:
eject event:
event=ibm/bay MSTR 00000003
action=/etc/acpi/actions/eject.sh

eject.sh:
#!/bin/bash

/bin/sync
/usr/local/bin/idectl 1 off

/bin/echo eject > /proc/acpi/ibm/bay

rescan event:
event=ibm/bay MSTR 00000001
action=/etc/acpi/actions/rescan.sh

rescan.sh:
#!/bin/bash
/bin/sleep 1
/bin/sync
/usr/local/bin/idectl 1 on
/usr/local/bin/idectl 1 rescan

md5sum of idectl:
4f803e186f6d16b2c8f19a897f3675da  /usr/local/bin/idectl

problem:
after reinserting the drive it uses a mdma (multiword or so), not
optimal yet, but I can get it out and reinserted :-)

cu
Peter
- --
		    Key-ID:     0x1A995A9B
		    keyserver: pgp.mit.edu
==============================================================
Fingerprint: 4606 DA19 EC2E 9A0B 0157  C81B DA07 CF63 1A99 5A9B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCS5QE2gfPYxqZWpsRAn+rAKCK1/2/J3diuA5N30IEENQIH0XInACeLM4e
egQ4avn2IkZMNKAjxhMtPP0=
=IIbh
-----END PGP SIGNATURE-----