[ltp] Inserting a powered off ultrabay

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Wed, 23 Dec 2009 23:30:25 -0200


On Wed, 23 Dec 2009, Pedro Ribeiro wrote:
> What I want to achieve is to power it on again without touching it
> physically (if I press the eject button on my dvd drive, it gets
> powered on).

AHA!  Thanks, you gave me half the puzzle for something neat that Windows
can do, but we can't do yet.

Please look carefully on your kernel logs for thinkpad-acpi complaints about
unknown HKEY events (there should be one), and try to find out when that
event happens.  Does it happen when you do the above (power the ODD by
pressing its eject button)?  Does it happen if you close the ODD without
anything inside?

> So does anyone know how to do it? I have a T400 if that matters.

You call the appropriate ACPI method to power the ultrabay back on, which
will require modifying the kernel, as that function is not exported nor a
"normal thing to do".  In other words, we'd add a "dock" sysfs entry to
match the "undock" entry that is already there.  This is probably sort of
non-standard...

If you're using the latest version of the T400 BIOS and firmware, please
send me the full dmidecode output (with serial numbers and UUIDs removed)
and full acpidump output of your T400 by private mail.  I will take a look
to see if there is an ACPI handle to power up the bay.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh