ibm-acpi-0.1b
Regarding the Ultrabay hotswap, I enabled ACPI debugging and I captured the following messages which may help you in some way:
1) with CDROM in ultrabay, sliding the "EJECT" lever gave:
acpi_ec-0376 [177] acpi_ec_gpe_query :
Evaluating _Q2C
Execute Method: [\_SB_.PCI0.LPC_.EC__._Q2C] (Nodec1cf6828)
acpi_ec-0178 [195] acpi_ec_read : Read [b1]
from address [47]
evmisc-0135 [186] ev_queue_notify_reques:
Dispatching Notify(3) on node c1cf4fa8
evmisc-0139 [186] ev_queue_notify_reques: Notify
value: Eject request
evmisc-0200 [186] ev_queue_notify_reques: No notify
handler for Notify(MSTR, 3) node c1cf4fa8
acpi_bus-0508 [178] acpi_bus_notify : Received
EJECT REQUEST notification for device [MSTR]
Putting back the eject lever, gave this:
acpi_ec-0376 [178] acpi_ec_gpe_query :
Evaluating _Q2D
Execute Method: [\_SB_.PCI0.LPC_.EC__._Q2D] (Nodec1cf6728)
acpi_ec-0178 [196] acpi_ec_read : Read [b0]
from address [47]
exregion-0294 [198] ex_system_io_space_han: system_iO
1 (8 width) Address=00000000000015EE
exregion-0294 [197] ex_system_io_space_han: system_iO
0 (8 width) Address=00000000000015EF
acpi_ec-0230 [197] acpi_ec_write : Wrote
[84] to address [0c]
evmisc-0135 [187] ev_queue_notify_reques:
Dispatching Notify(1) on node c1cf4fa8
evmisc-0139 [187] ev_queue_notify_reques: Notify
value: Device Check
evmisc-0200 [187] ev_queue_notify_reques: No notify
handler for Notify(MSTR, 1) node c1cf4fa8
acpi_ec-0230 [197] acpi_ec_write : Wrote
[00] to address [06]
acpi_bus-0492 [179] acpi_bus_notify : Received
DEVICE CHECK notification for device [MSTR]
Execute Method: [\_SB_.PCI0.IDE0.SCND.MSTR._STA]
(Node c1cf71a8)
exregion-0294 [202] ex_system_io_space_han: system_iO
1 (8 width) Address=00000000000015EE
exregion-0294 [201] ex_system_io_space_han: system_iO
0 (8 width) Address=00000000000015EF
acpi_utils-0267 [182] acpi_evaluate_integer : Return
value [15]
acpi_bus-0124 [181] acpi_bus_get_status : Device
[MSTR] status [0000000f]
For a more detailed action of events see the attached file, where the events are:
hotremove the cdrom
hotplug a battery
hotremove the battery
hotplug the cdrom
Now, what I think it needs to be done for ultrabay:
1) when the ultrabay eject button is actioned, we should capture the event, and send an notification to acpid. Then we should be able to execute _EJ0 method of the device currently in the bay, in order to safely unplug it (in windows the LED associated to the Ultrabay is OFF when I want to hotswap a device, in Linux is still ON, which means the power is still appliend on the device).
This has to be tested, because I don't know if it is enough.
2) after I plug a device in the ultrabay and insert the "eject" button of ultrabay, another acpid event should be generated.
Comments ?
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail