On Tue, 03 Apr 2007, Raphael Hertzog wrote:
Debian should be able to handle automatically detecting IDE
CDROM's after docking by now, it is 2007 after all!
I would like this too. Unfortunately, I have no clue on how to detect
that we're plugged into a dock. And it's not even clear that acpi-support
Well, since this has "thinkpad" near it, let me make it pretty clear:
whatever you guys do, DO NOT hook into thinkpad-acpi/ibm-acpi bay ejection
and undocking functionality as it stands on anything that will be shipped by
Debian. I have deprecated it for a long time now, and it *will* be removed
or completely changed (to match generic bay and dock interface) before Lenny
is out.
Back to the problem at hand: there are Linux generic ACPI "dock" and "bay"
drivers, they are supposed to notify userspace of any ejections and
reconnections. Only, they don't do everything that is needed yet, and they
don't handle many of the real ejectable devices in a laptop (e.g. ThinkPad
batteries, floppies, and anything else that is not a SATA/ATA/ATAPI device).
As for automated bus rescanning, sincerely, it is up to the kernel to do it.
Anything else will be just an ugly hack or highly specific to a particular
machine model. You really need to do ACPI/platform specific node -> kernel
device -> device bus mapping to do it properly, and the kernel is the place
to do it.
Userspace should be getting the usual udev messages for device hot-insertion
and hot-removal, and not need to care about anything else.
is really the package that should take care of that. After all,
acpi-support is only a set of hacks so that supend/resume works
with as many laptops as possible.
Frankly, a package should deal with anything and everything to do with ACPI
support if it is going to be named "acpi-support". If it is a
suspend/resume helper, it should have been named differently, IMO.