I wrote a little shell script as a udev helper for the kernel’s dock driver, which now (as of 2.6.28) handles bays and docking stations.
It’s a workaround for Launchpad bugs #189185, #242638, #369131 and #292144.
Source archive and Ubuntu package available here (or you can use my PPA).