[ltp] /proc/acpi/ibm/bay gone with ThinkPad ACPI Extras v0.19-20080107/2.6.24

Marc MERLIN linux-thinkpad@linux-thinkpad.org
Wed, 30 Jan 2008 16:29:45 +1100


Howdy,

I used to have ThinkPad ACPI Extras v0.18-20071203 with 2.6.22.15, and
had a /proc/acpi/ibm/bay which worked fine.

After upgrading to 2.6.24 with v0.19-20080107, the bay file is gone:
gandalf:/proc/acpi/ibm# ls
beep       cmos    ecdump  hotkey  light    video
bluetooth  driver  fan     led     thermal  volume
gandalf:/proc/acpi/ibm# cat driver 
driver:         ThinkPad ACPI Extras
version:        0.19-20080107

thinkpad_acpi: ThinkPad ACPI Extras v0.19-20080107
thinkpad_acpi: http://ibm-acpi.sf.net/
thinkpad_acpi: ThinkPad BIOS 7FETA4WW (2.22 ), EC 7FHT26WW-1.08
thinkpad_acpi: Lenovo ThinkPad Z61p
thinkpad_acpi: radio switch found; radios are enabled
thinkpad_acpi: standard ACPI backlight interface available, not loading native one...
input: ThinkPad Extra Buttons as /devices/virtual/input/input19

I am also slightly confused about the bay driver in 2.6.24:
kernel: ACPI: \_SB_.PCI0.IDE0.PRIM.MSTR: found ejectable bay
kernel: ACPI: \_SB_.PCI0.IDE0.PRIM.MSTR: Adding notify handler
kernel: ACPI: Error installing bay notify handler
kernel: ACPI: Bay [\_SB_.PCI0.IDE0.PRIM.MSTR] Added

1) what's this 'Error installing bay notify handler' which I've always
   had?
2) why does the kernel config say that this bay driver is supposed to work
   on thinkpads when it looks like it never worked for me and I always had
   the bay driver from {ibm,thinkpad}-acpi

Also, note that I also patched drivers/misc/thinkpad_acpi.c as recommended
by tytso to add \_SB_.PCI0.IDE0.PRIM.MSTR: as per
http://www.mail-archive.com/linux-acpi%40vger.kernel.org/msg04716.html
As per the messages I got above, it looks like my Z61p with sata but IDE
ultrabay still requires this patch which isn't in mainline.

Thanks for any suggestions,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/